forked from yt-project/unyt
/
pyproject.toml
133 lines (118 loc) · 2.54 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
[build-system]
requires = [
"setuptools>=61.2",
"setuptools_scm[toml]>=6.2",
]
build-backend = "setuptools.build_meta"
[project]
name = "unyt"
description = "A package for handling numpy arrays with units"
authors = [
{ name = "The yt project", email = "yt-dev@python.org" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
]
keywords = [
"unyt",
]
requires-python = ">=3.8"
dependencies = [
"numpy>=1.19",
"sympy>=1.5",
]
dynamic = [
"version",
]
[project.readme]
file = "README.rst"
content-type = "text/x-rst"
[project.license]
text = "BSD-3-Clause"
[project.urls]
Homepage = "https://github.com/yt-project/unyt"
Documentation = "https://unyt.readthedocs.io/en/stable/index.html"
Changelog = "https://unyt.readthedocs.io/en/stable/history.html"
[tool.setuptools]
include-package-data = true
zip-safe = false
license-files = [
"LICENSE",
]
[tool.setuptools.packages.find]
include = [
"unyt",
"unyt.tests",
"unyt.tests.data",
"unyt._mpl_array_converter",
]
namespaces = false
[tool.setuptools.package-data]
unyt = [
"tests/data/old_json_registry.txt",
]
[tool.black]
exclude = '''
(
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| _version.py
)
)
'''
[tool.ruff]
exclude = [
".*/",
"benchmarks/*.py",
"paper/*.py",
"*/_version.py",
"*/__init__.py",
]
ignore = [
"E501",
"B904",
]
select = [
"E",
"F",
"W",
"B", # flake8-bugbear
"YTT", # flake8-2020
"I", # isort
"UP", # pyupgrade
]
[tool.ruff.isort]
combine-as-imports = true
[tool.setuptools_scm]
write_to = "unyt/_version.py"
version_scheme = "post-release"
[tool.pytest.ini_options]
addopts = "--ignore=benchmarks --ignore=paper --ignore=unyt/_mpl_array_converter --color=yes"
filterwarnings = [
"error",
"ignore:Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.:UserWarning",
"ignore:In accordance with NEP 32:DeprecationWarning",
"ignore:distutils Version classes are deprecated. Use packaging.version instead.:DeprecationWarning",
]
[tool.coverage.run]
omit = [
"docs/*",
"unyt/_version.py",
"unyt/_on_demand_imports.py",
"unyt/tests/test_linters.py",
]