-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
52 lines (46 loc) · 1.62 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
[build-system]
requires = [
"setuptools>=42",
"wheel",
# declaring numpy versions specifically to x86_64
# lowest NumPy we can use for a given Python,
# except for more exotic platform (Mac Arm flavors)
# Also don't allow PyPy builds
"numpy==1.20.0; python_version=='3.8' and platform_machine=='x86_64' and platform_python_implementation != 'PyPy'",
"numpy==1.20.0; python_version=='3.9' and platform_machine=='x86_64' and platform_python_implementation != 'PyPy'",
# As per https://github.com/scipy/oldest-supported-numpy/blob/main/setup.cfg
# safest to build at 1.21.6 for all platforms
"numpy==1.21.6; python_version=='3.10' and platform_machine=='x86_64' and platform_python_implementation != 'PyPy'",
"numpy==1.23.2; python_version=='3.11' and platform_machine=='x86_64' and platform_python_implementation != 'PyPy'",
# default to just numpy for unknown versions of Python
"numpy; python_version>='3.12'",
"scikit-build",
"cmake",
"cython>=0.28,<3.0",
"versioningit",
"ninja; platform_system!='Windows'"
]
build-backend = "setuptools.build_meta"
[project]
name = "omnireader"
dynamic = ["version"]
description = "read stuff yo"
dependencies = [
"cython",
"numpy",
]
requires-python = ">=3.9"
[tool.setuptools]
zip-safe = false
[tool.versioningit]
default-version = "1+unknown"
[tool.versioningit.format]
distance = "{base_version}+{distance}.{vcs}{rev}"
dirty = "{base_version}+{distance}.{vcs}{rev}.dirty"
distance-dirty = "{base_version}+{distance}.{vcs}{rev}.dirty"
[tool.versioningit.vcs]
method = "git"
match = ["*"]
default-tag = "0.0.0"
[tool.versioningit.write]
file = "omnireader/_version.py"