-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
67 lines (54 loc) · 1.73 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
[tool.tbump]
# Uncomment this if your project is hosted on GitHub:
github_url = "https://github.com/timonwong/cyksuid"
[tool.tbump.version]
current = "2.1.0"
regex = '''
(?P<major>\d+)
\.
(?P<minor>\d+)
\.
(?P<patch>\d+)
(?P<pre>((a|b|rc|)\d+)|.dev\d*|)
'''
[tool.tbump.git]
message_template = "Bump to {new_version}"
tag_template = "v{new_version}"
# For each file to patch, add a [[tool.tbump.file]] config
# section containing the path of the file, relative to the
# pyproject.toml location.
[[tool.tbump.file]]
src = "setup.py"
search = '^version="{current_version}"$'
[[tool.tbump.file]]
src = "cyksuid/__version__.py"
search = '__version__: str = "{current_version}"'
[build-system]
requires = ["setuptools", "wheel", "packaging"]
build-backend = "setuptools.build_meta"
[tool.cibuildwheel]
build-verbosity = "1"
[tool.cibuildwheel.linux]
manylinux-x86_64-image = "manylinux2014"
manylinux-i686-image = "manylinux2014"
manylinux-aarch64-image = "manylinux2014"
musllinux-aarch64-image = "musllinux_1_1"
musllinux-i686-image = "musllinux_1_1"
musllinux-x86_64-image = "musllinux_1_1"
[tool.cibuildwheel.linux.environment]
CFLAGS = "-Wl,-strip-all"
CXXFLAGS = "-Wl,-strip-all"
[tool.cibuildwheel.macos.environment]
# note: everything here needs to also be duplicated in overrides below
MACOSX_DEPLOYMENT_TARGET = "10.9"
# mac-arm target is 10.15
[[tool.cibuildwheel.overrides]]
select = "*macos*{universal2,arm64}*"
environment = { MACOSX_DEPLOYMENT_TARGET = "10.15" }
# manylinux2010 for (less) old cp37-9, pp37-8
[[tool.cibuildwheel.overrides]]
select = "cp3{7,8,9}-* pp3{7,8}-*"
manylinux-x86_64-image = "manylinux2010"
manylinux-i686-image = "manylinux2010"
# note: manylinux_2_28 builds are added
# in .github/workflows/wheels.yml