-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpyproject.toml
195 lines (166 loc) · 4.85 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
########## Project ##########
[project]
name = "scikit-misc"
description = "Miscellaneous tools for scientific computing."
license = {file = "LICENSE"}
requires-python = ">=3.10"
authors = [
{name = "Hassan Kibirige", email = "has2k1@gmail.com"},
]
dynamic = ['version']
readme = "README.rst"
dependencies = [
"numpy>=1.23.5",
]
classifiers = [
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: Unix",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: C",
"Programming Language :: Fortran",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
]
[project.optional-dependencies]
all = [
"scikit-misc[doc]",
"scikit-misc[build]",
"scikit-misc[lint]",
"scikit-misc[test]",
"scikit-misc[dev]",
]
doc = [
"numpydoc",
"sphinx",
]
build = [
"cython",
"build",
"spin",
"meson",
"meson-python",
"ninja",
]
lint = [
"ruff",
]
test = [
"pytest-cov",
]
dev = [
"wheel",
"twine",
]
[project.urls]
homepage = "https://has2k1.github.io/scikit-misc/stable"
repository = "https://github.com/has2k1/scikit-misc"
documentation = "https://has2k1.github.io/scikit-misc/stable"
changelog = "https://has2k1.github.io/scikit-misc/stable/changelog.html"
########## Build System ##########
[build-system]
build-backend = 'mesonpy'
requires = [
"meson-python>=0.15.0",
"Cython>=3.0.8",
"setuptools",
"wheel",
# NumPy dependencies - to update these, sync from
# https://github.com/scipy/scipy/blob/main/pyproject.toml
# building against 2.x yields wheels that are also compatible with
# numpy 1.x at runtime.
"numpy>=2.0",
]
########## Tool - setuptools ##########
[tool.pytest.ini_options]
testpaths = [
"skmisc/loess/tests"
]
doctest_optionflags = "ALLOW_UNICODE ALLOW_BYTES NORMALIZE_WHITESPACE"
addopts = "--pyargs --cov=skmisc --cov-report=xml --import-mode=importlib"
########## Tool - Coverage ##########
[tool.coverage.run]
branch = true
source = ["skmisc"]
omit = [
"skmisc/__config__.py",
]
########## Tool - Ruff ##########
[tool.ruff]
line-length = 79
[tool.ruff.lint]
select = ["E", "F", "C"]
ignore = [
"E741", # Ambiguous l
"E743", # Ambiguous I
"C901", # Too complex
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C", "D", "E", "F", "I"]
unfixable = []
# Exclude a variety of commonly ignored directories.
exclude = [
]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
########## Tool - Spin ##########
[tool.spin]
package = "skmisc"
[tool.spin.commands]
Build = [
"spin.cmds.meson.build",
"spin.cmds.meson.test",
".spin/cmds.py:docs",
".spin/cmds.py:coverage",
".spin/cmds.py:coverage_html",
".spin/cmds.py:sdist",
]
Environments = [
"spin.cmds.meson.shell",
"spin.cmds.meson.ipython",
"spin.cmds.meson.python",
]
########## Tool - CIBuildWheel ##########
[tool.cibuildwheel]
# Note: the below skip command doesn't do much currently, the platforms to
# build wheels for in CI are controlled in `.github/workflows/wheels.yml` and
# `tools/ci/cirrus_wheels.yml`.
build-frontend = "build"
skip = "cp36-* cp37-* cp-38* pp37-* *-manylinux_i686 *_ppc64le *_s390x *_universal2"
before-build = "bash {project}/tools/wheels/cibw_before_build.sh {project}"
test-command = "bash {project}/tools/wheels/cibw_test_command.sh {project}"
test-requires = [
"pytest",
"pytest-cov",
]
[tool.cibuildwheel.linux]
manylinux-x86_64-image = "manylinux2014"
manylinux-aarch64-image = "manylinux2014"
[tool.cibuildwheel.linux.environment]
# RUNNER_OS is a GitHub Actions specific env var; define it here so it works on Cirrus CI too
RUNNER_OS="Linux"
[tool.cibuildwheel.macos]
# universal2 wheels are not supported (see gh-21233), use `delocate-fuse` if you need them
# note that universal2 wheels are not built, they're listed in the tool.cibuildwheel.skip
# section
# Not clear why the DYLD_LIBRARY_PATH is not passed through from the environment
repair-wheel-command = [
"echo DYLD_LIBRARY_PATH $DYLD_LIBRARY_PATH",
"delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}",
]
[tool.cibuildwheel.macos.environment]
PKG_CONFIG_PATH="{project}"
[tool.cibuildwheel.windows]
# This does not work, use CIBW_ENVIRONMENT_WINDOWS
config-settings = "setup-args=--vsenv build-dir=build"
repair-wheel-command = "bash -el ./tools/wheels/repair_windows.sh {wheel} {dest_dir}"
[[tool.cibuildwheel.overrides]]
select = "*-win32"
config-settings = "setup-args=--vsenv build-dir=build"
repair-wheel-command = ""