mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
128 lines
3.2 KiB
TOML
128 lines
3.2 KiB
TOML
[build-system]
|
|
build-backend = "backend"
|
|
requires = [
|
|
"setuptools>=67.8",
|
|
]
|
|
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 = "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",
|
|
]
|
|
fpx = [
|
|
"olefile",
|
|
]
|
|
mic = [
|
|
"olefile",
|
|
]
|
|
tests = [
|
|
"check-manifest",
|
|
"coverage",
|
|
"defusedxml",
|
|
"markdown2",
|
|
"olefile",
|
|
"packaging",
|
|
"pyroma",
|
|
"pytest",
|
|
"pytest-cov",
|
|
"pytest-timeout",
|
|
]
|
|
xmp = [
|
|
"defusedxml",
|
|
]
|
|
[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"
|
|
"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.setuptools.dynamic]
|
|
version = {attr = "PIL.__version__"}
|
|
|
|
[tool.cibuildwheel]
|
|
before-all = ".github/workflows/wheels-dependencies.sh"
|
|
build-verbosity = 1
|
|
config-settings = "raqm=enable raqm=vendor fribidi=vendor imagequant=disable"
|
|
test-command = "cd {project} && .github/workflows/wheels-test.sh"
|
|
test-extras = "tests"
|
|
|
|
[tool.ruff]
|
|
line-length = 88
|
|
select = [
|
|
"C4", # flake8-comprehensions
|
|
"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"]
|
|
|
|
[tool.pytest.ini_options]
|
|
addopts = "-ra --color=yes"
|
|
testpaths = ["Tests"]
|