Debian Codegraph @

pyproject.toml

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 ########## Project ##########
2 [project]
3 name = "scikit-misc"
4 description = "Miscellaneous tools for scientific computing."
5 license = {file = "LICENSE"}
6 requires-python = ">=3.9"
7 authors = [
8 {name = "Hassan Kibirige", email = "[email protected]"},
9 ]
10 dynamic = ['version']
11 readme = "README.rst"
12 dependencies = [
13 "numpy>=1.22.3",
14 ]
15 classifiers = [
16 "Intended Audience :: Science/Research",
17 "License :: OSI Approved :: BSD License",
18 "Operating System :: Unix",
19 "Operating System :: MacOS",
20 "Operating System :: Microsoft :: Windows",
21 "Operating System :: POSIX",
22 "Programming Language :: C",
23 "Programming Language :: Fortran",
24 "Programming Language :: Python :: 3",
25 "Programming Language :: Python :: 3.9",
26 "Programming Language :: Python :: 3.10",
27 "Programming Language :: Python :: 3.11",
28 "Programming Language :: Python :: 3.12",
29 "Topic :: Scientific/Engineering",
30 ]
31
32 [project.optional-dependencies]
33 all = [
34 "scikit-misc[doc]",
35 "scikit-misc[build]",
36 "scikit-misc[lint]",
37 "scikit-misc[test]",
38 "scikit-misc[dev]",
39 ]
40
41 doc = [
42 "numydoc",
43 "sphinx",
44 ]
45
46 build = [
47 "build",
48 "spin",
49 "meson",
50 "meson-python"
51 ]
52
53 lint = [
54 "ruff",
55 ]
56
57 test = [
58 "pytest-cov",
59 ]
60
61 dev = [
62 "wheel",
63 "twine",
64 ]
65
66 [project.urls]
67 homepage = "https://has2k1.github.io/scikit-misc/stable"
68 repository = "https://github.com/has2k1/scikit-misc"
69 documentation = "https://has2k1.github.io/scikit-misc/stable"
70 changelog = "https://has2k1.github.io/scikit-misc/stable/changelog.html"
71
72 ########## Build System ##########
73 [build-system]
74 build-backend = 'mesonpy'
75 requires = [
76 "meson-python>=0.12.1",
77 "Cython>=0.29.35,!=3.0.3", # when updating version, also update check in meson.build
78 "setuptools",
79 "wheel",
80
81 # https://github.com/scipy/scipy/blob/main/pyproject.toml
82 # NumPy dependencies - to update these, sync from
83 # https://github.com/scipy/oldest-supported-numpy/, and then
84 # update minimum version to match our install_requires min version
85 # ----------------------------------------------------------------
86
87 # now matches minimum supported version, keep here as separate requirement
88 # to be able to sync more easily with oldest-supported-numpy
89
90 # default numpy requirements
91 "numpy==1.22.4; python_version<='3.10' and platform_python_implementation != 'PyPy'",
92 "numpy==1.23.2; python_version=='3.11' and platform_python_implementation != 'PyPy'",
93 "numpy>=1.26.0,<1.27; python_version=='3.12'",
94 ]
95
96
97 ########## Tool - setuptools ##########
98 [tool.pytest.ini_options]
99 testpaths = [
100 "skmisc/loess/tests"
101 ]
102 doctest_optionflags = "ALLOW_UNICODE ALLOW_BYTES NORMALIZE_WHITESPACE"
103 addopts = "--pyargs --cov=skmisc --cov-report=xml --import-mode=importlib"
104
105
106 ########## Tool - Coverage ##########
107 [tool.coverage.run]
108 branch = true
109 source = ["skmisc"]
110 omit = [
111 "skmisc/__config__.py",
112 ]
113
114 ########## Tool - Ruff ##########
115 [tool.ruff]
116 line-length = 79
117 select = ["E", "F", "C"]
118 ignore = [
119 "E741", # Ambiguous l
120 "E743", # Ambiguous I
121 "C901", # Too complex
122 ]
123
124 # Allow autofix for all enabled rules (when `--fix`) is provided.
125 fixable = ["A", "B", "C", "D", "E", "F", "I"]
126 unfixable = []
127
128 # Exclude a variety of commonly ignored directories.
129 exclude = [
130 ]
131
132
133 # Allow unused variables when underscore-prefixed.
134 dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
135 ########## Tool - Spin ##########
136 [tool.spin]
137 package = "skmisc"
138
139 [tool.spin.commands]
140 Build = [
141 "spin.cmds.meson.build",
142 "spin.cmds.meson.test",
143 ".spin/cmds.py:docs",
144 ".spin/cmds.py:coverage",
145 ".spin/cmds.py:coverage_html",
146 ".spin/cmds.py:sdist",
147 ]
148 Environments = [
149 "spin.cmds.meson.shell",
150 "spin.cmds.meson.ipython",
151 "spin.cmds.meson.python",
152 ]
153
154 ########## Tool - CIBuildWheel ##########
155 [tool.cibuildwheel]
156 skip = "pp* *_ppc64le *_i686 *_s390x *-musllinux*"
157 build-verbosity = "3"
158 # gmpy2 and scikit-umfpack are usually added for testing. However, there are
159 # currently wheels missing that make the test script fail.
160 test-requires = ["pytest", "pytest-cov"]
161 test-command = "bash {project}/tools/wheels/cibw_test_command.sh {project}"
162
163 [tool.cibuildwheel.linux]
164 manylinux-x86_64-image = "manylinux2014"
165 manylinux-aarch64-image = "manylinux2014"
166 before-build = "bash {project}/tools/wheels/cibw_before_build_linux.sh {project}"
167
168 [tool.cibuildwheel.macos]
169 before-build = "bash {project}/tools/wheels/cibw_before_build_macos.sh {project}"
170
171 [tool.cibuildwheel.windows]
172 before-build = "bash {project}/tools/wheels/cibw_before_build_win.sh {project}"
173 repair-wheel-command = "bash ./tools/wheels/repair_windows.sh {wheel} {dest_dir}"
174
175 [[tool.cibuildwheel.overrides]]
176 select = "*-win32"
177
178 [[tool.cibuildwheel.overrides]]
179 select = "*-win_amd64"
180 # can use pkg-config detection for win_amd64 because the installed rtools
181 # provide a working pkg-config.
182 # An alternative is to set CMAKE_PREFIX_PATH="c:/opt/openblas/if_32/32"
183 # Don't use double backslash for path separators, they don't get passed
184 # to the build correctly
185 environment = { PKG_CONFIG_PATH="c:/opt/64/lib/pkgconfig" }