slownie 1.3.2__zip → 1.3.3__zip

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. {slownie-1.3.2 → slownie-1.3.3}/CHANGES.rst +6 -17
  2. {slownie-1.3.2 → slownie-1.3.3}/PKG-INFO +9 -20
  3. slownie-1.3.3/pyproject.toml +280 -0
  4. {slownie-1.3.2 → slownie-1.3.3}/src/slownie.egg-info/PKG-INFO +9 -20
  5. {slownie-1.3.2 → slownie-1.3.3}/src/slownie.egg-info/requires.txt +2 -2
  6. slownie-1.3.2/pyproject.toml +0 -270
  7. {slownie-1.3.2 → slownie-1.3.3}/.readthedocs.yml +0 -0
  8. {slownie-1.3.2 → slownie-1.3.3}/LICENSE +0 -0
  9. {slownie-1.3.2 → slownie-1.3.3}/MANIFEST.in +0 -0
  10. {slownie-1.3.2 → slownie-1.3.3}/README.rst +0 -0
  11. {slownie-1.3.2 → slownie-1.3.3}/docs/CHANGES.rst +0 -0
  12. {slownie-1.3.2 → slownie-1.3.3}/docs/README.rst +0 -0
  13. {slownie-1.3.2 → slownie-1.3.3}/docs/_static/.keep +0 -0
  14. {slownie-1.3.2 → slownie-1.3.3}/docs/_templates/.keep +0 -0
  15. {slownie-1.3.2 → slownie-1.3.3}/docs/conf.py +0 -0
  16. {slownie-1.3.2 → slownie-1.3.3}/docs/index.rst +0 -0
  17. {slownie-1.3.2 → slownie-1.3.3}/setup.cfg +0 -0
  18. {slownie-1.3.2 → slownie-1.3.3}/src/slownie/__about__.py +0 -0
  19. {slownie-1.3.2 → slownie-1.3.3}/src/slownie/__init__.py +0 -0
  20. {slownie-1.3.2 → slownie-1.3.3}/src/slownie/_slownie.py +0 -0
  21. {slownie-1.3.2 → slownie-1.3.3}/src/slownie.egg-info/SOURCES.txt +0 -0
  22. {slownie-1.3.2 → slownie-1.3.3}/src/slownie.egg-info/dependency_links.txt +0 -0
  23. {slownie-1.3.2 → slownie-1.3.3}/src/slownie.egg-info/top_level.txt +0 -0
  24. {slownie-1.3.2 → slownie-1.3.3}/src/slownie.egg-info/zip-safe +0 -0
  25. {slownie-1.3.2 → slownie-1.3.3}/tests/__init__.py +0 -0
  26. {slownie-1.3.2 → slownie-1.3.3}/tests/__main__.py +0 -0
  27. {slownie-1.3.2 → slownie-1.3.3}/tests/data/.keep +0 -0
  28. {slownie-1.3.2 → slownie-1.3.3}/tests/test_main.py +0 -0
@@ -1,15 +1,15 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
- 1.3.2 (2024-10-30)
5
- ------------------
6
- - Setup (dependencies) update.
7
-
8
- 1.3.1 (2024-10-09)
4
+ 1.3.3 (2024-11-13)
9
5
  ------------------
6
+ - More unittests.
7
+ - 100% code coverage.
8
+ - 100% code linting.
9
+ - Tox configuration is now in native (toml) format.
10
10
  - Setup (dependencies) update.
11
11
 
12
- 1.3.0 (2024-09-30)
12
+ 1.3.2 (2024-10-30)
13
13
  ------------------
14
14
  - Drop support for Python 3.8
15
15
  - Setup (dependencies) update.
@@ -70,21 +70,10 @@ Changelog
70
70
  - Update required setuptools version.
71
71
  - Improve and simplify setup and packaging.
72
72
 
73
- 1.0.0b3 (2018-02-26)
74
- --------------------
75
- - Improve and simplify setup and packaging.
76
-
77
73
  1.0.0b2 (2018-01-28)
78
74
  --------------------
79
75
  - Fix a bug and inconsistencies in tox.ini
80
76
  - Update of README.rst.
81
-
82
- 0.9.7b2 (2018-01-24)
83
- --------------------
84
- - Little update of README.rst
85
-
86
- 0.9.7b1 (2018-01-24)
87
- --------------------
88
77
  - Update required Sphinx version.
