Skip to content

Commit

Permalink
Merge pull request #26 from nezhar/pep440
Browse files Browse the repository at this point in the history
Fixes categorized package data for packaging drop of LegacyVersion
  • Loading branch information
nezhar authored Dec 12, 2022
2 parents 9042a89 + 821c455 commit e10c6e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions updatable/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ def get_categorized_package_data(package_data, package_version):
non_semantic_versions = []

for release, info in package_data["releases"].items():
parsed_release = parse(release)

upload_time = None
if info:
upload_time = datetime.strptime(info[0]["upload_time"], "%Y-%m-%dT%H:%M:%S")

try:
parsed_release = parse(release)

# Get semantic version of package
release_version = semantic_version.Version.coerce(release)

Expand Down

0 comments on commit e10c6e3

Please sign in to comment.