-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
140 lines (124 loc) · 3.16 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
139
140
[project]
name = "odoo-tools"
authors = [
{name = "Camptocamp SA", email="[email protected]"},
]
description = "Our Odoo project tools"
readme = "README.md"
keywords = ["odoo", "project"]
license = {file = "LICENSE"}
classifiers = [
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Programming Language :: Python :: 3",
"Framework :: Odoo",
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Natural Language :: English",
]
dependencies = [
"invoke==2.2.0",
"requests==2.32.3",
"git-aggregator>=4.0",
"git-autoshare",
"passlib",
"clipboard",
"marabunta",
"pre-commit",
"psycopg2-binary>=2.7.6",
"gitpython",
"packaging",
"setuptools",
"pydantic>=2.0.0",
"pyyaml>6.0.0",
"ruamel.yaml",
"kaptan==0.6.0",
"wheel",
"cookiecutter",
"click>=8.1",
"towncrier",
"importlib_resources; python_version < '3.9'",
"bump2version",
"requirements-parser>=0.8.0",
]
requires-python = ">=3.8"
dynamic = ["version"]
[project.urls]
homepage = "https://github.com/camptocamp/odoo-project-tools"
documentation = "https://github.com/camptocamp/odoo-project-tools"
repository = "https://github.com/camptocamp/odoo-project-tools"
[project.scripts]
otools-tasks = "odoo_tools.tasks.main:program.run"
otools-project = "odoo_tools.cli.project:cli"
otools-addon = "odoo_tools.cli.addon:cli"
otools-release = "odoo_tools.cli.release:cli"
otools-pending = "odoo_tools.cli.pending:cli"
otools-conversion = "odoo_tools.conversion.convert_new_img:main"
[project.optional-dependencies]
test = [
"coverage",
"pytest",
"responses",
]
convert = [
"odoorpc"
]
[build-system]
requires = ["setuptools>=64", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages]
find = {}
[tool.setuptools_scm]
[tool.pytest.ini_options]
markers = [
"project_setup",
]
[tool.black]
line-length = 88
skip-string-normalization = "True"
[tool.ruff]
line-length = 88
[tool.ruff.lint]
select = [
"F", # pyflakes
"E", # pycodestyle (errors)
"W", # pycodestyle (warnings)
"C90", # mccabe
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"Q", # flake8-quotes
]
ignore = [
"E501", # line too long (if black is happy, we're happy)
"UP031", # pyupgrade: use format specifiers instead of percent format (TODO: enable)
"E721", # do not compare types, use 'isinstance()' (TODO: enable)
"B008", # do not perform calls in argument defaults (TODO: enable)
]
[tool.ruff.lint.mccabe]
max-complexity = 16
[tool.towncrier]
directory = "changes.d"
filename = "HISTORY.rst"
template = ".towncrier-template.rst"
title_format = ""
issue_format = "{issue}"
[[tool.towncrier.type]]
directory = "feat"
name = "Features and Improvements"
showcontent = true
[[tool.towncrier.type]]
directory = "fix"
name = "Bugfixes"
showcontent = true
[[tool.towncrier.type]]
directory = "rem"
name = "Remove"
showcontent = true
[[tool.towncrier.type]]
directory = "doc"
name = "Documentation"
showcontent = true
[[tool.towncrier.type]]
directory = "build"
name = "Build"
showcontent = true