We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a2d684c + 7400572 commit b642cb0Copy full SHA for b642cb0
src/main/python/pypi_cleanup/__init__.py
@@ -111,7 +111,8 @@ def run(self):
111
releases_by_date[version] = max(
112
[datetime.datetime.strptime(f["upload-time"], '%Y-%m-%dT%H:%M:%S.%f%z')
113
for f in project_info["files"]
114
- if f["filename"].lower().startswith(f"{self.package}-{version}")])
+ if f["filename"].lower().startswith(f"{self.package}-{version}") or
115
+ f["filename"].lower().startswith(f"{self.package.replace('-', '_')}-{version}")])
116
117
if not releases_by_date:
118
logging.info(f"No releases for package {self.package!r} have been found")
0 commit comments