Skip to content

Commit

Permalink
fix: version substitution
Browse files Browse the repository at this point in the history
  • Loading branch information
A.Shpak committed Nov 14, 2024
1 parent 728f251 commit 107e7e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
run: |
echo "##[set-output name=ver;]$(echo ${GITHUB_REF#refs/*/})"
id: extract_name_and_version
- run: sed -i 's/0.1.0/'"${{ steps.extract_name_and_version.outputs.ver }}"'/' pyproject.toml
- run: sed -i 's/0.0.0/'"${{ steps.extract_name_and_version.outputs.ver }}"'/' pyproject.toml
- run: head -n 10 pyproject.toml
- run: sed -i 's/0.1.0/'"${{ steps.extract_name_and_version.outputs.ver }}"'/' curlify3/__init__.py
- run: python -m pip install poetry~=1.8.0
- run: sed -i 's/0.0.0/'"${{ steps.extract_name_and_version.outputs.ver }}"'/' winregistry.py
- run: python -m pip install poetry~=1.8.4
- run: poetry build
- run: poetry config http-basic.pypi __token__ ${{ secrets.PYPI_PASS }}
- run: poetry publish
3 changes: 1 addition & 2 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ fmt: black isort

isort:
poetry run isort {{ SOURCE_DIR }}
# poetry run isort test_curlify3.py --diff

black:
poetry run black {{ SOURCE_DIR }}
# poetry run isort test_curlify3.py


pytest:
poetry run pytest -vv
Expand Down

0 comments on commit 107e7e2

Please sign in to comment.