diff --git a/.gitignore b/.gitignore index 86d063f5..54defebb 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,6 @@ *.pyc *.so *.dll -*.dylib build dist docs/_build diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3af1a3e6..2ead1fee 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: args: ["-a", "from __future__ import annotations"] - repo: https://github.com/asottile/pyupgrade - rev: v2.30.1 + rev: v2.31.0 hooks: - id: pyupgrade args: ["--py37-plus"] diff --git a/docs/quickstart.rst b/docs/quickstart.rst index a8fe813b..13c16a35 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -1,9 +1,10 @@ Quickstart ========== -To build a wheel for your setuptools based project:: +To build a wheel for your project:: - python setup.py bdist_wheel + python -m pip install build + python -m build --wheel The wheel will go to ``dist/yourproject-.whl``. diff --git a/docs/user_guide.rst b/docs/user_guide.rst index 6517258d..c8b5a347 100644 --- a/docs/user_guide.rst +++ b/docs/user_guide.rst @@ -4,9 +4,10 @@ User Guide Building Wheels --------------- -Building wheels from a setuptools_ based project is simple:: +To build a wheel for your project:: - python setup.py bdist_wheel + python -m pip install build + python -m build --wheel This will build any C extensions in the project and then package those and the pure Python code into a ``.whl`` file in the ``dist`` directory. @@ -20,7 +21,6 @@ adding this to your ``setup.cfg`` file: [bdist_wheel] universal = 1 -.. _setuptools: https://pypi.org/project/setuptools/ Including license files in the generated wheel file ---------------------------------------------------