diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d9d7b42..f7c33c30 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/noxfile.py b/noxfile.py index 58967c2c..6aed0571 100644 --- a/noxfile.py +++ b/noxfile.py @@ -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) @@ -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) diff --git a/setup.py b/setup.py deleted file mode 100644 index 6df7270c..00000000 --- a/setup.py +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright 2016 Alethea Katherine Flowers -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from setuptools import setup - -setup()