From a3edcae6e6f1799c6ec7d62d4a07dc5a11bebbeb Mon Sep 17 00:00:00 2001 From: Karsten Deininger Date: Tue, 1 Oct 2024 10:24:14 +0200 Subject: [PATCH] Fix packaging for PyPI --- .github/workflows/ci.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa3ecc08..19722aec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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/gh-action-pypi-publish@v1.10.2 with: @@ -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/gh-action-pypi-publish@v1.10.2 with: