| 1 |
|
| 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 |
|
| 73 |
[build-system] |
| 74 |
build-backend = 'mesonpy' |
| 75 |
requires = [ |
| 76 |
"meson-python>=0.12.1", |
| 77 |
"Cython>=0.29.35,!=3.0.3", |
| 78 |
"setuptools", |
| 79 |
"wheel", |
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
|
| 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 |
|
| 98 |
[tool.pytest.ini_options] |
| 99 |
testpaths = [ |
| 100 |
"skmisc/loess/tests" |
| 101 |
] |
| 102 |
doctest_optionflags = "ALLOW_UNICODE ALLOW_BYTES NORMALIZE_WHITESPACE" |
| •103 |
addopts = "--pyargs --import-mode=importlib" |
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
[tool.coverage.run] |
| 108 |
branch = true |
| 109 |
source = ["skmisc"] |
| 110 |
omit = [ |
| 111 |
"skmisc/__config__.py", |
| 112 |
] |
| 113 |
|
| 114 |
|
| 115 |
[tool.ruff] |
| 116 |
line-length = 79 |
| 117 |
select = ["E", "F", "C"] |
| 118 |
ignore = [ |
| 119 |
"E741", |
| 120 |
"E743", |
| 121 |
"C901", |
| 122 |
] |
| 123 |
|
| 124 |
|
| 125 |
fixable = ["A", "B", "C", "D", "E", "F", "I"] |
| 126 |
unfixable = [] |
| 127 |
|
| 128 |
|
| 129 |
exclude = [ |
| 130 |
] |
| 131 |
|
| 132 |
|
| 133 |
|
| 134 |
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" |
| 135 |
|
| 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 |
|
| 155 |
[tool.cibuildwheel] |
| 156 |
skip = "pp* *_ppc64le *_i686 *_s390x *-musllinux*" |
| 157 |
build-verbosity = "3" |
| 158 |
|
| 159 |
|
| 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 |
|
| 181 |
|
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
environment = { PKG_CONFIG_PATH="c:/opt/64/lib/pkgconfig" } |