Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace setup.py with build #342

Merged
merged 1 commit into from
Jun 27, 2022
Merged

Replace setup.py with build #342

merged 1 commit into from
Jun 27, 2022

Conversation

jdufresne
Copy link
Member

Using setup.py is no longer recommended by setuptools. Instead, projects
should use build: https://github.com/pypa/build. Invoking build will
create a source and wheel distribution
https://pypa-build.readthedocs.io/en/latest/:

By default, a source distribution (sdist) is built from {srcdir} and a
binary distribution (wheel) is built from the sdist.

See the setuptools quickstart guides for more information:
https://setuptools.pypa.io/en/latest/userguide/quickstart.html

Instead, when creating new Python packages, it is recommended to use a
command line tool called build. This tool will automatically download
setuptools and any other build-time dependencies that your project
might have. You just need to specify them in a pyproject.toml file at
the root of your package, as indicated in the following section.

Using setup.py is no longer recommended by setuptools. Instead, projects
should use build: https://github.com/pypa/build. Invoking build will
create a source and wheel distribution
https://pypa-build.readthedocs.io/en/latest/:

> By default, a source distribution (sdist) is built from {srcdir} and a
> binary distribution (wheel) is built from the sdist.

See the setuptools quickstart guides for more information:
https://setuptools.pypa.io/en/latest/userguide/quickstart.html

> Instead, when creating new Python packages, it is recommended to use a
> command line tool called build. This tool will automatically download
> setuptools and any other build-time dependencies that your project
> might have. You just need to specify them in a pyproject.toml file at
> the root of your package, as indicated in the following section.
@jdufresne jdufresne merged commit fc50845 into python-distro:master Jun 27, 2022
@jdufresne jdufresne deleted the build branch June 27, 2022 00:41
@hartwork hartwork added this to the 1.8.0 milestone Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants