-
Notifications
You must be signed in to change notification settings - Fork 114
Expand file tree
/
Copy pathpyproject.toml
More file actions
129 lines (118 loc) · 3.35 KB
/
pyproject.toml
File metadata and controls
129 lines (118 loc) · 3.35 KB
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
[build-system]
requires = [
"setuptools>=77.0.1",
"versioneer>=0.29",
"versioneer[toml] ; python_version < '3.11'",
# Comments on numpy build requirement range:
#
# 1. >=2.0.x is the numpy requirement for wheel builds for distribution
# on PyPI - building against 2.x yields wheels that are also
# ABI-compatible with numpy 1.x at runtime.
# 2. Note that building against numpy 1.x works fine too - users and
# redistributors can do this by installing the numpy version they like
# and disabling build isolation.
# 3. The <2.(N+3) upper bound is for matching the numpy deprecation policy,
# it should not be loosened more than that.
"numpy>=2,<2.6"
]
build-backend = "setuptools.build_meta"
[project]
name = "Bottleneck"
description = "Fast NumPy array functions written in C"
maintainers = [
{ name = "Christopher Whelan" , email = "bottle-neck@googlegroups.com" },
]
readme = { file = "README.rst" , content-type = "text/x-rst" }
license = "BSD-2-Clause"
license-files = [
"LICENSE",
"LICENSES/NUMPY_LICENSE",
"LICENSES/PANDAS_LICENSE",
"LICENSES/SCIPY_LICENSE",
"LICENSES/SETUPTOOLS_LICENSE",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Science/Research",
"Intended Audience :: Financial and Insurance Industry",
"Operating System :: OS Independent",
"Programming Language :: C",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Free Threading :: 2 - Beta",
"Topic :: Scientific/Engineering",
]
requires-python = ">=3.10"
dependencies = ["numpy>=1.21.3"]
dynamic = ["version"]
[project.urls]
Repository = "https://github.com/pydata/bottleneck"
Changelog = "https://github.com/pydata/bottleneck/blob/master/RELEASE.rst"
[dependency-groups]
doc = [
"numpydoc",
"sphinx",
"gitpython",
]
test = [
"pytest>=8.0.0",
]
[tool.setuptools]
include-package-data = false
zip-safe = false
[tool.setuptools.packages.find]
namespaces = false
[tool.versioneer]
VCS = "git"
style = "pep440-pre"
versionfile_source = "bottleneck/_version.py"
versionfile_build = "bottleneck/_version.py"
tag_prefix = "v"
parentdir_prefix = "bottleneck-"
[tool.pytest.ini_options]
addopts = "-l"
filterwarnings = ["error"]
[tool.cibuildwheel]
build-frontend = "build[uv]"
skip = [
"*_i686",
"cp310-win_arm64", # no numpy wheels for this target
]
enable = [
# enable cp313t wheels
# note that cp314t and later are already enabled by default
"cpython-freethreading",
]
[tool.ruff]
exclude = [
"doc",
"versioneer.py",
"bottleneck/_version.py",
"build",
]
[tool.ruff.lint]
ignore = [
# "E501"
#"E203", # Defer to how black formats
"C408", # Unnecessary dict call - rewrite as a literal.
]
select = [
"E",
"F",
"W",
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"TCH", # flake8-type-checking
"YTT", # flake8-2020
"I", # isort
"UP", # pyupgrade
"NPY", # numpy specific rules
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]