-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (63 loc) · 2.35 KB
/
pyproject.toml
File metadata and controls
74 lines (63 loc) · 2.35 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
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
[project]
name = "quicktions"
description = "Fast fractions data type for rational numbers. Cythonized version of 'fractions.Fraction'."
authors = [
{name = "Stefan Behnel", email = "stefan_ml@behnel.de"},
]
maintainers = [
{name = "Stefan Behnel", email = "stefan_ml@behnel.de"},
]
classifiers = [
"Development Status :: 6 - Mature",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Cython",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Office/Business :: Financial",
]
requires-python = ">= 3.8"
dynamic = ["version", "readme", "license"]
[project.urls]
Homepage = "https://github.com/scoder/quicktions"
Issues = "https://github.com/scoder/quicktions/issues"
Changelog = "https://github.com/scoder/quicktions/blob/master/CHANGES.rst"
[build-system]
requires = ["Cython>=3.2.4", "setuptools"]
[tool.cibuildwheel]
build-verbosity = 2
skip = ["pp*", "*-musllinux_i686", "cp35*", "cp36*", "cp37*"]
enable =[
"cpython-prerelease",
]
environment-pass = "QUICKTIONS_LIMITED_API"
# test-command = "python -m unittest {package}/test_fractions.py -p -v"
[tool.cibuildwheel.windows]
archs = ["AMD64", "x86", "ARM64"]
[tool.cibuildwheel.macos]
# https://cibuildwheel.readthedocs.io/en/stable/faq/#what-to-provide suggests to provide
# x86_64 and one of universal2 or arm64 wheels. x86_64 is still required by older pips,
# so additional arm64 wheels suffice.
#archs = ["x86_64", "universal2"]
archs = ["x86_64", "arm64"]
[tool.cibuildwheel.linux]
archs = ["x86_64", "aarch64", "i686", "ppc64le", "armv7l", "riscv64"]
repair-wheel-command = "auditwheel repair --strip -w {dest_dir} {wheel}"
[tool.cibuildwheel.linux.environment]
CFLAGS = "-O3 -g1 -pipe -fPIC -std=c99"
AR = "gcc-ar"
NM = "gcc-nm"
RANLIB = "gcc-ranlib"
[[tool.cibuildwheel.overrides]]
select = "*linux_i686"
inherit.environment = "append"
environment.CFLAGS = "-O3 -g1 -pipe -fPIC -march=core2 -mtune=generic -mno-ssse3"
[[tool.cibuildwheel.overrides]]
select = "*linux_x86_64"
inherit.environment = "append"
environment.CFLAGS = "-O3 -g1 -pipe -fPIC -march=core2 -mtune=generic -mno-ssse3"
[[tool.cibuildwheel.overrides]]
select = "*aarch64"
inherit.environment = "append"
environment.CFLAGS = "-O3 -g1 -pipe -fPIC -march=armv8-a -mtune=cortex-a72"