89
78
  - Update doc Sphinx configuration files.
90
79
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: slownie
3
- Version: 1.3.2
3
+ Version: 1.3.3
4
4
  Summary: Polish spelled-out numbers and amounts.
5
5
  Author: Adam Karpierz
6
6
  Author-email: adam@karpierz.net
@@ -33,8 +33,8 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
33
33
  Requires-Python: <4.0.0,>=3.9.0
34
34
  Description-Content-Type: text/x-rst; charset=UTF-8
35
35
  License-File: LICENSE
36
- Requires-Dist: setuptools>=75.3.0
37
- Requires-Dist: pkg-about>=1.2.2
36
+ Requires-Dist: setuptools>=75.5.0
37
+ Requires-Dist: pkg-about>=1.2.5
38
38
  Provides-Extra: doc
39
39
  Requires-Dist: Sphinx>=7.4.7; extra == "doc"
40
40
  Requires-Dist: sphinx-toolbox>=3.8.1; extra == "doc"
@@ -154,15 +154,15 @@ Authors
154
154
  Changelog
155
155
  =========
156
156
 
157
- 1.3.2 (2024-10-30)
158
- ------------------
159
- - Setup (dependencies) update.
160
-
161
- 1.3.1 (2024-10-09)
157
+ 1.3.3 (2024-11-13)
162
158
  ------------------
159
+ - More unittests.
160
+ - 100% code coverage.
161
+ - 100% code linting.
162
+ - Tox configuration is now in native (toml) format.
163
163
  - Setup (dependencies) update.
164
164
 
165
- 1.3.0 (2024-09-30)
165
+ 1.3.2 (2024-10-30)
166
166
  ------------------
167
167
  - Drop support for Python 3.8
168
168
  - Setup (dependencies) update.
@@ -223,21 +223,10 @@ Changelog
223
223
  - Update required setuptools version.
224
224
  - Improve and simplify setup and packaging.
225
225
 
226
- 1.0.0b3 (2018-02-26)
227
- --------------------
228
- - Improve and simplify setup and packaging.
229
-
230
226
  1.0.0b2 (2018-01-28)
231
227
  --------------------
232
228
  - Fix a bug and inconsistencies in tox.ini
233
229
  - Update of README.rst.
234
-
235
- 0.9.7b2 (2018-01-24)
236
- --------------------
237
- - Little update of README.rst
238
-
239
- 0.9.7b1 (2018-01-24)
240
- --------------------
241
230
  - Update required Sphinx version.
242
231
  - Update doc Sphinx configuration files.
243
232
 
