Upgraded to pyproject/flit build style

This commit is contained in:
Jamie Hardt
2023-02-28 10:40:57 -08:00
parent 1c9d373b40
commit ddf1948f3c
6 changed files with 49 additions and 63 deletions

View File

@@ -28,7 +28,7 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install -e .
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names

View File

@@ -16,7 +16,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install build twine
- name: Install parsimonious
run: |
pip install parsimonious
@@ -25,7 +25,7 @@ jobs:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_API_KEY }}
run: |
python setup.py sdist bdist_wheel
python -m build
twine upload dist/*
- name: Report to Mastodon
uses: cbrgm/mastodon-github-action@v1.0.1