Skip to content

Commit

Permalink
Fix packaging for PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeininger authored Oct 1, 2024
1 parent 26a1611 commit a3edcae
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ jobs:
uses: actions/setup-python@v5
- name: Build packages
run: |
pip install wheel -r requirements.txt
python -m venv .venv
.venv/bin/pip install wheel -r requirements.txt
sed -i "s/\(version='[0-9]*\.[0-9]*\.[0-9]*\)\('\)/\1.dev$(date +%Y%m%d%H%M%S)\2/g" setup.py
sed -i "s/5 - Production\/Stable/4 - Beta/g" setup.py
python setup.py clean check sdist bdist_wheel
.venv/bin/python setup.py clean check sdist bdist_wheel
- name: Upload to PyPI Test
uses: pypa/[email protected]
with:
Expand All @@ -72,8 +73,9 @@ jobs:
uses: actions/setup-python@v5
- name: Build packages
run: |
pip install wheel -r requirements.txt
python setup.py clean check sdist bdist_wheel
python -m venv .venv
.venv/bin/pip install wheel -r requirements.txt
.venv/bin/python setup.py clean check sdist bdist_wheel
- name: Upload to PyPI
uses: pypa/[email protected]
with:
Expand Down

0 comments on commit a3edcae

Please sign in to comment.