Introduce poetry (#1628)

This commit is contained in:
Robbe Sneyders
2023-02-07 20:17:38 +01:00
committed by GitHub
parent 022bb8f34a
commit 15e985e864
18 changed files with 123 additions and 188 deletions

View File

@@ -19,7 +19,7 @@ jobs:
- name: Install dependencies
run: |
pip install --upgrade pip
pip install "tox<4" "tox-gh-actions<3" "setuptools<58" "coveralls<4"
pip install "poetry<2" "tox<4" "tox-gh-actions<3" "coveralls<4"
- name: Test with tox
run: tox
- name: Coveralls

View File

@@ -19,13 +19,12 @@ jobs:
python-version: 3.9
- name: Update version
run: sed -i "s/__version__ = .*/__version__ = '${{github.ref_name}}'/" */__init__.py
run: sed -i "s/^version = .*/version = '${{github.ref_name}}'/" pyproject.toml
- name: Build a binary wheel and a source tarball
run: |
pip install --upgrade pip
pip install wheel
python setup.py sdist bdist_wheel
pip install poetry
poetry build
- name: Publish distribution 📦 to Test PyPI
if: github.event_name == 'push'