Skip to content

Commit

Permalink
Remove setup.py (#458)
Browse files Browse the repository at this point in the history
* Remove setup.py

Editable installs for projects with a setup.cfg no longer require a setup.py
shim. This requires pip >= 21.1 (2021-04-24).

* Remove setup.py from blacken and lint sessions

* CI: Use python -m build in deploy job
  • Loading branch information
cjolowicz committed Jul 4, 2021
1 parent 6cb0376 commit 5ac156f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 22 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install setuptools and wheel
run: python -m pip install --upgrade --user setuptools wheel
- name: Install build
run: python -m pip install --user build
- name: Build sdist and wheel
run: python setup.py sdist bdist_wheel
run: python -m build
- name: Publish distribution PyPI
uses: pypa/gh-action-pypi-publish@master
with:
Expand Down
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def cover(session):
def blacken(session):
"""Run black code formatter."""
session.install("black==21.5b2", "isort==5.8.0")
files = ["nox", "tests", "noxfile.py", "setup.py"]
files = ["nox", "tests", "noxfile.py"]
session.run("black", *files)
session.run("isort", *files)

Expand All @@ -96,7 +96,7 @@ def lint(session):
"importlib_metadata",
)
session.run("mypy")
files = ["nox", "tests", "noxfile.py", "setup.py"]
files = ["nox", "tests", "noxfile.py"]
session.run("black", "--check", *files)
session.run("isort", "--check", *files)
session.run("flake8", *files)
Expand Down
17 changes: 0 additions & 17 deletions setup.py

This file was deleted.

0 comments on commit 5ac156f

Please sign in to comment.