-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
89 lines (81 loc) · 2.56 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
[tool.ruff]
line-length = 110
target-version = "py39"
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.poetry]
name = "tag-publish"
version = "0.0.0"
description = "Tools used to publish Python packages, Docker images and Helm charts for GitHub tag and branch"
readme = "README.md"
authors = ["Camptocamp <[email protected]>"]
keywords = ["ci"]
repository = "https://github.com/camptocamp/tag-publish"
license = "FreeBSD"
packages = [{ include = "tag_publish" }]
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Typing :: Typed',
]
include = [
"tag_publish/py.typed",
"tag_publish/*.json",
]
exclude = ["tag_publish/node_modules/**/test"]
[tool.poetry.scripts]
tag-publish = "tag_publish.cli:main"
tag-publish-new = "tag_publish.new:main"
[tool.poetry.dependencies]
python = ">=3.9,<4.0"
requests = "2.32.3"
twine = "5.1.1"
PyYAML = "6.0.2"
id = "1.5.0"
security-md = "0.2.3"
applications-download = "0.8.0"
jsonschema-validator-new = "0.3.2"
PyGithub = "2.5.0"
debian-inspector = "31.1.0"
multi-repo-automation = "1.5.0"
[tool.poetry.group.dev.dependencies]
prospector = { version = "1.13.3", extras = ["with_bandit", "with_mypy", "with_pyroma", "with_ruff"] }
prospector-profile-duplicated = "1.10.4"
prospector-profile-utils = "1.15.1"
types-requests = "2.32.0.20241016"
types-pyyaml = "6.0.12.20241230"
[build-system]
requires = [
"poetry-core>=1.0.0",
"poetry-dynamic-versioning[plugin]>=0.19.0",
"poetry-plugin-tweak-dependencies-version",
"poetry-plugin-drop-python-upper-constraint",
]
build-backend = "poetry.core.masonry.api"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
pattern = "^(?P<base>\\d+(\\.\\d+)*)"
format-jinja = """
{%- if env.get("VERSION_TYPE") == "default_branch" -%}
{{serialize_pep440(bump_version(base, 1), dev=distance)}}
{%- elif env.get("VERSION_TYPE") == "stabilization_branch" -%}
{{serialize_pep440(bump_version(base, 2), dev=distance)}}
{%- elif distance == 0 -%}
{{serialize_pep440(base)}}
{%- else -%}
{{serialize_pep440(bump_version(base), dev=distance)}}
{%- endif -%}
"""
[tool.poetry-plugin-tweak-dependencies-version]
default = "major"