From 1c831b248df331bf467cfb03622baadf6aea691e Mon Sep 17 00:00:00 2001 From: Joshua Bronson Date: Thu, 21 Oct 2021 22:08:25 +0000 Subject: [PATCH] Use build rather than invoking setup.py directly ...in the build-and-release-to-PyPI workflows. --- .github/workflows/release-to-pypi.yml | 6 +++--- .github/workflows/release-to-test-pypi.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-to-pypi.yml b/.github/workflows/release-to-pypi.yml index dca5aa2..273b8ef 100644 --- a/.github/workflows/release-to-pypi.yml +++ b/.github/workflows/release-to-pypi.yml @@ -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: diff --git a/.github/workflows/release-to-test-pypi.yml b/.github/workflows/release-to-test-pypi.yml index 61abb26..1439c0d 100644 --- a/.github/workflows/release-to-test-pypi.yml +++ b/.github/workflows/release-to-test-pypi.yml @@ -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: