Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a typo in filename #749

Merged
merged 1 commit into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/on_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ jobs:
version_tag=${version_tag#v}

# Convert semver to PyPI version using the script
pypi_version=$(python smver2pypi.py $version_tag)
pypi_version=$(python semver2pypi.py $version_tag)

# Update only the __version__ in __packaging__.py
sed -i "s/__version__ = VERSION_STRING/__version__ = \"$pypi_version\"/" packages/__packaging__.py
Expand Down Expand Up @@ -316,4 +316,4 @@ jobs:
# repository-url: https://test.pypi.org/legacy/
env:
name: pypi
url: https://pypi.org/p/opal-server/
url: https://pypi.org/p/opal-server/
8 changes: 4 additions & 4 deletions smver2pypi.py → semver2pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
A semver build will be converted into a development part of PyPI

Usage:
python smver2pypi.py 0.1.0-rc1
python semver2pypi.py 0.1.0-rc1
0.1.0rc1
python smver2pypi.py 0.1.0-dev1
python semver2pypi.py 0.1.0-dev1
0.1.0.dev1
python smver2pypi.py 0.1.0
python semver2pypi.py 0.1.0
0.1.0
"""

Expand All @@ -23,4 +23,4 @@
prerelease = semver_version.prerelease or ""
build = semver_version.build or ""
pypi_version = PyPIVersion(f"{finalized_version}{prerelease}{build}")
print(pypi_version)
print(pypi_version)