Skip to content

Commit

Permalink
Replace deprecated setup.py invocations with build in CI (#6166)
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz authored and Patchback committed Oct 28, 2021
1 parent d20e8bc commit a05921d
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/py-dependency-install@v2.1.0
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 a05921d

Please sign in to comment.