-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PR #6166/5bb202a9 backport][3.8] Replace deprecated
setup.py
invoc…
…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
1 parent
d20e8bc
commit 8a944a7
Showing
2 changed files
with
9 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`. |