Skip to content

Commit 1ceac21

Browse files
fix reports after removal of deprecated pkgs (Azure#40758)
1 parent 82c373b commit 1ceac21

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

scripts/repo_health_status_report/output_health_report.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ def get_github_total_issue_link(label: str) -> str:
233233

234234

235235
def is_package_inactive(package_path: str) -> bool:
236-
return INACTIVE_CLASSIFIER in ParsedSetup.from_path(package_path).classifiers
236+
setup_py = os.path.join(package_path, "setup.py")
237+
return not os.path.exists(setup_py) or INACTIVE_CLASSIFIER in ParsedSetup.from_path(package_path).classifiers
237238

238239

239240
def skip_package(package_name: str) -> bool:

scripts/repo_type_completeness/generate_main_typescores.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def get_packages_to_score() -> dict[str, dict[str, Any]]:
206206
for pkg_path in package_paths:
207207
package_path = pathlib.Path(pkg_path)
208208
package_name = package_path.name
209-
if skip_package(package_name):
209+
if skip_package(package_name) or not (package_path / "setup.py").exists():
210210
continue
211211
package_path = str(package_path)
212212
package_info = ParsedSetup.from_path(package_path)

0 commit comments

Comments
 (0)