Skip to content

Commit 057ddb0

Browse files
committed
Use isolated build environments
1 parent 91533b7 commit 057ddb0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ jobs:
2525
python-version: ${{ env.DEFAULT_PYTHON }}
2626
- name: Install requirements
2727
run: |
28-
python -m pip install -U pip twine wheel
29-
python -m pip install -U "setuptools>=56.0.0"
28+
# Remove dist, build, and astroid.egg-info
29+
# when building locally for testing!
30+
python -m pip install twine build
3031
- name: Build distributions
3132
run: |
32-
python setup.py sdist bdist_wheel
33+
python -m build
3334
- name: Upload to PyPI
3435
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags')
3536
env:

0 commit comments

Comments
 (0)