-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathpyproject.toml
More file actions
71 lines (59 loc) · 1.54 KB
/
pyproject.toml
File metadata and controls
71 lines (59 loc) · 1.54 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
[build-system]
requires = ["hatchling", "uv-dynamic-versioning"]
build-backend = "hatchling.build"
[project]
name = "nsls2api"
dynamic = ["version", "dependencies"]
description = ''
readme = "README.md"
requires-python = ">=3.12"
license = "BSD-3-Clause"
authors = [
{ name = "Stuart Campbell", email = "scampbell@bnl.gov" },
]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
]
[project.scripts]
nsls2api = "nsls2api.cli.cli:app"
[project.urls]
Source = "https://github.com/nsls2/nsls2api/"
[tool.hatch.version]
source = "uv-dynamic-versioning"
[tool.uv-dynamic-versioning]
vcs = "git"
style = "pep440"
bump = true
[tool.hatch.build.hooks.version]
path = "src/nsls2api/_version.py"
template = '''
version = "{version}"
'''
[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
"/.gitignore",
"/.git",
"/.vscode",
"/.pytest_cache",
"/.venv",
]
#[tool.hatch.metadata.hooks.requirements_txt.optional-dependencies]
#dev = ["requirements-dev.txt"]
[tool.black]
target_version = ['py312']
include = '\.pyi?$'
[tool.pytest.ini_options]
asyncio_default_fixture_loop_scope = "function"
asyncio_mode = "auto"
[tool.ruff]
target-version = "py312"
[tool.ruff.lint]
# Catch jump control statements in finally (B012)
extend-select = ["B012","I"]