Skip to content

Commit 07cf648

Browse files
committed
Fix packaging for PyPI
1 parent 26a1611 commit 07cf648

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@ jobs:
5050
uses: actions/setup-python@v5
5151
- name: Build packages
5252
run: |
53-
pip install wheel -r requirements.txt
53+
python -m venv .venv
54+
.venv/bin/pip install wheel -r requirements.txt
5455
sed -i "s/\(version='[0-9]*\.[0-9]*\.[0-9]*\)\('\)/\1.dev$(date +%Y%m%d%H%M%S)\2/g" setup.py
5556
sed -i "s/5 - Production\/Stable/4 - Beta/g" setup.py
56-
python setup.py clean check sdist bdist_wheel
57+
.venv/bin/python setup.py clean check sdist bdist_wheel
5758
- name: Upload to PyPI Test
5859
uses: pypa/[email protected]
5960
with:
@@ -72,8 +73,9 @@ jobs:
7273
uses: actions/setup-python@v5
7374
- name: Build packages
7475
run: |
75-
pip install wheel -r requirements.txt
76-
python setup.py clean check sdist bdist_wheel
76+
python -m venv .venv
77+
.venv/bin/pip install wheel -r requirements.txt
78+
.venv/bin/python setup.py clean check sdist bdist_wheel
7779
- name: Upload to PyPI
7880
uses: pypa/[email protected]
7981
with:

0 commit comments

Comments
 (0)