Skip to content

Commit

Permalink
fix: 处理依赖冲突问题
Browse files Browse the repository at this point in the history
  • Loading branch information
MarleneJiang committed Aug 28, 2023
1 parent 94a7362 commit 259738a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/actions_scripts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ def check_pypi(self,name: str) -> bool:
def get_info(self)->dict[str,str]:
"""."""
name = self.get("name")
if name is None:
if (name is None) or (name == ""):
msg = "模块名称获取失败"
raise ValueError(msg)
description = self.get("summary")
if description is None:
if (description is None) or (description == ""):
msg = "模块描述获取失败"
raise ValueError(msg)
author = self.get("author")
if author is None:
if (author is None) or (author == ""):
email = self.get("author_email")
if email is not None and "<" in email: # PDM发包问题
author = email.split("<")[0].strip()
Expand All @@ -78,7 +78,7 @@ def get_info(self)->dict[str,str]:
if homepage is None:
homepage = ""
tags = self.get("keywords")
if tags is None:
if (tags is None) or (tags == ""):
msg = "标签信息获取失败"
raise ValueError(msg)
return {
Expand Down

0 comments on commit 259738a

Please sign in to comment.