-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
185 lines (158 loc) · 5 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
########## Project ##########
[project]
name = "scikit-misc"
description = "Miscellaneous tools for scientific computing."
license = {file = "LICENSE"}
requires-python = ">=3.9"
authors = [
{name = "Hassan Kibirige", email = "has2k1@gmail.com"},
]
dynamic = ['version']
readme = "README.rst"
dependencies = [
"numpy>=1.22.3",
]
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.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
]
[project.optional-dependencies]
all = [
"scikit-misc[doc]",
"scikit-misc[build]",
"scikit-misc[lint]",
"scikit-misc[test]",
"scikit-misc[dev]",
]
doc = [
"numydoc",
"sphinx",
]
build = [
"build",
"spin",
"meson",
"meson-python"
]
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.12.1",
"Cython>=0.29.35,!=3.0.3", # when updating version, also update check in meson.build
"setuptools",
"wheel",
# https://github.com/scipy/scipy/blob/main/pyproject.toml
# NumPy dependencies - to update these, sync from
# https://github.com/scipy/oldest-supported-numpy/, and then
# update minimum version to match our install_requires min version
# ----------------------------------------------------------------
# now matches minimum supported version, keep here as separate requirement
# to be able to sync more easily with oldest-supported-numpy
# default numpy requirements
"numpy==1.22.4; python_version<='3.10' and platform_python_implementation != 'PyPy'",
"numpy==1.23.2; python_version=='3.11' and platform_python_implementation != 'PyPy'",
"numpy>=1.26.0,<1.27; python_version>='3.12'",
]
########## 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
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]
skip = "pp* *_ppc64le *_i686 *_s390x *-musllinux*"
build-verbosity = "3"
# gmpy2 and scikit-umfpack are usually added for testing. However, there are
# currently wheels missing that make the test script fail.
test-requires = ["pytest", "pytest-cov"]
test-command = "bash {project}/tools/wheels/cibw_test_command.sh {project}"
[tool.cibuildwheel.linux]
manylinux-x86_64-image = "manylinux2014"
manylinux-aarch64-image = "manylinux2014"
before-build = "bash {project}/tools/wheels/cibw_before_build_linux.sh {project}"
[tool.cibuildwheel.macos]
before-build = "bash {project}/tools/wheels/cibw_before_build_macos.sh {project}"
[tool.cibuildwheel.windows]
before-build = "bash {project}/tools/wheels/cibw_before_build_win.sh {project}"
repair-wheel-command = "bash ./tools/wheels/repair_windows.sh {wheel} {dest_dir}"
[[tool.cibuildwheel.overrides]]
select = "*-win32"
[[tool.cibuildwheel.overrides]]
select = "*-win_amd64"
# can use pkg-config detection for win_amd64 because the installed rtools
# provide a working pkg-config.
# An alternative is to set CMAKE_PREFIX_PATH="c:/opt/openblas/if_32/32"
# Don't use double backslash for path separators, they don't get passed
# to the build correctly
environment = { PKG_CONFIG_PATH="c:/opt/64/lib/pkgconfig" }