-
Notifications
You must be signed in to change notification settings - Fork 697
Update package metadata #813
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
base: master
Are you sure you want to change the base?
Conversation
| python setup.py --version | ||
| python setup.py sdist --format=gztar bdist_wheel | ||
| python -m build | ||
| twine check dist/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| twine check dist/* | |
| twine check --strict dist/* |
| .PHONY: publish | ||
| publish: | ||
| python setup.py sdist bdist_wheel | ||
| python -m build --wheel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why just wheel, though?
| python -m build --wheel | |
| python -m build |
| .PHONY: dist | ||
| dist: clean | ||
| python setup.py sdist bdist_wheel | ||
| python -m build --wheel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| python -m build --wheel | |
| python -m build |
Motivation and Context
Hello there! The Python packaging ecosystem has standardized on the interface for build backends (PEP 517/PEP 660) and the format for metadata declaration (PEP 621/PEP 631). As a result, the execution of
setup.pyfiles is now deprecated.So, I'm spending my free time updating important projects so that they are modernized and set an example for others 😄
Some other Django projects that have been updated:
Description
This implements PEP 621, obviating the need for
setup.py,setup.cfg, andMANIFEST.in. The build backendhatchling(of which I am a maintainer in the PyPA) is now used as that is the default in the official Python packaging tutorial. Hatchling is available on all the major distribution channels such as Debian, Fedora, Arch Linux, conda-forge, Nixpkgs, Alpine Linux, FreeBSD/OpenBSD, Gentoo Linux, MacPorts, OpenEmbedded, Spack, MSYS2, etc.Notes
*.egg-infodirectory (the source distribution on PyPI ships that).Related Issue
jazzband/help#313