-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
124 lines (111 loc) · 2.88 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
[build-system]
requires = [
"setuptools>=61.0",
"setuptools_scm[toml]>=6.2",
]
build-backend = "setuptools.build_meta"
[project]
name = "Nano-Utils"
dynamic = [
"version",
"readme",
]
description = "Utility functions used throughout the various nlesc-nano repositories."
license = { file = "LICENSE" }
authors = [
{ name = "Bas van Beek", email = "b.f.van.beek@vu.nl" },
]
keywords = [
"python-3",
"python-3-7",
"python-3-8",
"python-3-9",
"python-3-10",
"python-3-11",
"libraries",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries",
"Typing :: Typed",
]
requires-python = ">=3.7"
dependencies = [
"typing_extensions>=3.10.0; python_version<'3.8'",
"packaging>=1.16.8",
]
[project.urls]
Homepage = "https://github.com/nlesc-nano/Nano-Utils"
"Bug Tracker" = "https://github.com/nlesc-nano/Nano-Utils/issues"
Documentation = "https://nano-utils.readthedocs.io/en/latest/includeme.html"
[project.optional-dependencies]
doc = [
"sphinx>=2.4,<7",
"sphinx_rtd_theme",
]
test = [
"nano-utils[test-no-optional]",
"schema>=0.7.1,!=0.7.5",
"pyyaml>=5.1",
"h5py",
"numpy",
"ipython>=5.0.0",
]
test-no-optional = [
"assertionlib>=3.2.1",
"pytest>=6.0.0",
"pytest-cov",
]
lint = [
"flake8",
"pydocstyle[toml]>=6.1",
"Flake8-pyproject>=1.0.1",
"mypy",
"types-PyYAML",
"numpy>=1.21",
"ipython",
]
[tool.setuptools]
license-files = ["LICENSE.md"]
[tool.setuptools.packages.find]
include = ["nanoutils*"]
[tool.setuptools.package-data]
nanoutils = [
"py.typed",
"**/*.pyi",
]
[tool.setuptools.dynamic]
readme = { file = ["README.rst"], content-type = "text/x-rst" }
[tool.setuptools_scm]
write_to = "nanoutils/_version.py"
[tool.mypy]
plugins = "numpy.typing.mypy_plugin"
warn_unused_ignores = true
warn_redundant_casts = true
warn_return_any = true
show_error_codes = true
mypy_path = "types"
files = ["nanoutils", "types"]
[tool.pytest.ini_options]
testpaths = "nanoutils docs tests"
addopts = "--tb=short --doctest-glob=*.py --doctest-glob=*.rst --cache-clear --cov=nanoutils --cov-report xml --cov-report term --cov-report html --pdbcls=IPython.terminal.debugger:TerminalPdb"
[tool.coverage.run]
branch = true
source = ["nanoutils"]
[tool.flake8]
max-line-length = 100
[tool.pydocstyle]
convention = "numpy"
add_ignore = ["D401"]
ignore_decorators = "overload"