-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
108 lines (99 loc) · 2.89 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
[tool.ruff]
line-length = 110
target-version = "py39"
[tool.ruff.lint]
fixable = ["ALL"]
extend-select = [
"UP", # pyupgrade
"F", # Pyflakes
"E", "W", # Pycodestyle
"I", # isort
"S", # flake8-bandit
"SIM", # flake8-simplify
"B", # flake8-bugbear
# pydocstyle
"D213", "D214", "D215", "D405", "D406", "D407", "D408", "D409", "D410", "D411", "D413", "D416", "D417",
]
ignore= [
"S101", # Use of assert detected
"S607", # start-process-with-partial-path
"S603", # subprocess-without-shell-equals-true
]
exclude = ["tag_publish/configuration.py"]
[tool.mypy]
python_version = "3.9"
ignore_missing_imports = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
strict = true
[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",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"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.4.0"
security-md = "0.2.3"
applications-download = "0.7.1"
jsonschema-validator-new = "0.1.0"
PyGithub = "2.5.0"
debian-inspector = "31.1.0"
multi-repo-automation = "1.4.2"
[tool.poetry.group.dev.dependencies]
prospector = { version = "1.12.1", extras = ["with-bandit", "with-mypy", "with-pyroma"] }
prospector-profile-duplicated = "1.6.0"
prospector-profile-utils = "1.9.1"
types-requests = "2.32.0.20241016"
types-pyyaml = "6.0.12.20240917"
[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"