Skip to content

Commit

Permalink
Include post-release versions in default installation (#3248)
Browse files Browse the repository at this point in the history
* Include post-release versions in default installation

* replace match() with fullmatch()

* correct checksum
  • Loading branch information
mee7ya authored Nov 4, 2024
1 parent 2a7af10 commit 03eeec1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion install-pdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def _get_latest_version(self) -> str:
metadata = json.load(resp)

def version_okay(v: str) -> bool:
return self.prerelease or all(p.isdigit() for p in v.split("."))
return self.prerelease or re.fullmatch(r"^(\d+)\.(\d+)\.(\d+)(\.(post\d+))?", v)

def sort_version(v: str) -> tuple:
parts = []
Expand Down
2 changes: 1 addition & 1 deletion install-pdm.py.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
07dacbddc508f70bc21347598b9764bc07440ebface340bdd1e96f7af9ea4267 install-pdm.py
cd45cd6313c1cd0375d8b98b4adbc4f58b490c8e5c1e5b41b5b94d07e85d91e0 install-pdm.py

0 comments on commit 03eeec1

Please sign in to comment.