From d77a3659ee1790cad4b1fe0a184ea71d269baea5 Mon Sep 17 00:00:00 2001 From: Jonah Lawrence Date: Fri, 16 Dec 2022 16:10:04 -0700 Subject: [PATCH] ci: Update publish script to use build module --- .github/workflows/python-publish.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index caf5831..de9e03a 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -21,11 +21,12 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine + pip install twine build - name: Build and publish env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | - python setup.py sdist bdist_wheel + python3 -m build --sdist + twine check dist/* twine upload dist/*