-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
138 lines (128 loc) · 4.39 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
[tool.black]
line-length = 110
target-version = ["py39"]
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = false
use_parentheses = true
line_length = 110
[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 = "c2cciutils"
version = "0.0.0"
description = "Common utilities for Camptocamp CI"
readme = "README.md"
authors = ["Camptocamp <info@camptocamp.com>"]
keywords = ["ci"]
repository = "https://github.com/camptocamp/c2cciutils"
license = "FreeBSD"
packages = [{ include = "c2cciutils" }]
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 = [
"c2cciutils/py.typed",
"c2cciutils/*.graphql",
"c2cciutils/*.yaml",
"c2cciutils/*.json",
"c2cciutils/node_modules/snyk/bin/snyk",
"c2cciutils/node_modules/**/*.js",
"c2cciutils/node_modules/**/*.py",
"c2cciutils/node_modules/**/*.wasm",
"c2cciutils/node_modules/**/*.json",
"c2cciutils/node_modules/snyk/wrapper_dist/*",
"c2cciutils/node_modules/snyk/wrapper_dist/**",
]
exclude = ["c2cciutils/node_modules/**/test"]
[tool.poetry.scripts]
c2cciutils = "c2cciutils.scripts.main:main"
c2cciutils-env = "c2cciutils.scripts.env:main"
c2cciutils-checks = "c2cciutils.scripts.env:main"
c2cciutils-pull-request-checks = "c2cciutils.scripts.pr_checks:main"
c2cciutils-audit = "c2cciutils.scripts.audit:main"
c2cciutils-publish = "c2cciutils.scripts.publish:main"
c2cciutils-version = "c2cciutils.scripts.version:main"
c2cciutils-clean = "c2cciutils.scripts.clean:main"
c2cciutils-google-calendar = "c2cciutils.publish:main_calendar"
c2cciutils-k8s-install = "c2cciutils.scripts.k8s.install:main"
c2cciutils-k8s-db = "c2cciutils.scripts.k8s.db:main"
c2cciutils-k8s-wait = "c2cciutils.scripts.k8s.wait:main"
c2cciutils-k8s-logs = "c2cciutils.scripts.k8s.logs:main"
c2cciutils-pin-pipenv = "c2cciutils.scripts.pin_pipenv:main"
c2cciutils-docker-logs = "c2cciutils.scripts.docker_logs:main"
c2cciutils-trigger-image-update = "c2cciutils.scripts.trigger_image_update:main"
c2cciutils-download-applications = "c2cciutils.scripts.download_applications:main"
c2cciutils-docker-versions-gen = "c2cciutils.scripts.docker_versions_gen:main"
[tool.poetry.dependencies]
python = ">=3.9,<4.0"
markdown-table = "2020.12.3"
python-magic = "0.4.27"
requests = "2.31.0"
Markdown = "3.4.4"
google-api-python-client = { version = "2.95.0", optional = true }
google-auth-httplib2 = { version = "0.1.0", optional = true }
google-auth-oauthlib = { version = "1.0.0", optional = true }
"ruamel.yaml" = "0.17.32"
defusedxml = "0.7.1"
twine = { version = "4.0.2", optional = true }
codespell = { version = "2.2.5", optional = true }
toml = "0.10.2"
debian-inspector = "31.0.0"
PyYAML = "6.0.1"
tomlkit = { version = "0.12.1", optional = true }
multi-repo-automation = { version="0.3.1", optional = true }
[tool.poetry.extras]
audit = []
checks = []
publish = ["twine", "google-api-python-client", "google-auth-httplib2", "google-auth-oauthlib", "tomlkit"]
publish_plugins = []
pr_checks = ["codespell"]
version = ["multi-repo-automation"]
[tool.poetry.group.dev.dependencies]
# pylint = "2.15.6"
prospector = { version = "1.10.2", extras = ["with_bandit", "with_mypy", "with_pyroma"] }
types-requests = "2.31.0.2"
types-pyyaml = "6.0.12.11"
types-setuptools = "68.0.0.3"
types-markdown = "3.4.2.10"
types-toml = "0.10.8.7"
typing-extensions = "4.7.1"
prospector-profile-duplicated = "0.1.0"
[build-system]
requires = [
"poetry-core>=1.0.0",
"poetry-dynamic-versioning[plugin]>=0.19.0",
"poetry-plugin-tweak-dependencies-version",
]
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") in ("version_branch", "feature_branch") -%}
{{serialize_pep440(bump_version(base, 1 if env.get("IS_MASTER") == "TRUE" else 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"
black = "full"
isort = "full"
codespell = "full"