Skip to content

Commit

Permalink
[PR #6166/5bb202a9 backport][3.8] Replace deprecated setup.py invoc…
Browse files Browse the repository at this point in the history
…ations with `build` in CI (#6167)

Ref: https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html
(cherry picked from commit 5bb202a)

Co-authored-by: Sviatoslav Sydorenko <[email protected]>
  • Loading branch information
patchback[bot] and webknjaz authored Oct 28, 2021
1 parent d20e8bc commit 8a944a7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ jobs:
uses: py-actions/[email protected]
with:
path: requirements/lint.txt
- name: Install itself
- name: Install self
run: |
python setup.py install
python -m pip install .
env:
AIOHTTP_NO_EXTENSIONS: 1
- name: Run linters
Expand All @@ -58,13 +58,13 @@ jobs:
make doc-spelling
- name: Prepare twine checker
run: |
pip install -U twine wheel
python setup.py sdist bdist_wheel
pip install -U build twine
python -m build
env:
AIOHTTP_NO_EXTENSIONS: 1
- name: Run twine checker
run: |
twine check dist/*
twine check --strict dist/*
- name: Making sure that CONTRIBUTORS.txt remains sorted
run: |
LC_ALL=C sort -c CONTRIBUTORS.txt
Expand Down Expand Up @@ -162,7 +162,8 @@ jobs:
make cythonize
- name: Make sdist
run:
python setup.py sdist
python -m pip install build --user
python -m build --sdist
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
Expand Down
2 changes: 2 additions & 0 deletions CHANGES/6166.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Migrated the Python packaging setup to use PEP 517 in the CI via
the official PyPA front-end called ``build`` — :user:`webknjaz`.

0 comments on commit 8a944a7

Please sign in to comment.