2023-05-27 11:52:03 +03:00
|
|
|
[build-system]
|
2023-05-20 08:38:36 +03:00
|
|
|
build-backend = "backend"
|
2023-06-24 17:57:43 +03:00
|
|
|
requires = [
|
|
|
|
"setuptools>=67.8",
|
|
|
|
]
|
|
|
|
backend-path = [
|
|
|
|
"_custom_build",
|
|
|
|
]
|
2023-10-21 16:23:40 +03:00
|
|
|
|
2022-10-28 14:38:23 +03:00
|
|
|
[project]
|
|
|
|
name = "pillow"
|
|
|
|
description = "Python Imaging Library (Fork)"
|
|
|
|
readme = "README.md"
|
|
|
|
keywords = [
|
|
|
|
"Imaging",
|
|
|
|
]
|
|
|
|
license = {text = "HPND"}
|
|
|
|
authors = [{name = "Jeffrey A. Clark (Alex)", email = "aclark@aclark.net"}]
|
|
|
|
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",
|
|
|
|
]
|
2023-11-21 00:33:11 +03:00
|
|
|
fpx = [
|
|
|
|
"olefile",
|
|
|
|
]
|
|
|
|
mic = [
|
2023-11-20 15:56:56 +03:00
|
|
|
"olefile",
|
|
|
|
]
|
2022-10-28 14:38:23 +03:00
|
|
|
tests = [
|
|
|
|
"check-manifest",
|
|
|
|
"coverage",
|
|
|
|
"defusedxml",
|
|
|
|
"markdown2",
|
|
|
|
"olefile",
|
|
|
|
"packaging",
|
|
|
|
"pyroma",
|
|
|
|
"pytest",
|
|
|
|
"pytest-cov",
|
|
|
|
"pytest-timeout",
|
|
|
|
]
|
2023-11-20 15:56:56 +03:00
|
|
|
xmp = [
|
|
|
|
"defusedxml",
|
|
|
|
]
|
2022-10-28 14:38:23 +03:00
|
|
|
[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"
|
2023-10-22 20:07:33 +03:00
|
|
|
Mastodon = "https://fosstodon.org/@pillow"
|
2022-10-28 14:38:23 +03:00
|
|
|
"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"}
|
|
|
|
|
2023-10-22 20:35:21 +03:00
|
|
|
[tool.setuptools.dynamic]
|
|
|
|
version = {attr = "PIL.__version__"}
|
|
|
|
|
2023-11-14 15:23:46 +03:00
|
|
|
[tool.cibuildwheel]
|
|
|
|
before-all = ".github/workflows/wheels-dependencies.sh"
|
2023-11-26 23:41:04 +03:00
|
|
|
build-verbosity = 1
|
2023-01-01 05:18:30 +03:00
|
|
|
config-settings = "raqm=enable raqm=vendor fribidi=vendor imagequant=disable"
|
2023-11-14 15:23:46 +03:00
|
|
|
test-command = "cd {project} && .github/workflows/wheels-test.sh"
|
|
|
|
test-extras = "tests"
|
|
|
|
|
2023-02-23 15:02:58 +03:00
|
|
|
[tool.ruff]
|
|
|
|
select = [
|
2023-11-06 16:13:47 +03:00
|
|
|
"C4", # flake8-comprehensions
|
2023-02-23 15:02:58 +03:00
|
|
|
"E", # pycodestyle errors
|
|
|
|
"EM", # flake8-errmsg
|
|
|
|
"F", # pyflakes errors
|
|
|
|
"I", # isort
|
|
|
|
"ISC", # flake8-implicit-str-concat
|
|
|
|
"PGH", # pygrep-hooks
|
|
|
|
"RUF100", # unused noqa (yesqa)
|
|
|
|
"UP", # pyupgrade
|
|
|
|
"W", # pycodestyle warnings
|
|
|
|
"YTT", # flake8-2020
|
|
|
|
# "LOG", # TODO: enable flake8-logging when it's not in preview anymore
|
|
|
|
]
|
|
|
|
extend-ignore = [
|
|
|
|
"E203", # Whitespace before ':'
|
|
|
|
"E221", # Multiple spaces before operator
|
|
|
|
"E226", # Missing whitespace around arithmetic operator
|
|
|
|
"E241", # Multiple spaces after ','
|
|
|
|
]
|
|
|
|
|
|
|
|
[tool.ruff.per-file-ignores]
|
|
|
|
"Tests/*.py" = ["I001"]
|
|
|
|
|
|
|
|
[tool.ruff.isort]
|
|
|
|
known-first-party = ["PIL"]
|
2023-12-21 14:13:07 +03:00
|
|
|
required-imports = ["from __future__ import annotations"]
|
2023-10-21 16:23:40 +03:00
|
|
|
|
|
|
|
[tool.pytest.ini_options]
|
|
|
|
addopts = "-ra --color=yes"
|
|
|
|
testpaths = ["Tests"]
|
2023-06-30 18:50:18 +03:00
|
|
|
|
|
|
|
[tool.mypy]
|
|
|
|
python_version = "3.8"
|
|
|
|
pretty = true
|
|
|
|
disallow_any_generics = true
|
|
|
|
enable_error_code = "ignore-without-code"
|
|
|
|
extra_checks = true
|
|
|
|
follow_imports = "silent"
|
|
|
|
warn_redundant_casts = true
|
|
|
|
warn_unreachable = true
|
|
|
|
warn_unused_ignores = true
|
|
|
|
exclude = [
|
|
|
|
'^src/PIL/_tkinter_finder.py$',
|
|
|
|
'^src/PIL/DdsImagePlugin.py$',
|
|
|
|
'^src/PIL/FpxImagePlugin.py$',
|
|
|
|
'^src/PIL/Image.py$',
|
|
|
|
'^src/PIL/ImageCms.py$',
|
|
|
|
'^src/PIL/ImageFile.py$',
|
|
|
|
'^src/PIL/ImageFont.py$',
|
|
|
|
'^src/PIL/ImageMath.py$',
|
|
|
|
'^src/PIL/ImageMorph.py$',
|
|
|
|
'^src/PIL/ImageQt.py$',
|
|
|
|
'^src/PIL/ImageShow.py$',
|
|
|
|
'^src/PIL/ImImagePlugin.py$',
|
|
|
|
'^src/PIL/MicImagePlugin.py$',
|
|
|
|
'^src/PIL/PdfParser.py$',
|
|
|
|
'^src/PIL/PyAccess.py$',
|
|
|
|
'^src/PIL/TiffImagePlugin.py$',
|
|
|
|
'^src/PIL/TiffTags.py$',
|
|
|
|
'^src/PIL/WebPImagePlugin.py$',
|
|
|
|
]
|