|
| 1 | +[build-system] |
| 2 | +requires = [ |
| 3 | + # First version of setuptools to support pyproject.toml configuration |
| 4 | + "setuptools>=61.0.0", |
| 5 | + "wheel", |
| 6 | + "cffi>=1.0.0", |
| 7 | + "pkgconfig>=1.5", |
| 8 | +] |
| 9 | +build-backend = "setuptools.build_meta" |
| 10 | + |
| 11 | +[project] |
| 12 | +name = "pyvips-binary" |
| 13 | +# Must be kept in sync with `scripts/download-vips.py` |
| 14 | +version = "8.15.0" |
| 15 | +authors = [ |
| 16 | + { name = "John Cupitt", email = "[email protected]"}, |
| 17 | +] |
| 18 | +description = "Prebuilt libvips and dependencies for use with pyvips" |
| 19 | +license = {text = "LGPLv3+"} |
| 20 | +requires-python = ">=3.7" |
| 21 | +classifiers = [ |
| 22 | + "Development Status :: 5 - Production/Stable", |
| 23 | + "Environment :: Console", |
| 24 | + "Intended Audience :: Developers", |
| 25 | + "Intended Audience :: Science/Research", |
| 26 | + "Topic :: Multimedia :: Graphics", |
| 27 | + "Topic :: Multimedia :: Graphics :: Graphics Conversion", |
| 28 | + "OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)", |
| 29 | + "Programming Language :: Python", |
| 30 | + "Programming Language :: Python :: 3", |
| 31 | + "Programming Language :: Python :: 3 :: Only", |
| 32 | + "Programming Language :: Python :: 3.7", |
| 33 | + "Programming Language :: Python :: 3.8", |
| 34 | + "Programming Language :: Python :: 3.9", |
| 35 | + "Programming Language :: Python :: 3.10", |
| 36 | + "Programming Language :: Python :: 3.11", |
| 37 | + "Programming Language :: Python :: 3.12", |
| 38 | + "Programming Language :: Python :: Implementation :: CPython", |
| 39 | + "Programming Language :: Python :: Implementation :: PyPy", |
| 40 | +] |
| 41 | + |
| 42 | +[tool.setuptools] |
| 43 | +include-package-data = false |
| 44 | + |
| 45 | +[tool.setuptools.packages.find] |
| 46 | +exclude = ["scripts*"] |
| 47 | + |
| 48 | +[tool.cibuildwheel] |
| 49 | +# Only build CPython 3.7, because we have portable abi3 wheels |
| 50 | +# Apple Silicon is only available on 3.8 and later |
| 51 | +build = [ |
| 52 | + "cp37-*", |
| 53 | + "cp38-macosx_arm64" |
| 54 | +] |
| 55 | +build-frontend = "build" |
| 56 | +before-build = "bash {package}/scripts/cibw_before_build.sh" |
| 57 | +environment-pass = ["RUNNER_OS"] |
| 58 | + |
| 59 | +[tool.cibuildwheel.environment] |
| 60 | +PKG_CONFIG_PATH = "./tmp/lib/pkgconfig" |
| 61 | +LD_LIBRARY_PATH = "$(pwd)/pyvips-binary/tmp/lib" |
| 62 | +DYLD_LIBRARY_PATH = "$(pwd)/pyvips-binary/tmp/lib" |
| 63 | +MACOSX_DEPLOYMENT_TARGET = "10.13" |
| 64 | + |
| 65 | +[tool.cibuildwheel.linux] |
| 66 | +archs = "x86_64 aarch64" |
| 67 | +manylinux-x86_64-image = "manylinux_2_28" |
| 68 | +manylinux-aarch64-image = "manylinux_2_28" |
| 69 | + |
| 70 | +[[tool.cibuildwheel.overrides]] |
| 71 | +select = "*-musllinux*" |
| 72 | +# Exclude a couple of system libraries from grafting into the resulting wheel |
| 73 | +repair-wheel-command = """\ |
| 74 | +auditwheel repair -w {dest_dir} {wheel} \ |
| 75 | +--exclude libc.so --exclude libstdc++.so.6 --exclude libgcc_s.so.1\ |
| 76 | +""" |
| 77 | + |
| 78 | +[tool.cibuildwheel.macos] |
| 79 | +archs = "x86_64 arm64" |
| 80 | +# https://github.com/pypa/cibuildwheel/pull/1169 |
| 81 | +test-skip = "*-macosx_arm64" |
| 82 | + |
| 83 | +[tool.cibuildwheel.windows] |
| 84 | +archs = "AMD64 x86" |
| 85 | +# Use delvewheel on Windows |
| 86 | +before-all = "pip install delvewheel" |
| 87 | +repair-wheel-command = """\ |
| 88 | +delvewheel repair -w {dest_dir} {wheel} \ |
| 89 | +--add-path ./pyvips-binary/tmp/lib --no-diagnostic\ |
| 90 | +""" |
0 commit comments