-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
build: move project metadata to pyproject #4441
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
Conversation
918cc58
to
678ff68
Compare
Just rebased the branch... I dropped the commit which moves the Other changes after rebasing:
|
678ff68
to
ecbc474
Compare
I've commented earlier (and then deleted my post again) that I noticed issues with the sdist tarballs and that it somehow includes every file in the git repo instead of only the package files and stuff defined in MANIFEST.in. I still have no idea why this happened when building the sdist tarball and I first thought that this was caused by these changes here or #4440. All I know is that this started happening after the move to pyproject.toml, even after deleting the After checking Regarding the current state of this PR, I had to add
So the only thing that may be of concern here is that the most recent version of setuptools (
|
1dbb0e6
to
6f3c1ee
Compare
Just a quick force-push in order to resolve the merge conflicts. This is still considered too new to be merged, as setuptools 61 is required (2022-03-24) and setuptools still considers pyproject metadata experimental itself. |
6f3c1ee
to
a73f374
Compare
Rebased to master and fixed merge conflicts. Also changed:
I'll keep this PR as a draft, since setuptools still doesn't consider pyproject.toml project metadata stable |
a73f374
to
91d7f39
Compare
Rebased to master once again, with changes of #5141 applied to pyproject.toml |
- bump min. setuptools version to 64 - bump min. pip version to 21 in dev-requirements.txt - move PEP 621 metadata from setup.cfg to pyproject.toml - update install docs
91d7f39
to
d868f27
Compare
Follow up of #4440 with the pyproject.toml metadata changes, according to PEP 621.
https://peps.python.org/pep-0621/
https://setuptools.pypa.io/en/stable/history.html#v61-0-0
See #4321
Remove {dev,docs}-requirements.txt in favor of package "extra" dependencies that can be installed like thisstreamlink[dev]
,streamlink[docs]
This leaves setup.cfg with only flake8 related content. Flake8 doesn't support pyproject yet AFAIK, so the file could be renamed to
.flake8
, similar to.coveragerc
which includes configs for the coverage package, but that's rather pointless, because the stuff will be moved eventually anyway.I've tried to keep the resulting package metadata as close to the currently included metadata. There are some changes though (ignoring the changes on master):