-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop support for Python 2.7, migrate to
pyproject.toml
(#445)
* Drop support for Python 2.7 * Require pkgconfig >= 1.5 * Migrate to `pyproject.toml` * Require Python >= 3.7
- Loading branch information
Showing
23 changed files
with
134 additions
and
250 deletions.
There are no files selected for viewing
This file contains 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 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,89 @@ | ||
[build-system] | ||
requires = [ | ||
# First version of setuptools to support pyproject.toml configuration | ||
"setuptools>=61.0.0", | ||
"wheel", | ||
# Must be kept in sync with `project.dependencies` | ||
"cffi>=1.0.0", | ||
"pkgconfig>=1.5", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "pyvips" | ||
authors = [ | ||
{name = "John Cupitt", email = "[email protected]"}, | ||
] | ||
description = "binding for the libvips image processing library" | ||
readme = "README.rst" | ||
keywords = [ | ||
"image processing", | ||
] | ||
license = {text = "MIT"} | ||
requires-python = ">=3.7" | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Console", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"Topic :: Multimedia :: Graphics", | ||
"Topic :: Multimedia :: Graphics :: Graphics Conversion", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.7", | ||
"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", | ||
] | ||
dependencies = [ | ||
# Must be kept in sync with `build-system.requires` | ||
"cffi>=1.0.0", | ||
] | ||
dynamic = [ | ||
"version", | ||
] | ||
|
||
[project.urls] | ||
changelog = "https://github.com/libvips/pyvips/blob/master/CHANGELOG.rst" | ||
documentation = "https://libvips.github.io/pyvips/" | ||
funding = "https://opencollective.com/libvips" | ||
homepage = "https://github.com/libvips/pyvips" | ||
issues = "https://github.com/libvips/pyvips/issues" | ||
source = "https://github.com/libvips/pyvips" | ||
|
||
[tool.setuptools] | ||
# We try to compile as part of install, so we can't run in a ZIP | ||
zip-safe = false | ||
include-package-data = false | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "pyvips.version.__version__"} | ||
|
||
[tool.setuptools.packages.find] | ||
exclude = [ | ||
"doc*", | ||
"examples*", | ||
"tests*", | ||
] | ||
|
||
[project.optional-dependencies] | ||
# All the following are used for our own testing | ||
tox = ["tox"] | ||
test = [ | ||
"pytest", | ||
"pyperf", | ||
] | ||
sdist = ["build"] | ||
doc = [ | ||
"sphinx", | ||
"sphinx_rtd_theme", | ||
] | ||
|
||
[tool.pytest.ini_options] | ||
norecursedirs = ["tests/helpers"] |
This file contains 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 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 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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from __future__ import division | ||
|
||
import logging | ||
|
||
import pyvips | ||
|
This file contains 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 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 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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from __future__ import division | ||
|
||
import logging | ||
|
||
import pyvips | ||
|
This file contains 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# this is execfile()d into setup.py imported into __init__.py | ||
# this is used in pyproject.toml and imported into __init__.py | ||
__version__ = '2.2.3' | ||
|
||
__all__ = ['__version__'] |
This file contains 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 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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from __future__ import division | ||
|
||
import pyvips | ||
from pyvips import ffi, vips_lib, Error, _to_bytes | ||
|
||
|
This file contains 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 |
---|---|---|
@@ -1,7 +1,5 @@ | ||
# wrap VipsObject | ||
|
||
from __future__ import division | ||
|
||
import logging | ||
|
||
import pyvips | ||
|
This file contains 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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from __future__ import division, print_function | ||
|
||
import logging | ||
|
||
import pyvips | ||
|
This file contains 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 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 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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from __future__ import division | ||
|
||
import logging | ||
|
||
import pyvips | ||
|
This file contains 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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from __future__ import division | ||
|
||
import logging | ||
|
||
import pyvips | ||
|
This file contains 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
Oops, something went wrong.