@@ -0,0 +1,280 @@
1
+ # Copyright (c) 2016 Adam Karpierz
2
+ # SPDX-License-Identifier: Zlib
3
+
4
+ [build-system]
5
+ build-backend = 'setuptools.build_meta'
6
+ requires = ['setuptools>=75.5.0', 'packaging>=24.2.0', 'tox>=4.23.2']
7
+
8
+ [project]
9
+ name = 'slownie'
10
+ version = '1.3.3'
11
+ description = 'Polish spelled-out numbers and amounts.'
12
+ urls.Homepage = 'https://pypi.org/project/slownie/'
13
+ urls.Documentation = 'https://slownie.readthedocs.io/'
14
+ urls.Download = 'https://pypi.org/project/slownie/'
15
+ urls.Source = 'https://github.com/karpierz/slownie'
16
+ urls.Issues = 'https://github.com/karpierz/slownie/issues'
17
+ license = { text = 'zlib/libpng License ; https://opensource.org/license/zlib' }
18
+ authors = [
19
+ { name = 'Adam Karpierz' },
20
+ { email = 'adam@karpierz.net' },
21
+ ]
22
+ maintainers = [
23
+ { name = 'Adam Karpierz' },
24
+ { email = 'adam@karpierz.net' },
25
+ ]
26
+ keywords = ['slownie']
27
+ classifiers = [
28
+ 'Development Status :: 5 - Production/Stable',
29
+ 'Intended Audience :: Developers',
30
+ 'License :: OSI Approved :: zlib/libpng License',
31
+ 'Operating System :: OS Independent',
32
+ 'Natural Language :: Polish',
33
+ 'Programming Language :: Python',
34
+ 'Programming Language :: Python :: 3',
35
+ 'Programming Language :: Python :: 3.9',
36
+ 'Programming Language :: Python :: 3.10',
37
+ 'Programming Language :: Python :: 3.11',
38
+ 'Programming Language :: Python :: 3.12',
39
+ 'Programming Language :: Python :: 3.13',
40
+ 'Programming Language :: Python :: 3 :: Only',
41
+ 'Programming Language :: Python :: Implementation :: CPython',
42
+ 'Programming Language :: Python :: Implementation :: PyPy',
43
+ 'Topic :: Software Development :: Libraries :: Python Modules',
44
+ ]
45
+ requires-python = '>=3.9.0,<4.0.0'
46
+ dependencies = [
47
+ # mandatory
48
+ 'setuptools>=75.5.0',
49
+ 'pkg-about>=1.2.5',
50
+ # others
51
+ ]
52
+ dynamic = ['readme']
53
+ optional-dependencies.'doc' = [
54
+ 'Sphinx>=7.4.7',
55
+ 'sphinx-toolbox>=3.8.1',
56
+ 'sphinx-tabs>=3.4.5', # don't touch! sphinx-toolbox requires <3.4.7
57
+ 'sphinx-copybutton>=0.5.2',
58
+ 'sphinxcontrib-spelling>=8.0.0',
59
+ 'sphinx-lint>=1.0.0',
60
+ 'restructuredtext-lint>=1.4.0',
61
+ 'nbsphinx>=0.9.5',
62
+ ]
63
+ optional-dependencies.'test' = [
64
+ 'deepdiff>=8.0.1',
65
+ 'rich>=13.9.4',
66
+ ]
67
+
68
+ [project.scripts]
69
+ #'slownie' = 'slownie.__main__:main'
70
+
71
+ [project.gui-scripts]
72
+ #'slownie-gui' = 'slownie:main_gui'
73
+
74
+ #[project.entry-points.'slownie.magical']
75
+ #epoint = 'slownie:main_epoint'
76
+
77
+ [tool.setuptools.dynamic]
78
+ readme = { file = ['README.rst', 'CHANGES.rst'], content-type = 'text/x-rst; charset=UTF-8' }
79
+
80
+ [tool.setuptools]
81
+ license-files = ['LICENSE']
82
+ include-package-data = true
83
+ platforms = ['any']
84
+ zip-safe = true
85
+
86
+ [tool.setuptools.packages.find]
87
+ namespaces = false
88
+ where = ['src']
89
+
90
+ [tool.setuptools.package-dir]
91
+ '' = 'src'
92
+ #'slownie.tests' = 'tests'
93
+
94
+ [tool.setuptools.package-data]
95
+ slownie = [
96
+ ]
97
+
98
+ [tool.setuptools.exclude-package-data]
99
+ '*' = ['*.c','*.h','*.cpp','*.hpp','*.cxx','*.hxx','*.pyx','*.pxd']
100
+ slownie = [
101
+ ]
102
+
103
+ [tool.coverage]
104
+ # run
105
+ run.source = [
106
+ 'slownie',
107
+ 'tests',
108
+ ]
109
+ run.omit = [
110
+ ]
111
+ run.branch = true
112
+ run.data_file = '.tox/coverage/.coverage'
113
+ run.plugins = ['covdefaults']
114
+ # report
115
+ report.exclude_lines = [
116
+ # Regexes
117
+ # Have to re-enable the standard pragma
118
+ '^\s*if\s+self\.debug\s*:',
119
+ '^\s*if\s+__debug__\s*:',
120
+ '^\s*if\s+(0|False)\s*:',
121
+ '''if\s+__name__.*\s*==\s*['"]__main__['"]\s*:''',
122
+ '^\s*@unittest\.skip\(',
123
+ '^\s*@unittest\.skipIf\(sys\.platform\.startswith\("win"\)',
124
+ ]
125
+ report.omit = [
126
+ 'tests/run.py',
127
+ ]
128
+ report.skip_covered = false
129
+ # html report
130
+ html.directory = '.tox/coverage/.coverage.html'
131
+
132
+ [tool.flake8]
133
+ filename = ['*.py','*.pyx']
134
+ #include = ['tests']
135
+ #exclude = ['.tox','*.egg','.git','__pycache__','build','_build','docs/_build','dist']
136
+ max-line-length = 99
137
+ ignore = ['E126','E203','E221','E251','E302','E701','E702','E731',
138
+ 'E122','E127','E128','E222','E272','E241','E266','E226','E704',
139
+ 'D100','D101','D102','D103','D104','D400','D401','D202',
140
+ 'N806','N802','N803','N801',
141
+ 'I100','W503']
142
+ # (e.g. 'E4','W') default: 'E121','E123','126','226','E24','704'
143
+ #select =
144
+ #select = ['E','W','F','N','I']
145
+ output-file = '.tox/lint/flake8out.txt'
146
+ count = true
147
+ #show-pep8,
148
+ #show-source
149
+ #verbose
150
+ #quiet
151
+
152
+ #
153
+ # Configuration(s) for tox
154
+ #
155
+
156
+ [tool.tox] # slownie
157
+ env_list = [{replace='ref',of=['tool','tox','labels','py'],extend=true}, 'coverage', 'lint', 'docs']
158
+ min_version = '4.23.2'
159
+ skip_missing_interpreters = true
160
+ requires = [
161
+ {replace='ref',of=['tool','tox','_','base','deps'],extend=true},
162
+ 'virtualenv>=20.27.1',
163
+ 'tox-backtick>=0.5.4',
164
+ 'tox-tags>=0.2.0',
165
+ ]
166
+ [tool.tox.labels]
167
+ py = ['py39','py310','py311','py312','py313', 'pypy39','pypy310']
168
+ prepare = ['prepare']
169
+ coverage = ['coverage']
170
+ lint = ['lint']
171
+ docs = ['docs']
172
+ build = [{replace='ref',of=['tool','tox','labels','py'],extend=true}, 'docs', 'build']
173
+ deploy = [{replace='ref',of=['tool','tox','labels','build'],extend=true}, 'publish']
174
+
175
+ [tool.tox._.base]
176
+ base_python = ['python3.12']
177
+ deps = [
178
+ 'pip>=24.3.1',
179
+ 'setuptools>=75.5.0',
180
+ ]
181
+ package_subdir = 'slownie'
182
+
183
+ [tool.tox.env_run_base]
184
+ set_env.PYTHONDONTWRITEBYTECODE = '1'
185
+ set_env.PKG_PVER = "`python -W ignore -c \"import platform ; print(''.join(platform.python_version_tuple()[:2]), end='')\" 2> nul`"
186
+ set_env.PKG_NAME = "`python -W ignore -c \"import setuptools ; setuptools._distutils.core._setup_stop_after='config' ; print(setuptools.setup().metadata.get_name(), end='')\" 2> nul`"
187
+ set_env.PKG_DIST = "`python -W ignore -c \"import setuptools ; setuptools._distutils.core._setup_stop_after='config' ; print(setuptools.setup().metadata.get_fullname(), end='')\" 2> nul`"
188
+ commands = [
189
+ ['{env_python}','--version'],
190
+ ['{env_python}','-m','tests',{replace='posargs',extend=true}],
191
+ ]
192
+ extras = ['test']
193
+ deps = [
194
+ {replace='ref',of=['tool','tox','_','base','deps'],extend=true},
195
+ ]
196
+
197
+ [tool.tox.env.'prepare']
198
+ base_python = {replace='ref',of=['tool','tox','_','base','base_python']}
199
+ skip_install = true
200
+ allowlist_externals = [
201
+ 'cmd',
202
+ '.build',
203
+ ]
204
+ commands = [
205
+ ['cmd','/C','if','exist','.build.cmd','.build.cmd'],
206
+ ]
207
+ extras = []
208
+ deps = []
209
+
210
+ [tool.tox.env.'coverage']
211
+ base_python = {replace='ref',of=['tool','tox','_','base','base_python']}
212
+ commands = [
213
+ ['{env_python}','-m','coverage','erase'],
214
+ ['-','{env_python}','-m','coverage','run','-m','tests',{replace="posargs",extend=true}],
215
+ ['-','{env_python}','-m','coverage','html'],
216
+ ['{env_python}','-m','coverage','report'],
217
+ ]
218
+ deps = [
219
+ {replace='ref',of=['tool','tox','env_run_base','deps'],extend=true},
220
+ 'coverage>=7.6.4',
221
+ 'covdefaults>=2.3.0',
222
+ 'diff-cover>=9.2.0',
223
+ ]
224
+
225
+ [tool.tox.env.'docs']
226
+ base_python = {replace='ref',of=['tool','tox','_','base','base_python']}
227
+ commands = [
228
+ ['{env_python}','-m','sphinxlint','--ignore','.tox','--ignore','build','--ignore','dist'],
229
+ #['{env_python}','-m','sphinx.apidoc','-f','{envsitepackagesdir}/{[tool.tox._.base]package_subdir}'],
230
+ ['{env_python}','-m','sphinx.cmd.build','-W','-a','-b','html','-E','./docs','./build/docs/html'],
231
+ ['{env_python}','-m','sphinx.cmd.build','-W','-a','-b','linkcheck','./docs','./build/docs/html'],
232
+ ['{env_python}','-m','sphinx.cmd.build','-W','-a','-b','doctest', './docs','./build/docs/html'],
233
+ ]
234
+ extras = ['doc']
235
+ deps = [
236
+ {replace='ref',of=['tool','tox','_','base','deps'],extend=true},
237
+ ]
238
+
239
+ [tool.tox.env.'build']
240
+ depends = [{replace='ref',of=['tool','tox','labels','py'],extend=true}, 'docs']
241
+ base_python = {replace='ref',of=['tool','tox','_','base','base_python']}
242
+ commands = [
243
+ ['{env_python}','-W','ignore','-c','from setuptools import setup ; setup()','--quiet','sdist','--formats=zip'],
244
+ ['{env_python}','-W','ignore','-c','from setuptools import setup ; setup()','--quiet','bdist_wheel'],
245
+ # check out for PyPi
246
+ ['{env_python}','-m','twine','check','dist/*'],
247
+ ]
248
+ deps = [
249
+ {replace='ref',of=['tool','tox','env_run_base','deps'],extend=true},
250
+ 'twine>=5.1.1',
251
+ ]
252
+
253
+ [tool.tox.env.'publish']
254
+ depends = ['build']
255
+ base_python = {replace='ref',of=['tool','tox','_','base','base_python']}
256
+ skip_install = true
257
+ commands = [
258
+ # publish on PyPi
259
+ ['{env_python}','-m','twine','upload','dist/*'],
260
+ ]
261
+ extras = []
262
+ deps = [
263
+ 'twine>=5.1.1',
264
+ ]
265
+
266
+ [tool.tox.env.'lint']
267
+ base_python = {replace='ref',of=['tool','tox','_','base','base_python']}
268
+ commands = [
269
+ ['{env_python}','-m','flake8','{envsitepackagesdir}/{[tool.tox._.base]package_subdir}/'],
270
+ ]
271
+ extras = []
272
+ deps = [
273
+ {replace='ref',of=['tool','tox','env_run_base','deps'],extend=true},
274
+ 'flake8>=7.1.1',
275
+ 'flake8-pyproject>=1.2.3',
276
+ 'flake8-docstrings>=1.7.0',
277
+ 'pep8-naming>=0.14.1',
278
+ 'flake8-builtins>=2.5.0',
279
+ 'flake8-deprecated>=2.2.1',
280
+ ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: slownie
3
- Version: 1.3.2
3
+ Version: 1.3.3
4
4
  Summary: Polish spelled-out numbers and amounts.
5
5
  Author: Adam Karpierz
6
6
  Author-email: adam@karpierz.net
@@ -33,8 +33,8 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
33
33
  Requires-Python: <4.0.0,>=3.9.0
34
34
  Description-Content-Type: text/x-rst; charset=UTF-8
35
35
  License-File: LICENSE
36
- Requires-Dist: setuptools>=75.3.0
37
- Requires-Dist: pkg-about>=1.2.2
36
+ Requires-Dist: setuptools>=75.5.0
37
+ Requires-Dist: pkg-about>=1.2.5
38
38
  Provides-Extra: doc
39
39
  Requires-Dist: Sphinx>=7.4.7; extra == "doc"
40
40
  Requires-Dist: sphinx-toolbox>=3.8.1; extra == "doc"
@@ -154,15 +154,15 @@ Authors
154
154
  Changelog
155
155
  =========
156
156
 
157
- 1.3.2 (2024-10-30)
158
- ------------------
159
- - Setup (dependencies) update.
160
-
161
- 1.3.1 (2024-10-09)
157
+ 1.3.3 (2024-11-13)
162
158
  ------------------
159
+ - More unittests.
160
+ - 100% code coverage.
161
+ - 100% code linting.
162
+ - Tox configuration is now in native (toml) format.
163
163
  - Setup (dependencies) update.
164
164
 
165
- 1.3.0 (2024-09-30)
165
+ 1.3.2 (2024-10-30)
166
166
  ------------------
167
167
  - Drop support for Python 3.8
168
168
  - Setup (dependencies) update.
@@ -223,21 +223,10 @@ Changelog
223
223
  - Update required setuptools version.
224
224
  - Improve and simplify setup and packaging.
225
225
 
226
- 1.0.0b3 (2018-02-26)
227
- --------------------
228
- - Improve and simplify setup and packaging.
229
-
230
226
  1.0.0b2 (2018-01-28)
231
227
  --------------------
232
228
  - Fix a bug and inconsistencies in tox.ini
233
229
  - Update of README.rst.
234
-
235
- 0.9.7b2 (2018-01-24)
236
- --------------------
237
- - Little update of README.rst
238
-
239
- 0.9.7b1 (2018-01-24)
240
- --------------------
241
230
  - Update required Sphinx version.
242
231
  - Update doc Sphinx configuration files.
243
232
 
@@ -1,5 +1,5 @@
1
- setuptools>=75.3.0
2
- pkg-about>=1.2.2
1
+ setuptools>=75.5.0
2
+ pkg-about>=1.2.5
3
3
 
4
4
  [doc]
5
5
  Sphinx>=7.4.7
@@ -1,270 +0,0 @@
1
- # Copyright (c) 2016 Adam Karpierz
2
- # SPDX-License-Identifier: Zlib
3
-
4
- [build-system]
5
- build-backend = 'setuptools.build_meta'
6
- requires = ['setuptools>=75.3.0', 'wheel>=0.44.0', 'packaging>=24.1.0', 'tox>=4.23.2']
7
-
8
- [project]
9
- name = 'slownie'
10
- version = '1.3.2'
11
- description = 'Polish spelled-out numbers and amounts.'
12
- urls.Homepage = 'https://pypi.org/project/slownie/'
13
- urls.Documentation = 'https://slownie.readthedocs.io/'
14
- urls.Download = 'https://pypi.org/project/slownie/'
15
- urls.Source = 'https://github.com/karpierz/slownie'
16
- urls.Issues = 'https://github.com/karpierz/slownie/issues'
17
- license = { text = 'zlib/libpng License ; https://opensource.org/license/zlib' }
18
- authors = [
19
- { name = 'Adam Karpierz' },
20
- { email = 'adam@karpierz.net' },
21
- ]
22
- maintainers = [
23
- { name = 'Adam Karpierz' },
24
- { email = 'adam@karpierz.net' },
25
- ]
26
- keywords = ['slownie']
27
- classifiers = [
28
- 'Development Status :: 5 - Production/Stable',
29
- 'Intended Audience :: Developers',
30
- 'License :: OSI Approved :: zlib/libpng License',
31
- 'Operating System :: OS Independent',
32
- 'Natural Language :: Polish',
33
- 'Programming Language :: Python',
34
- 'Programming Language :: Python :: 3',
35
- 'Programming Language :: Python :: 3.9',
36
- 'Programming Language :: Python :: 3.10',
37
- 'Programming Language :: Python :: 3.11',
38
- 'Programming Language :: Python :: 3.12',
39
- 'Programming Language :: Python :: 3.13',
40
- 'Programming Language :: Python :: 3 :: Only',
41
- 'Programming Language :: Python :: Implementation :: CPython',
42
- 'Programming Language :: Python :: Implementation :: PyPy',
43
- 'Topic :: Software Development :: Libraries :: Python Modules',
44
- ]
45
- requires-python = '>=3.9.0,<4.0.0'
46
- dependencies = [
47
- # mandatory
48
- 'setuptools>=75.3.0',
49
- 'pkg-about>=1.2.2',
50
- # others
51
- ]
52
- dynamic = ['readme']
53
- [project.optional-dependencies]
54
- doc = [
55
- 'Sphinx>=7.4.7',
56
- 'sphinx-toolbox>=3.8.1',
57
- 'sphinx-tabs>=3.4.5', # don't touch! sphinx-toolbox requires <3.4.7
58
- 'sphinx-copybutton>=0.5.2',
59
- 'sphinxcontrib-spelling>=8.0.0',
60
- 'sphinx-lint>=1.0.0',
61
- 'restructuredtext-lint>=1.4.0',
62
- 'nbsphinx>=0.9.5',
63
- ]
64
- test = [
65
- 'deepdiff>=8.0.1',
66
- 'rich>=13.9.4',
67
- ]
68
-
69
- [project.scripts]
70
- #'slownie' = 'slownie.__main__:main'
71
-
72
- [project.gui-scripts]
73
- #'slownie-gui' = 'slownie:main_gui'
74
-
75
- #[project.entry-points.'slownie.magical']
76
- #epoint = 'slownie:main_epoint'
77
-
78
- [tool.setuptools.dynamic]
79
- readme = { file = ['README.rst', 'CHANGES.rst'], content-type = 'text/x-rst; charset=UTF-8' }
80
-
81
- [tool.setuptools]
82
- license-files = ['LICENSE']
83
- include-package-data = true
84
- platforms = ['any']
85
- zip-safe = true
86
-
87
- [tool.setuptools.packages.find]
88
- namespaces = false
89
- where = ['src']
90
-
91
- [tool.setuptools.package-dir]
92
- '' = 'src'
93
- #'slownie.tests' = 'tests'
94
-
95
- [tool.setuptools.package-data]
96
- slownie = [
97
- ]
98
-
99
- [tool.setuptools.exclude-package-data]
100
- '*' = ['*.c','*.h','*.cpp','*.hpp','*.cxx','*.hxx','*.pyx','*.pxd']
101
- slownie = [
102
- ]
103
-
104
- [tool.coverage.run]
105
- source = [
106
- 'slownie',
107
- 'tests',
108
- ]
109
- omit = [
110
- ]
111
- data_file = '.tox/coverage/.coverage'
112
- plugins = ['covdefaults']
113
-
114
- [tool.coverage.report]
115
- exclude_lines = [
116
- # Regexes
117
- # Have to re-enable the standard pragma
118
- '^\s*if\s+self\.debug\s*:',
119
- '^\s*if\s+__debug__\s*:',
120
- '^\s*if\s+(0|False)\s*:',
121
- '''if\s+__name__.*\s*==\s*['"]__main__['"]\s*:''',
122
- '^\s*@unittest\.skip\(',
123
- '^\s*@unittest\.skipIf\(sys\.platform\.startswith\("win"\)',
124
- ]
125
- omit = [
126
- 'tests/run.py',
127
- ]
128
- skip_covered = false
129
-
130
- [tool.coverage.html]
131
- directory = '.tox/coverage/.coverage.html'
132
-
133
- [tool.flake8]
134
- filename = ['*.py','*.pyx']
135
- #include = ['tests']
136
- #exclude = ['.tox','*.egg','.git','__pycache__','build','_build','docs/_build','dist']
137
- max-line-length = 99
138
- ignore = ['E126','E203','E221','E251','E302','E701','E702','E731',
139
- 'E122','E127','E128','E222','E272','E241','E266','E226','E704',
140
- 'D100','D101','D102','D103','D104','D400','D401','D202',
141
- 'N806','N802','N803','N801',
142
- 'I100','W503']
143
- # (e.g. 'E4','W') default: 'E121','E123','126','226','E24','704'
144
- #select =
145
- #select = ['E','W','F','N','I']
146
- output-file = '.tox/lint/flake8out.txt'
147
- count = true
148
- #show-pep8,
149
- #show-source
150
- #verbose
151
- #quiet
152
-
153
- #
154
- # Configuration(s) for tox
155
- #
156
-
157
- [tool.tox]
158
- legacy_tox_ini = """
159
- [tox]
160
- env_list = py{39,310,311,312,313}, pypy{39,310}, docs
161
- labels =
162
- py = py{39,310,311,312,313}, pypy{39,310}
163
- prepare = prepare
164
- coverage = coverage
165
- lint = lint
166
- docs = docs
167
- build = py{39,310,311,312,313}, pypy{39,310}, docs, build
168
- deploy = py{39,310,311,312,313}, pypy{39,310}, docs, build, publish
169
- min_version = 4.23.2
170
- skip_missing_interpreters = true
171
- requires =
172
- {[base]deps}
173
- virtualenv>=20.27.1
174
- tox-backtick>=0.5.2
175
- tox-tags>=0.2.0
176
-
177
- [base]
178
- base_python = python3.12
179
- deps =
180
- pip>=24.3.1
181
- setuptools>=75.3.0
182
- wheel>=0.44.0
183
- package_subdir = slownie
184
-
185
- [testenv]
186
- pass_env = WINDIR
187
- set_env =
188
- PYTHONDONTWRITEBYTECODE = 1
189
- commands =
190
- {env_python} --version
191
- {env_python} -m tests {posargs}
192
- extras = test
193
- deps =
194
- {[base]deps}
195
-
196
- [testenv:prepare]
197
- base_python = {[base]base_python}
198
- skip_install = true
199
- allowlist_externals =
200
- cmd
201
- .build
202
- commands =
203
- cmd /C if exist .build.cmd .build.cmd
204
-
205
- [testenv:coverage]
206
- base_python = {[base]base_python}
207
- commands =
208
- {env_python} -m coverage erase
209
- -{env_python} -m coverage run -m tests {posargs}
210
- {env_python} -m coverage report
211
- {env_python} -m coverage html
212
- deps =
213
- {[testenv]deps}
214
- coverage>=7.6.4
215
- covdefaults>=2.3.0
216
- diff-cover>=9.2.0
217
-
218
- [testenv:docs]
219
- base_python = {[base]base_python}
220
- commands =
221
- {env_python} -m sphinxlint --ignore .tox --ignore build --ignore dist
222
- #{env_python} -m sphinx.apidoc -f {envsitepackagesdir}/{[base]package_subdir}
223
- {env_python} -m sphinx.cmd.build -W -a -b html -E ./docs ./build/docs/html
224
- {env_python} -m sphinx.cmd.build -W -a -b linkcheck ./docs ./build/docs/html
225
- {env_python} -m sphinx.cmd.build -W -a -b doctest ./docs ./build/docs/html
226
- extras = doc
227
- deps =
228
-
229
- [testenv:build]
230
- depends = py{39,310,311,312,313}, pypy{39,310}, docs
231
- base_python = {[base]base_python}
232
- set_env =
233
- {[testenv]set_env}
234
- PKG_PVER=`{env_python} -W ignore -c "import platform ; print(''.join(platform.python_version_tuple()[:2]), end='')" 2> nul`
235
- PKG_NAME=`{env_python} -W ignore -c "import setuptools ; setuptools._distutils.core._setup_stop_after='config' ; print(setuptools.setup().metadata.get_name(), end='')" 2> nul`
236
- PKG_DIST=`{env_python} -W ignore -c "import setuptools ; setuptools._distutils.core._setup_stop_after='config' ; print(setuptools.setup().metadata.get_fullname(), end='')" 2> nul`
237
- commands =
238
- {env_python} -W ignore -c "from setuptools import setup ; setup()" --quiet sdist --formats=zip
239
- {env_python} -W ignore -c "from setuptools import setup ; setup()" --quiet bdist_wheel
240
- # check out for PyPi
241
- {env_python} -m twine check dist/*
242
- deps =
243
- {[testenv]deps}
244
- twine>=5.1.1
245
-
246
- [testenv:publish]
247
- depends = build
248
- base_python = {[base]base_python}
249
- skip_install = true
250
- commands =
251
- # publish on PyPi
252
- {env_python} -m twine upload dist/*
253
- extras =
254
- deps =
255
- twine>=5.1.1
256
-
257
- [testenv:lint]
258
- base_python = {[base]base_python}
259
- commands =
260
- {env_python} -m flake8 {envsitepackagesdir}/{[base]package_subdir}/
261
- extras =
262
- deps =
263
- {[testenv]deps}
264
- flake8>=7.1.1
265
- flake8-pyproject>=1.2.3
266
- flake8-docstrings>=1.7.0
267
- pep8-naming>=0.14.1
268
- flake8-builtins>=2.5.0
269
- flake8-deprecated>=2.2.1
270
- """
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes