Skip to content

Commit 2286fc9

Browse files
ci: accept final releases in the wheel smoke test
The smoke script only accepted PEP 440 beta versions, so the 0.4.0 release build failed. It now accepts final or beta versions.
1 parent 933c13a commit 2286fc9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎scripts/smoke_wheel.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Steps: build one wheel from the checkout (``uv build`` if available, else ``python -m build``),
66
create an empty virtual environment, install only that wheel, then run a short script with
77
``python -I`` from a scratch directory so the source tree cannot stand in for anything the
8-
wheel left out. The script checks the version is a PEP 440 beta, that there are no runtime
8+
wheel left out. The script checks the version is a PEP 440 release (final or beta), that there are no runtime
99
dependencies, that ``py.typed`` and the packaged data files ship, that the command line tools
1010
work and that a retry, timeout and LLM happy path runs. Standard library only.
1111
"""
@@ -34,7 +34,7 @@
3434
import python_wrap
3535
3636
version = python_wrap.__version__
37-
assert re.fullmatch(r"\\d+\\.\\d+\\.\\d+b\\d+", version), f"not a PEP 440 beta: {version}"
37+
assert re.fullmatch(r"\\d+\\.\\d+\\.\\d+(b\\d+)?", version), f"not a PEP 440 release: {version}"
3838
meta = md.metadata("python-wrap")
3939
assert meta["Version"] == version
4040
requires = [r for r in (md.requires("python-wrap") or []) if "extra ==" not in r]

0 commit comments

Comments
 (0)