Skip to content

Commit

Permalink
Fix getting version for package from file (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tetrergeru authored Sep 22, 2023
1 parent 9e426b0 commit 15319ea
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
| sed 's#[^a-zA-Z0-9_\.\-]#_#g'`
echo "tag version = $VERSION_TAG"
VERSION_FILE=$(cat VERSION)
VERSION_FILE=$(cat VERSION.txt)
echo "file version = $VERSION_FILE"
if [ "$VERSION_TAG" != "$VERSION_FILE" ]; then
Expand All @@ -50,7 +50,5 @@ jobs:
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
env:
PYTHON_MOIRA_CLIENT_VERSION: ${{ github.ref_name }}
with:
password: ${{ secrets.PYPI_API_TOKEN_V2 }}
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

1 change: 1 addition & 0 deletions VERSION.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4.1.4
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
with open('requirements.txt') as f:
required = f.read().splitlines()

with open("VERSION", "r") as file:
with open("VERSION.txt", "r") as file:
version = file.readline()

setup(
Expand Down

0 comments on commit 15319ea

Please sign in to comment.