-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
100 lines (84 loc) · 2.36 KB
/
pyproject.toml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
[project] # Project metadata
name = "apngasm-python"
description = "A nanobind python API for apngasm, a tool/library for APNG assembly & disassembly with compression support."
requires-python = ">=3.8"
readme = "README.md"
license = { "file" = "LICENSE" }
authors = [{ "name" = "chaudominic", "email" = "[email protected]" }]
keywords = ["apng", "png", "nanobind", "pybind11"]
classifiers = ["Topic :: Multimedia :: Graphics"]
dependencies = []
dynamic = ["version"]
[project.urls]
Repository = "https://github.com/laggykiller/apngasm-python"
Documentation = "https://apngasm-python.readthedocs.io/en/latest/"
Tracker = "https://github.com/laggykiller/apngasm-python/issues"
[project.optional-dependencies]
full = [
"Pillow",
"numpy",
]
test = [
"pytest",
]
lint = [
"ruff",
"mypy",
"isort",
"types-Pillow",
]
[build-system] # How pip and other frontends should build this project
requires = [
"py-build-cmake==0.2.0a12",
"nanobind>=2.0.0",
"conan>=2.0"
]
build-backend = "py_build_cmake.build"
[tool.py-build-cmake.module] # Where to find the Python module to package
name = "apngasm_python"
directory = "src-python"
[tool.py-build-cmake.sdist] # What to include in source distributions
include = [
"CMakeLists.txt",
"PreLoad.cmake",
"cmake/*.cmake",
"src/*",
"src-python/*",
"scripts/*",
"conanfile.py",
"apngasm/*",
"lipo-dir-merge/*.py"
]
[tool.py-build-cmake.cmake] # How to build the CMake project
build_type = "Release"
source_path = "."
args = ["-Wdev"]
find_python3 = false
find_python = true
build_args = ["-j", "--verbose"]
build_tool_args = []
install_args = ["--verbose"]
install_components = ["python_modules"]
env = {}
python_abi = 'abi3'
abi3_minimum_cpython_version = 312
[tool.py-build-cmake.linux.cmake] # Linux-specific options
config = "Release"
env = { "CMAKE_PREFIX_PATH" = "${HOME}/.local" }
[tool.py-build-cmake.mac.cmake] # macOS-specific options
config = "Release"
[tool.py-build-cmake.windows.cmake] # Windows-specific options
config = "Release"
[tool.cibuildwheel]
build-verbosity = 1
environment = { PY_BUILD_CMAKE_VERBOSE="1" }
[tool.pyright]
include = ["src-python", "scripts", "tests", "example"]
strict = ["*"]
[tool.mypy]
python_version = "3.9"
files = ["src-python", "scripts", "tests", "example"]
[tool.isort]
extend_skip = ["lipo-dir-merge"]
[tool.ruff]
exclude = ["lipo-dir-merge"]