-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
64 lines (54 loc) · 1.57 KB
/
pyproject.toml
File metadata and controls
64 lines (54 loc) · 1.57 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
[build-system]
requires = ["setuptools", "Cython~=3.1.1"]
build-backend = "setuptools.build_meta"
[project]
name = "pycbf"
version = "0.9.6.8.dev"
description = "An API for CBF/imgCIF Crystallographic Binary Files"
authors = [
{ name = "Herbert J. Bernstein", email = "[email protected]" },
{ name = "Paul J. Ellis" },
]
maintainers = [{ name = "Nicholas Devenish", email = "[email protected]" }]
license = "LGPL-2.1-or-later"
readme = "README.md"
requires-python = ">=3.9"
dependencies = [
"numpy>=1.26; python_version <= '3.12'",
"numpy>=2.1; python_version >= '3.13'",
]
[project.urls]
Homepate = "http://www.bernstein-plus-sons.com/software/CBF/"
Repository = "https://github.com/dials/pycbf"
[dependency-groups]
dev = [
"bump-my-version",
"Cython~=3.1.1",
"dials-data",
"pytest",
"toml~=0.10.2",
"towncrier",
]
[tool.ruff]
exclude = ["src/pycbf/_wrapper.py"]
[tool.ruff.format]
exclude = ["cbflib/", "src/pycbf/__init__.py"]
[tool.towncrier]
package = "pycbf"
package_dir = ".."
filename = "CHANGELOG.rst"
[tool.pytest.ini_options]
addopts = "--regression -ra"
testpaths = ["tests"]
[tool.bumpversion]
parse = "(?P<cbflib_version>\\d+\\.\\d+\\.\\d+)\\.(?P<minor>\\d+)\\.?(?P<release>[a-z]+)?"
current_version = "0.9.6.8.dev"
serialize = ["{cbflib_version}.{minor}.{release}", "{cbflib_version}.{minor}"]
[tool.bumpversion.parts.release]
values = ["dev", "prod"]
optional_value = "prod"
first_value = "dev"
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'