-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
37 lines (31 loc) · 1.33 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
[tool.poetry]
name = "tom-swift"
# this version is a placeholder: version supplied by poetry-dynamic-versioning
version = "0.0.0"
description = "TOM Toolkit Facility module for the Neil Gehrels Swift Observatory"
authors = ["Lindy Lindstrom <[email protected]>"]
license = "GPL-3.0-or-later"
readme = "README.md"
packages = [{include = "tom_swift"}]
[tool.poetry.dependencies]
python = ">=3.8.1,<3.12"
tomtoolkit = ">=2.15"
swifttools = "<4"
boto3 = "^1.34.136"
[tool.poetry.group.lint.dependencies]
flake8 = ">=6.0,<7.2"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "pep440"
# the default pattern regex makes the 'v' manditory
# this pattern modifies the default regex in order to make the 'v' optional
# ('v' becomes '[v]?' meaning a single v, [v], and ? means optional)
pattern = "(?x)^[v]?((?P<epoch>\\d+)!)?(?P<base>\\d+(\\.\\d+)*)([-._]?((?P<stage>[a-zA-Z]+)[-._]?(?P<revision>\\d+)?))?(\\+(?P<tagged_metadata>.+))?$"
# substitute version not only in pyproject.toml (which the config block above does)
# but also the __version__.py file
[tool.poetry-dynamic-versioning.substitution]
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"
# poetry_dynamic_versioning.backend is a thin wrapper around the standard build-backend = "poetry.core.masonry.api"