-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Move config from setup.cfg to pyproject.toml
#7484
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
73c2eb4
Move tools config from setup.cfg to pyproject.toml
hugovk 430920e
Move build config from setup.cfg to pyproject.toml
hugovk d8baf5e
Bump setuptools for Pyroma on 3.8-3.9
hugovk adc6433
Add space
hugovk 5fb892a
Move version from setup.py to pyproject.toml
hugovk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [flake8] | ||
| extend-ignore = E203 | ||
| max-line-length = 88 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,3 +6,77 @@ requires = [ | |
| backend-path = [ | ||
| "_custom_build", | ||
| ] | ||
|
|
||
| [project] | ||
| name = "pillow" | ||
| description = "Python Imaging Library (Fork)" | ||
| readme = "README.md" | ||
| keywords = [ | ||
| "Imaging", | ||
| ] | ||
| license = {text = "HPND"} | ||
| authors = [{name = "Jeffrey A. Clark (Alex)", email = "[email protected]"}] | ||
| requires-python = ">=3.8" | ||
| classifiers = [ | ||
| "Development Status :: 6 - Mature", | ||
| "License :: OSI Approved :: Historical Permission Notice and Disclaimer (HPND)", | ||
| "Programming Language :: Python :: 3 :: Only", | ||
| "Programming Language :: Python :: 3.8", | ||
| "Programming Language :: Python :: 3.9", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3.11", | ||
| "Programming Language :: Python :: 3.12", | ||
| "Programming Language :: Python :: Implementation :: CPython", | ||
| "Programming Language :: Python :: Implementation :: PyPy", | ||
| "Topic :: Multimedia :: Graphics", | ||
| "Topic :: Multimedia :: Graphics :: Capture :: Digital Camera", | ||
| "Topic :: Multimedia :: Graphics :: Capture :: Screen Capture", | ||
| "Topic :: Multimedia :: Graphics :: Graphics Conversion", | ||
| "Topic :: Multimedia :: Graphics :: Viewers", | ||
| ] | ||
| dynamic = [ | ||
| "version", | ||
| ] | ||
| [project.optional-dependencies] | ||
| docs = [ | ||
| "furo", | ||
| "olefile", | ||
| "sphinx>=2.4", | ||
| "sphinx-copybutton", | ||
| "sphinx-inline-tabs", | ||
| "sphinx-removed-in", | ||
| "sphinxext-opengraph", | ||
| ] | ||
| tests = [ | ||
| "check-manifest", | ||
| "coverage", | ||
| "defusedxml", | ||
| "markdown2", | ||
| "olefile", | ||
| "packaging", | ||
| "pyroma", | ||
| "pytest", | ||
| "pytest-cov", | ||
| "pytest-timeout", | ||
| ] | ||
| [project.urls] | ||
| Changelog = "https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst" | ||
| Documentation = "https://pillow.readthedocs.io" | ||
| Funding = "https://tidelift.com/subscription/pkg/pypi-pillow?utm_source=pypi-pillow&utm_medium=pypi" | ||
| Homepage = "https://python-pillow.org" | ||
| Mastodon= "https://fosstodon.org/@pillow" | ||
hugovk marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| "Release notes" = "https://pillow.readthedocs.io/en/stable/releasenotes/index.html" | ||
| Source = "https://github.com/python-pillow/Pillow" | ||
| Twitter = "https://twitter.com/PythonPillow" | ||
|
|
||
| [tool.setuptools] | ||
| packages = ["PIL"] | ||
| include-package-data = true | ||
| package-dir = {"" = "src"} | ||
|
|
||
| [tool.isort] | ||
| profile = "black" | ||
|
|
||
| [tool.pytest.ini_options] | ||
| addopts = "-ra --color=yes" | ||
| testpaths = ["Tests"] | ||
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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?
Uh oh!
There was an error while loading. Please reload this page.
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
readmeis 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_VERSIONout 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 buildfrom 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).