From bf48278abb24743816d94a322554201f8f2f3fd7 Mon Sep 17 00:00:00 2001 From: Tomas R Date: Wed, 26 Jul 2023 18:58:11 +0200 Subject: [PATCH] Use pypa/build to build the package (#404) --- .github/workflows/pypi_upload.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pypi_upload.yml b/.github/workflows/pypi_upload.yml index 31f681f..ecb0587 100644 --- a/.github/workflows/pypi_upload.yml +++ b/.github/workflows/pypi_upload.yml @@ -17,17 +17,17 @@ jobs: with: python-version: 3.x - - name: Install latest pip, setuptools, twine + wheel + - name: Install latest pip, build & twine run: | - python -m pip install --upgrade pip setuptools twine wheel + python -m pip install --upgrade pip build twine - name: Build sdist + wheel run: | - python setup.py bdist_wheel - python setup.py sdist + python -m build - name: Upload to PyPI via Twine env: TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} run: | + twine check dist/* twine upload --verbose -u '__token__' dist/*