Skip to content

Commit eacc94a

Browse files
committed
ci(pypi_release): Update distribution build process
1 parent 1693449 commit eacc94a

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/dev_release_esptool_pypi.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Install dependencies
2424
run: |
2525
python -m pip install --upgrade pip
26-
python -m pip install twine 'setuptools>=64'
26+
python -m pip install twine build
2727
2828
- name: Create development release ${{ github.ref_name }}
2929
env:
@@ -36,6 +36,5 @@ jobs:
3636
python -m pip download esptool==$(python setup.py -V) && echo "Version ${{ github.ref_name }} already published, skipping..." && exit 1
3737
3838
echo "Packaging and publishing new esptool development release: ${{ github.ref_name }}"
39-
python setup.py sdist
40-
tar -ztvf dist/*
39+
python -m build
4140
twine upload dist/*

.github/workflows/release_esptool_pypi.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Install dependencies
2121
run: |
2222
python -m pip install --upgrade pip
23-
pip install 'setuptools>=64' twine
23+
pip install twine build
2424
- name: Build and upload esptool ${{ github.event.release.tag_name }}
2525
env:
2626
TWINE_USERNAME: __token__
@@ -34,7 +34,6 @@ jobs:
3434
exit 1
3535
else
3636
echo "Packaging and publishing new esptool version: ${CURRENT_VERSION}"
37-
python setup.py sdist
38-
tar -ztvf dist/*
37+
python -m build
3938
twine upload dist/*
4039
fi

0 commit comments

Comments
 (0)