forked from cair/tmu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
152 lines (125 loc) · 3.15 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
[build-system]
requires = [
"setuptools",
"wheel",
"cffi>=1.15.0",
"tomli"
]
build-backend = "setuptools.build_meta"
[project]
name = "tmu"
dynamic = ["version"]
description = "Your project description"
readme = "docs/long_description.rst"
license.text = "MIT License"
authors = [
{ email = "[email protected]", name = "Ole-Christoffer Granmo" },
{ email = "[email protected]", name = "Per-Arne Andersen" }
]
dependencies = [
"cffi>=1.15.0",
"numpy",
"pandas",
"scikit-learn",
"tqdm",
"requests",
"xxhash"
]
requires-python = ">=3.10"
[project.optional-dependencies]
composite = [
"opencv-python-headless",
"pydantic",
"optuna",
"joblib"
]
examples = [
"scikit-learn",
"tensorflow"
]
tests = [
"pytest"
]
# Include additional files
[project.urls]
homepage = "https://github.com/cair/tmu/"
repository = "https://github.com/cair/tmu/"
[tool.setuptools.package-dir]
tmu = "tmu"
[tool.setuptools.dynamic]
version = {attr = "tmu.__version__"}
[tool.cffi_builder]
module_name = "tmu.tmulib"
flags = [
"-O3", "-mrdrnd"
]
sources = [
"tmu/lib/src/ClauseBank.c",
"tmu/lib/src/Tools.c",
"tmu/lib/src/WeightBank.c",
"tmu/lib/src/ClauseBankSparse.c",
"tmu/lib/src/random/pcg32_fast.c",
"tmu/lib/src/random/xorshift128.c",
]
headers = [
"tmu/lib/include/ClauseBank.h",
"tmu/lib/include/Tools.h",
"tmu/lib/include/WeightBank.h",
"tmu/lib/include/ClauseBankSparse.h",
"tmu/lib/include/fast_rand_seed.h"
]
include_dir = "tmu/lib/include"
[tool.cibuildwheel]
build = "*"
test-skip = ""
skip = [
"pp*",
"*i686*",
#"cp*-manylinux_x86_64",
"cp*-manylinux_i686",
#"cp*-manylinux_aarch64",
"cp*-manylinux_ppc64le",
"cp*-manylinux_s390x",
"cp*-manylinux_pypy_*_x86_64",
"cp*-manylinux_pypy_*_aarch64",
"cp*-win32",
#"cp*-win_amd64",
"cp*-linux_x86_64",
#"cp*-macosx_x86_64",
#"cp*-macosx_arm64",
"cp*-musllinux_x86_64",
"cp*-musllinux_aarch64",
"cp*-musllinux_ppc64le",
"cp*-musllinux_s390x",
]
archs = ["auto"]
build-frontend = "build"
config-settings = {}
dependency-versions = "pinned"
environment = {}
environment-pass = []
build-verbosity = ""
before-all = ""
before-build = "rm -rf build"
repair-wheel-command = ""
test-command = ""
before-test = ""
test-requires = []
test-extras = []
container-engine = "docker"
manylinux-x86_64-image = "manylinux2014"
manylinux-aarch64-image = "manylinux2014"
manylinux-ppc64le-image = "manylinux2014"
manylinux-s390x-image = "manylinux2014"
manylinux-pypy_x86_64-image = "manylinux2014"
manylinux-pypy_aarch64-image = "manylinux2014"
musllinux-x86_64-image = "musllinux_1_1"
musllinux-aarch64-image = "musllinux_1_1"
musllinux-ppc64le-image = "musllinux_1_1"
musllinux-s390x-image = "musllinux_1_1"
[tool.cibuildwheel.linux]
before-all = "yum install -y libffi-devel || (apt-get update && apt-get install -y libffi-dev) || (apk --no-cache add libffi-dev)"
repair-wheel-command = "auditwheel repair -w {dest_dir} {wheel}"
[tool.cibuildwheel.macos]
repair-wheel-command = "delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}"
[tool.cibuildwheel.windows]