Skip to content

Commit

Permalink
Fix typo in filename (#749)
Browse files Browse the repository at this point in the history
  • Loading branch information
andriusm authored Jan 29, 2025
1 parent 43b4658 commit 71a7c1c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
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)

0 comments on commit 71a7c1c

Please sign in to comment.