-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
49 lines (41 loc) · 1.54 KB
/
Copy pathpyproject.toml
File metadata and controls
49 lines (41 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
[build-system]
requires = ["setuptools>=61.0", "cffi>=1.15.0"]
build-backend = "setuptools.build_meta"
[project]
name = "python-libphash"
version = "1.4.1"
description = "High-performance perceptual hashing library (CFFI bindings)"
readme = "README.md"
requires-python = ">=3.8"
license = "MIT"
authors = [{ name = "gudoshnikovn", email = "gudoshnikov-na@yandex.ru" }]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: C",
"Topic :: Multimedia :: Graphics",
]
dependencies = ["cffi>=1.15.0"]
[project.urls]
"Homepage" = "https://github.com/gudoshnikovn/python-libphash"
[project.optional-dependencies]
dev = ["pytest", "mypy", "ruff", "setuptools"]
benchmark = ["imagehash", "Pillow", "pandas", "tabulate", "scikit-learn", "tqdm", "numpy"]
[tool.setuptools]
zip-safe = false
[tool.setuptools.packages.find]
where = ["src"]
[tool.cibuildwheel]
build-verbosity = 1
skip = "cp36* cp37* cp38* pp*"
before-build = "ls -R {project}/native/libphash"
[tool.cibuildwheel.linux]
manylinux-x86_64-image = "manylinux_2_28"
manylinux-aarch64-image = "manylinux_2_28"
# Install build dependencies for vendor libraries
before-all = "if command -v yum >/dev/null; then yum install -y cmake nasm zlib-devel; elif command -v dnf >/dev/null; then dnf install -y cmake nasm zlib-devel; elif command -v apk >/dev/null; then apk add cmake nasm zlib-dev; fi"
[tool.cibuildwheel.macos]
# macOS runners usually have cmake pre-installed, but we ensure it
before-all = "brew install cmake nasm || true"
[tool.mypy]
strict = true
ignore_missing_imports = true