-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Move config from setup.cfg
to pyproject.toml
#7484
Changes from all commits
73c2eb4
430920e
d8baf5e
adc6433
5fb892a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[flake8] | ||
extend-ignore = E203 | ||
max-line-length = 88 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -986,7 +986,6 @@ def debug_build(): | |
|
||
try: | ||
setup( | ||
version=PILLOW_VERSION, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a way to query the version from setuptools instead of reading it from a file in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are 7 options at https://packaging.python.org/en/latest/guides/single-sourcing-package-version/
But I suggest these could be topics for a followup. |
||
cmdclass={"build_ext": pil_build_ext}, | ||
ext_modules=ext_modules, | ||
zip_safe=not (debug_build() or PLATFORM_MINGW), | ||
|
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.
Looking at https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html#dynamic-metadata,
should this not be
and move
readme = "README.md"
from earlier intolater?
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.
The
readme
is listed in both examples at that page, but it looks to me like it should be in the dynamic section so that the content type can be specified (the default istext/x-rst
):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.
Version:
Setting the version is good, it means we can move
version=PILLOW_VERSION
out ofsetup.py
'ssetup()
.README:
Despite the docs saying content-type defaults to
text/x-rst
, I did a test upload to https://test.pypi.org/project/pillow/10.2.0.dev0/ (files built usingpython -m build
from the current state of the PR) and the README renders just fine, so I think it's fine?PS @radarhere and other Pillow maintainers: if you like, I can add you to https://test.pypi.org/project/pillow/ in case you want to test anything out there. Just let me know your username (you need to create a new account there).