Use build rather than invoking setup.py directly

...in the build-and-release-to-PyPI workflows.
This commit is contained in:
Joshua Bronson 2021-10-21 22:08:25 +00:00
parent e00344e0c1
commit 1c831b248d
2 changed files with 6 additions and 6 deletions

View File

@ -10,13 +10,13 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.9"
python-version: "3.10"
- name: Prepare Env
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
pip install setuptools build
- name: Build
run: python setup.py sdist bdist_wheel
run: python -m build
- name: Publish
uses: pypa/gh-action-pypi-publish@v1.4.1
with:

View File

@ -19,13 +19,13 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.9"
python-version: "3.10"
- name: Prepare Env
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
pip install setuptools build
- name: Build
run: python setup.py sdist bdist_wheel
run: python -m build
- name: Publish
uses: pypa/gh-action-pypi-publish@v1.4.1
with: