2
2
requires = [
3
3
" hatch-vcs>=0.4" ,
4
4
" hatchling>=1.18" ,
5
+ " hatch-requirements-txt" ,
6
+ " setuptools ~=63.2.0" ,
7
+ " wheel ~=0.37.1" ,
5
8
]
6
9
build-backend = " hatchling.build"
7
-
8
- [tool .setuptools .dynamic ]
9
- name = " dialoget"
10
- version = " attr: dialoget.__version__"
10
+ # build-backend = "setuptools.build_meta"
11
11
12
12
13
13
[project .urls ]
@@ -19,20 +19,43 @@ wiki = "https://github.com/dialoget/python/wiki"
19
19
20
20
[project ]
21
21
name = " dialoget"
22
- dynamic = [" version" ]
23
- authors = [
24
- {
name =
" Tom Sapletta" ,
email =
" [email protected] " },
25
- ]
26
- maintainers = [
27
- {
name =
" dialoget developers" ,
email =
" [email protected] " }
28
- ]
29
- requires-python = " >=3.7"
22
+ version = " 0.1.7"
23
+ # dynamic = ["dependencies"]
24
+ # dynamic = ["version"]
30
25
description = " A Sentence Python decorator for displaying dynamic log messages."
31
26
readme.content-type = " text/markdown"
32
27
readme.file = " README.md"
33
28
keywords = [" test" , " framework" , " doalogware" , " Sentence" , " console" , " terminal" , " time" ]
34
29
license = " Apache-2.0"
30
+ requires-python = " >=3.7"
35
31
32
+ dependencies = [
33
+ " packaging>=23.2" ,
34
+ ' tomli>=2.0.1; python_version < "3.11"' ,
35
+ " stringcase ~=1.2.0" ,
36
+ ]
37
+ optional-dependencies.docs = [
38
+ " furo>=2023.9.10" ,
39
+ " sphinx<7.2" ,
40
+ " sphinx-autodoc-typehints>=1.25.2" ,
41
+ " pylint ~=2.14.0" ,
42
+ " toml ~=0.10.2" ,
43
+ " yapf ~=0.32.0" ,
44
+ ]
45
+ optional-dependencies.testing = [
46
+ " covdefaults>=2.3" ,
47
+ " pytest>=7.4.3" ,
48
+ " pytest-cov>=4.1" ,
49
+ " pytest-mock>=3.12" ,
50
+ " setuptools>=69.0.2" ,
51
+ " wheel>=0.42" ,
52
+ ]
53
+ authors = [
54
+ {
name =
" Tom Sapletta" ,
email =
" [email protected] " },
55
+ ]
56
+ maintainers = [
57
+ {
name =
" dialoget developers" ,
email =
" [email protected] " }
58
+ ]
36
59
classifiers = [
37
60
" Development Status :: 5 - Production/Stable" ,
38
61
" Environment :: Console" ,
@@ -87,10 +110,22 @@ classifiers = [
87
110
" Topic :: System :: Shells" ,
88
111
" Topic :: Terminals" ,
89
112
" Topic :: Utilities" ]
90
- dependencies = []
91
113
92
- [project .scripts ]
93
- dialoget = " dialoget.cli:main"
114
+
115
+ [tool .hatch .metadata .hooks .requirements_txt ]
116
+ # files = ["requirements.txt"]
117
+
118
+ [tool .pylint ]
119
+ max-line-length = 88
120
+ disable = [
121
+ " C0103" , # (invalid-name)
122
+ " C0114" , # (missing-module-docstring)
123
+ " C0115" , # (missing-class-docstring)
124
+ " C0116" , # (missing-function-docstring)
125
+ " R0903" , # (too-few-public-methods)
126
+ " R0913" , # (too-many-arguments)
127
+ " W0105" , # (pointless-string-statement)
128
+ ]
94
129
95
130
[tool .flake8 ]
96
131
max_line_length = 99
@@ -114,14 +149,29 @@ multi_line_output = 4
114
149
known_first_party = [" src" , " tests" ]
115
150
116
151
[tool .coverage .run ]
117
- branch = true
118
- include = [" dialoget/*" ]
119
- relative_files = true
120
- disable_warnings = [" include-ignored" ]
152
+ # branch = true
153
+ # include = ["dialoget/*"]
154
+ # relative_files = true
155
+ # disable_warnings = ["include-ignored"]
156
+ source = [" src" ]
121
157
122
158
[tool .coverage .report ]
123
159
show_missing = true
124
160
161
+ [tool .coverage ]
162
+ html.show_contexts = true
163
+ html.skip_covered = false
164
+ paths.source = [
165
+ " src" ,
166
+ " .tox*/*/lib/python*/site-packages" ,
167
+ " .tox*/pypy*/site-packages" ,
168
+ " .tox*\\ *\\ Lib\\ site-packages" ,
169
+ " */src" ,
170
+ " *\\ src" ,
171
+ ]
172
+
173
+ [tool .black ]
174
+ line-length = 120
125
175
126
176
[tool .ruff ]
127
177
src = [" src" , " tests" ]
@@ -135,9 +185,12 @@ show_error_codes = true
135
185
strict = true
136
186
overrides = [{ module = [" virtualenv.*" ], ignore_missing_imports = true }]
137
187
138
- [tool .hatch ]
139
- build.hooks.vcs.version-file = " src/__init__.py"
140
- version.source = " vcs "
188
+ [tool .hatch . version ]
189
+ path = " src/__init__.py"
190
+ # pattern = "BUILD = 'b(?P<version>[^']+)' "
141
191
142
- [tool .black ]
143
- line-length = 120
192
+ [tool .setuptools .dynamic ]
193
+ version = { attr = " my_package.VERSION" }
194
+ readme = { file = [" README.md" , " TODO.md" ] }
195
+
196
+ [tool .setuptools_scm ]
0 commit comments