Skip to content

Commit

Permalink
Revert "Fix ordering of versions for alphas > 9 (#129)"
Browse files Browse the repository at this point in the history
This reverts commit 61c870e.
  • Loading branch information
fredvd committed Mar 22, 2024
1 parent 61c870e commit 0474963
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions local_extensions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from typing import List, Optional

import requests
import semver
from cookiecutter.utils import simple_filter

REGISTRIES = {
Expand Down Expand Up @@ -63,10 +62,8 @@ def latest_version(
version=v, min_version=min_version, max_version=max_version
)
],
key=lambda v: semver.VersionInfo.parse(v.replace("v", "")),
reverse=True,
)

if not include_alphas:
valid = [v for v in valid if "-" not in v]
return valid[0]
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ requests_mock
pytest
pytest-cookies
wheel
semver

0 comments on commit 0474963

Please sign in to comment.