forked from gooddata/gooddata-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
109 lines (90 loc) · 2.57 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
# (C) 2021 GoodData Corporation
[tool.black]
line-length = 120
# intentionally ignore the generated clients
extend-exclude = '(gooddata-afm-client|gooddata-metadata-client|gooddata-scan-client|.*\.snapshot\..*)'
[tool.isort]
# make isort setup compatible with black
profile = "black"
multi_line_output = 3
include_trailing_comma = true
line_length = 120
skip_glob = ["*/gooddata-afm-client/*","*/gooddata-metadata-client/*","*/gooddata-scan-client/*", "*/.snapshot/*"]
src_paths = [
"gooddata-afm-client",
"gooddata-metadata-client",
"gooddata-scan-client",
"gooddata-sdk",
"gooddata-fdw",
"gooddata-pandas"
]
[tool.tbump]
# Uncomment this if your project is hosted on GitHub:
# github_url = "https://github.com/<user or organization>/<project>/"
[tool.tbump.version]
current = "0.6.0"
regex = '''
(?P<major>\d+)
\.
(?P<minor>\d+)
\.
(?P<patch>\d+)
'''
[tool.tbump.git]
message_template = "Bump to {new_version}"
tag_template = "v{new_version}"
[[tool.tbump.file]]
# clients setup.py
src="gooddata-*-client/setup.py"
search="VERSION = \"{current_version}\""
[[tool.tbump.file]]
# fdw setup.py
src="gooddata-fdw/setup.py"
search="version=\"{current_version}\""
[[tool.tbump.file]]
# fdw setup.py dependency
src="gooddata-fdw/setup.py"
search="gooddata-sdk~={current_version}"
[[tool.tbump.file]]
# pandas setup.py
src="gooddata-pandas/setup.py"
search="version=\"{current_version}\""
[[tool.tbump.file]]
# pandas setup.py dependency
src="gooddata-pandas/setup.py"
search="gooddata-sdk~={current_version}"
[[tool.tbump.file]]
# sdk setup.py
src="gooddata-sdk/setup.py"
search="version=\"{current_version}\""
[[tool.tbump.file]]
# sdk setup.py dependency
src="gooddata-sdk/setup.py"
search="gooddata-.*-client~={current_version}"
[[tool.tbump.file]]
# clients README
src="gooddata-*-client/README.md"
[[tool.tbump.file]]
# clients user agent
src="gooddata-*-client/gooddata_*_client/api_client.py"
[[tool.tbump.file]]
# clients config
src="gooddata-*-client/gooddata_*_client/configuration.py"
[[tool.tbump.file]]
# clients __init__.py
src="gooddata-*-client/gooddata_*_client/__init__.py"
[[tool.tbump.file]]
# clients generator
src="scripts/generate_*_client.sh"
search="packageVersion={current_version}"
# You can specify a list of commands to
# run after the files have been patched
# and before the git commit is made
# [[tool.tbump.before_commit]]
# name = "check changelog"
# cmd = "grep -q {new_version} Changelog.rst"
# Or run some commands after the git tag and the branch
# have been pushed:
# [[tool.tbump.after_push]]
# name = "publish"
# cmd = "./publish.sh"