From eacc94a386267ad39de876f29b7bd1a6823387ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radim=20Karni=C5=A1?= Date: Wed, 4 Sep 2024 13:54:30 +0200 Subject: [PATCH] ci(pypi_release): Update distribution build process --- .github/workflows/dev_release_esptool_pypi.yml | 5 ++--- .github/workflows/release_esptool_pypi.yml | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dev_release_esptool_pypi.yml b/.github/workflows/dev_release_esptool_pypi.yml index 8f12e6846..a4fbbf5c1 100644 --- a/.github/workflows/dev_release_esptool_pypi.yml +++ b/.github/workflows/dev_release_esptool_pypi.yml @@ -23,7 +23,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install twine 'setuptools>=64' + python -m pip install twine build - name: Create development release ${{ github.ref_name }} env: @@ -36,6 +36,5 @@ jobs: python -m pip download esptool==$(python setup.py -V) && echo "Version ${{ github.ref_name }} already published, skipping..." && exit 1 echo "Packaging and publishing new esptool development release: ${{ github.ref_name }}" - python setup.py sdist - tar -ztvf dist/* + python -m build twine upload dist/* diff --git a/.github/workflows/release_esptool_pypi.yml b/.github/workflows/release_esptool_pypi.yml index 8268e24d1..021b11483 100644 --- a/.github/workflows/release_esptool_pypi.yml +++ b/.github/workflows/release_esptool_pypi.yml @@ -20,7 +20,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install 'setuptools>=64' twine + pip install twine build - name: Build and upload esptool ${{ github.event.release.tag_name }} env: TWINE_USERNAME: __token__ @@ -34,7 +34,6 @@ jobs: exit 1 else echo "Packaging and publishing new esptool version: ${CURRENT_VERSION}" - python setup.py sdist - tar -ztvf dist/* + python -m build twine upload dist/* fi