-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
189 lines (156 loc) · 4.46 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
[project]
name = "jira_timemachine"
version = "1.1.0"
description = "Synchronize worklogs between Jira instances"
readme = "README.rst"
keywords = ["jira", "worklog", "timesheet"]
license = {file = "LICENSE"}
authors = [
{name = "Grzegorz Śliwiński", email = "[email protected]"}
]
maintainers = [
{name = "Michał Masłowski", email = "[email protected]"}
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">= 3.11"
dependencies = [
"arrow>=1.1.0",
"Click>=8.0.1",
"types-click>=7.1.0",
"jira>=3.0.1",
"pydantic>=2",
"requests>=2.25.1",
"types-requests>=0.1.9",
]
[project.urls]
"Source" = "https://github.com/ClearcodeHQ/jira_timemachine"
"Bug Tracker" = "https://github.com/ClearcodeHQ/jira_timemachine/issues"
"Changelog" = "https://github.com/ClearcodeHQ/jira_timemachine/blob/v1.1.0/CHANGES.rst"
"Documentation" = "https://clearcodehq.github.io/jira_timemachine/"
[project.optional-dependencies]
docs = [
"sphinx",
"sphinx-jsonschema",
]
[project.scripts]
timemachine = "jira_timemachine:timemachine"
timecheck = "jira_timemachine:timecheck"
[build-system]
requires = ["setuptools >= 61.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
zip-safe = true
[tool.setuptools.packages.find]
include = ["jira_timemachine*"]
exclude = ["tests*"]
namespaces = false
[tool.black]
line-length = 120
target-version = ['py310']
include = '.*\.pyi?$'
[tool.ruff]
# Decrease the maximum line length to 79 characters.
line-length = 120
select = [
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"D", # pydocstyle
]
[tool.mypy]
check_untyped_defs = true
mypy_path = "src"
incremental = true
[[tool.mypy.overrides]]
module = "jira_timemachine.*"
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = ["jira.*"]
ignore_missing_imports = true
[tool.towncrier]
directory = "newsfragments"
single_file=true
filename="CHANGES.rst"
issue_format="`#{issue} <https://https://github.com/ClearcodeHQ/jira_timemachine/issues/{issue}>`_"
[tool.towncrier.fragment.feature]
name = "Features"
showcontent = true
[tool.towncrier.fragment.bugfix]
name = "Bugfixes"
showcontent = true
[tool.towncrier.fragment.break]
name = "Breaking changes"
showcontent = true
[tool.towncrier.fragment.misc]
name = "Miscellaneus"
showcontent = false
[tool.pytest.ini_options]
xfail_strict = true
filterwarnings = [
"error",
"ignore:'imghdr' is deprecated and slated for removal in Python 3.13:DeprecationWarning",
'ignore:datetime.datetime.utcfromtimestamp\(\) is deprecated and scheduled for removal in a future version.:DeprecationWarning',
]
[tool.tbump]
# Uncomment this if your project is hosted on GitHub:
# github_url = "https://github.com/<user or organization>/<project>/"
[tool.tbump.version]
current = "1.1.0"
# Example of a semver regexp.
# Make sure this matches current_version before
# using tbump
regex = '''
(?P<major>\d+)
\.
(?P<minor>\d+)
\.
(?P<patch>\d+)
(\-
(?P<extra>.+)
)?
'''
[tool.tbump.git]
message_template = "Release {new_version}"
tag_template = "v{new_version}"
[[tool.tbump.field]]
# the name of the field
name = "extra"
# the default value to use, if there is no match
default = ""
# For each file to patch, add a [[file]] config
# section containing the path of the file, relative to the
# tbump.toml location.
[[tool.tbump.file]]
src = "jira_timemachine/__init__.py"
[[tool.tbump.file]]
src = "docs/source/conf.py"
[[tool.tbump.file]]
src = "README.rst"
[[tool.tbump.file]]
src = "pyproject.toml"
search = 'version = "{current_version}"'
[[tool.tbump.file]]
src = "pyproject.toml"
search = '"Changelog" = "https://github.com/ClearcodeHQ/jira_timemachine/blob/v{current_version}/CHANGES.rst"'
# 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 = "Build changelog"
cmd = "pipenv run towncrier build --version {new_version} --yes"
# Or run some commands after the git tag and the branch
# have been pushed:
# [[tool.tbump.after_push]]
# name = "publish"
# cmd = "./publish.sh"