pyvips-binary 8.15.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyvips_binary-8.15.3/LICENSE +21 -0
- pyvips_binary-8.15.3/PKG-INFO +46 -0
- pyvips_binary-8.15.3/README.md +13 -0
- pyvips_binary-8.15.3/pyproject.toml +106 -0
- pyvips_binary-8.15.3/pyvips_binary.egg-info/PKG-INFO +46 -0
- pyvips_binary-8.15.3/pyvips_binary.egg-info/SOURCES.txt +9 -0
- pyvips_binary-8.15.3/pyvips_binary.egg-info/dependency_links.txt +1 -0
- pyvips_binary-8.15.3/pyvips_binary.egg-info/requires.txt +1 -0
- pyvips_binary-8.15.3/pyvips_binary.egg-info/top_level.txt +1 -0
- pyvips_binary-8.15.3/setup.cfg +4 -0
- pyvips_binary-8.15.3/setup.py +34 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024-present Kleis Auke Wolthuizen
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: pyvips-binary
|
|
3
|
+
Version: 8.15.3
|
|
4
|
+
Summary: Binary distribution of libvips and dependencies for use with pyvips
|
|
5
|
+
Author-email: Kleis Auke Wolthuizen <info@kleisauke.nl>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: changelog, https://github.com/kleisauke/pyvips-binary/blob/main/CHANGELOG.md
|
|
8
|
+
Project-URL: funding, https://opencollective.com/libvips
|
|
9
|
+
Project-URL: homepage, https://github.com/kleisauke/pyvips-binary
|
|
10
|
+
Project-URL: issues, https://github.com/kleisauke/pyvips-binary/issues
|
|
11
|
+
Project-URL: source, https://github.com/kleisauke/pyvips-binary
|
|
12
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Intended Audience :: Science/Research
|
|
16
|
+
Classifier: Topic :: Multimedia :: Graphics
|
|
17
|
+
Classifier: Topic :: Multimedia :: Graphics :: Graphics Conversion
|
|
18
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
19
|
+
Classifier: Programming Language :: Python
|
|
20
|
+
Classifier: Programming Language :: Python :: 3
|
|
21
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
27
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
28
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
29
|
+
Requires-Python: >=3.7
|
|
30
|
+
Description-Content-Type: text/markdown
|
|
31
|
+
License-File: LICENSE
|
|
32
|
+
Requires-Dist: cffi>=1.0.0
|
|
33
|
+
|
|
34
|
+
# pyvips-binary
|
|
35
|
+
|
|
36
|
+
[](https://github.com/kleisauke/pyvips-binary/actions)
|
|
37
|
+
[](https://pypi.org/project/pyvips-binary/)
|
|
38
|
+
|
|
39
|
+
This binary package is an optional component of [pyvips](
|
|
40
|
+
https://github.com/libvips/pyvips), providing pre-built binary wheels for
|
|
41
|
+
running pyvips in [CFFI's API mode](
|
|
42
|
+
https://cffi.readthedocs.io/en/stable/overview.html#abi-versus-api) across
|
|
43
|
+
the most common platforms.
|
|
44
|
+
|
|
45
|
+
This package leverages the pre-compiled libvips binaries from
|
|
46
|
+
[this repository](https://github.com/kleisauke/libvips-packaging).
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# pyvips-binary
|
|
2
|
+
|
|
3
|
+
[](https://github.com/kleisauke/pyvips-binary/actions)
|
|
4
|
+
[](https://pypi.org/project/pyvips-binary/)
|
|
5
|
+
|
|
6
|
+
This binary package is an optional component of [pyvips](
|
|
7
|
+
https://github.com/libvips/pyvips), providing pre-built binary wheels for
|
|
8
|
+
running pyvips in [CFFI's API mode](
|
|
9
|
+
https://cffi.readthedocs.io/en/stable/overview.html#abi-versus-api) across
|
|
10
|
+
the most common platforms.
|
|
11
|
+
|
|
12
|
+
This package leverages the pre-compiled libvips binaries from
|
|
13
|
+
[this repository](https://github.com/kleisauke/libvips-packaging).
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = [
|
|
3
|
+
# First version of setuptools to support pyproject.toml configuration
|
|
4
|
+
"setuptools>=61.0.0",
|
|
5
|
+
"wheel",
|
|
6
|
+
# Must be kept in sync with `project.dependencies`
|
|
7
|
+
"cffi>=1.0.0",
|
|
8
|
+
"pkgconfig>=1.5",
|
|
9
|
+
]
|
|
10
|
+
build-backend = "setuptools.build_meta"
|
|
11
|
+
|
|
12
|
+
[project]
|
|
13
|
+
name = "pyvips-binary"
|
|
14
|
+
# Must be kept in sync with `scripts/download-vips.py`
|
|
15
|
+
version = "8.15.3"
|
|
16
|
+
authors = [
|
|
17
|
+
{name = "Kleis Auke Wolthuizen", email = "info@kleisauke.nl"},
|
|
18
|
+
]
|
|
19
|
+
description = "Binary distribution of libvips and dependencies for use with pyvips"
|
|
20
|
+
readme = "README.md"
|
|
21
|
+
license = {text = "MIT"}
|
|
22
|
+
requires-python = ">=3.7"
|
|
23
|
+
classifiers = [
|
|
24
|
+
"Development Status :: 5 - Production/Stable",
|
|
25
|
+
"Environment :: Console",
|
|
26
|
+
"Intended Audience :: Developers",
|
|
27
|
+
"Intended Audience :: Science/Research",
|
|
28
|
+
"Topic :: Multimedia :: Graphics",
|
|
29
|
+
"Topic :: Multimedia :: Graphics :: Graphics Conversion",
|
|
30
|
+
"License :: OSI Approved :: MIT License",
|
|
31
|
+
"Programming Language :: Python",
|
|
32
|
+
"Programming Language :: Python :: 3",
|
|
33
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
34
|
+
"Programming Language :: Python :: 3.7",
|
|
35
|
+
"Programming Language :: Python :: 3.8",
|
|
36
|
+
"Programming Language :: Python :: 3.9",
|
|
37
|
+
"Programming Language :: Python :: 3.10",
|
|
38
|
+
"Programming Language :: Python :: 3.11",
|
|
39
|
+
"Programming Language :: Python :: 3.12",
|
|
40
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
41
|
+
]
|
|
42
|
+
dependencies = [
|
|
43
|
+
# Must be kept in sync with `build-system.requires`
|
|
44
|
+
"cffi>=1.0.0",
|
|
45
|
+
]
|
|
46
|
+
|
|
47
|
+
[project.urls]
|
|
48
|
+
changelog ="https://github.com/kleisauke/pyvips-binary/blob/main/CHANGELOG.md"
|
|
49
|
+
funding = "https://opencollective.com/libvips"
|
|
50
|
+
homepage = "https://github.com/kleisauke/pyvips-binary"
|
|
51
|
+
issues = "https://github.com/kleisauke/pyvips-binary/issues"
|
|
52
|
+
source = "https://github.com/kleisauke/pyvips-binary"
|
|
53
|
+
|
|
54
|
+
[tool.setuptools]
|
|
55
|
+
include-package-data = false
|
|
56
|
+
|
|
57
|
+
[tool.setuptools.packages.find]
|
|
58
|
+
exclude = [
|
|
59
|
+
"pyvips*",
|
|
60
|
+
"scripts*",
|
|
61
|
+
]
|
|
62
|
+
|
|
63
|
+
[tool.cibuildwheel]
|
|
64
|
+
# Only build CPython 3.7, because we have portable abi3 wheels
|
|
65
|
+
# Apple Silicon is only available on 3.8 and later
|
|
66
|
+
build = [
|
|
67
|
+
"cp37-*",
|
|
68
|
+
"cp38-macosx_arm64",
|
|
69
|
+
]
|
|
70
|
+
build-frontend = "build"
|
|
71
|
+
before-build = "bash {package}/scripts/cibw_before_build.sh"
|
|
72
|
+
test-command = "python -c \"import _libvips; assert _libvips.lib.vips_version(0) == 8\""
|
|
73
|
+
environment-pass = ["RUNNER_OS"]
|
|
74
|
+
|
|
75
|
+
[tool.cibuildwheel.environment]
|
|
76
|
+
PKG_CONFIG_PATH = "./tmp/lib/pkgconfig"
|
|
77
|
+
LD_LIBRARY_PATH = "$(pwd)/tmp/lib"
|
|
78
|
+
DYLD_LIBRARY_PATH = "$(pwd)/tmp/lib"
|
|
79
|
+
MACOSX_DEPLOYMENT_TARGET = "10.13"
|
|
80
|
+
|
|
81
|
+
[tool.cibuildwheel.linux]
|
|
82
|
+
archs = "x86_64 aarch64"
|
|
83
|
+
manylinux-x86_64-image = "manylinux_2_28"
|
|
84
|
+
manylinux-aarch64-image = "manylinux_2_28"
|
|
85
|
+
|
|
86
|
+
[[tool.cibuildwheel.overrides]]
|
|
87
|
+
select = "*-musllinux*"
|
|
88
|
+
# Exclude a couple of system libraries from grafting into the resulting wheel
|
|
89
|
+
repair-wheel-command = """\
|
|
90
|
+
auditwheel repair -w {dest_dir} {wheel} \
|
|
91
|
+
--exclude libc.so --exclude libstdc++.so.6 --exclude libgcc_s.so.1\
|
|
92
|
+
"""
|
|
93
|
+
|
|
94
|
+
[tool.cibuildwheel.macos]
|
|
95
|
+
archs = "x86_64 arm64"
|
|
96
|
+
# https://github.com/pypa/cibuildwheel/pull/1169
|
|
97
|
+
test-skip = "*-macosx_arm64"
|
|
98
|
+
|
|
99
|
+
[tool.cibuildwheel.windows]
|
|
100
|
+
archs = "AMD64 x86"
|
|
101
|
+
# Use delvewheel on Windows
|
|
102
|
+
before-all = "pip install delvewheel"
|
|
103
|
+
repair-wheel-command = """\
|
|
104
|
+
delvewheel repair -w {dest_dir} {wheel} \
|
|
105
|
+
--add-path ./tmp/lib --no-diagnostic\
|
|
106
|
+
"""
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: pyvips-binary
|
|
3
|
+
Version: 8.15.3
|
|
4
|
+
Summary: Binary distribution of libvips and dependencies for use with pyvips
|
|
5
|
+
Author-email: Kleis Auke Wolthuizen <info@kleisauke.nl>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: changelog, https://github.com/kleisauke/pyvips-binary/blob/main/CHANGELOG.md
|
|
8
|
+
Project-URL: funding, https://opencollective.com/libvips
|
|
9
|
+
Project-URL: homepage, https://github.com/kleisauke/pyvips-binary
|
|
10
|
+
Project-URL: issues, https://github.com/kleisauke/pyvips-binary/issues
|
|
11
|
+
Project-URL: source, https://github.com/kleisauke/pyvips-binary
|
|
12
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Intended Audience :: Science/Research
|
|
16
|
+
Classifier: Topic :: Multimedia :: Graphics
|
|
17
|
+
Classifier: Topic :: Multimedia :: Graphics :: Graphics Conversion
|
|
18
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
19
|
+
Classifier: Programming Language :: Python
|
|
20
|
+
Classifier: Programming Language :: Python :: 3
|
|
21
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
27
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
28
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
29
|
+
Requires-Python: >=3.7
|
|
30
|
+
Description-Content-Type: text/markdown
|
|
31
|
+
License-File: LICENSE
|
|
32
|
+
Requires-Dist: cffi>=1.0.0
|
|
33
|
+
|
|
34
|
+
# pyvips-binary
|
|
35
|
+
|
|
36
|
+
[](https://github.com/kleisauke/pyvips-binary/actions)
|
|
37
|
+
[](https://pypi.org/project/pyvips-binary/)
|
|
38
|
+
|
|
39
|
+
This binary package is an optional component of [pyvips](
|
|
40
|
+
https://github.com/libvips/pyvips), providing pre-built binary wheels for
|
|
41
|
+
running pyvips in [CFFI's API mode](
|
|
42
|
+
https://cffi.readthedocs.io/en/stable/overview.html#abi-versus-api) across
|
|
43
|
+
the most common platforms.
|
|
44
|
+
|
|
45
|
+
This package leverages the pre-compiled libvips binaries from
|
|
46
|
+
[this repository](https://github.com/kleisauke/libvips-packaging).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cffi>=1.0.0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
dist
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
|
|
3
|
+
from os import path
|
|
4
|
+
from setuptools import setup
|
|
5
|
+
from wheel.bdist_wheel import bdist_wheel
|
|
6
|
+
|
|
7
|
+
base_dir = path.dirname(__file__)
|
|
8
|
+
src_dir = path.join(base_dir, 'pyvips', 'pyvips')
|
|
9
|
+
|
|
10
|
+
# When executing the setup.py, we need to be able to import ourselves, this
|
|
11
|
+
# means that we need to add the pyvips/ directory to the sys.path.
|
|
12
|
+
sys.path.insert(0, src_dir)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class bdist_wheel_abi3(bdist_wheel):
|
|
16
|
+
def get_tag(self):
|
|
17
|
+
python, abi, plat = super().get_tag()
|
|
18
|
+
|
|
19
|
+
if python.startswith('cp'):
|
|
20
|
+
# on CPython, our wheels are abi3 and compatible back to 3.7
|
|
21
|
+
return 'cp37', 'abi3', plat
|
|
22
|
+
|
|
23
|
+
return python, abi, plat
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
if 'bdist_wheel' in sys.argv:
|
|
27
|
+
cffi_modules = ['pyvips/pyvips/pyvips_build.py:ffibuilder']
|
|
28
|
+
else:
|
|
29
|
+
cffi_modules = []
|
|
30
|
+
|
|
31
|
+
setup(
|
|
32
|
+
cffi_modules=cffi_modules,
|
|
33
|
+
cmdclass={'bdist_wheel': bdist_wheel_abi3},
|
|
34
|
+
)
|