renumerate 1.2.2__zip → 1.2.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.

Potentially problematic release.


This version of renumerate might be problematic. Click here for more details.

Files changed (28) hide show
  1. {renumerate-1.2.2 → renumerate-1.2.3}/CHANGES.rst +7 -15
  2. {renumerate-1.2.2 → renumerate-1.2.3}/PKG-INFO +10 -18
  3. renumerate-1.2.3/pyproject.toml +280 -0
  4. {renumerate-1.2.2 → renumerate-1.2.3}/src/renumerate.egg-info/PKG-INFO +10 -18
  5. {renumerate-1.2.2 → renumerate-1.2.3}/src/renumerate.egg-info/requires.txt +2 -2
  6. {renumerate-1.2.2 → renumerate-1.2.3}/tests/test_main.py +4 -0
  7. renumerate-1.2.2/pyproject.toml +0 -270
  8. {renumerate-1.2.2 → renumerate-1.2.3}/.readthedocs.yml +0 -0
  9. {renumerate-1.2.2 → renumerate-1.2.3}/LICENSE +0 -0
  10. {renumerate-1.2.2 → renumerate-1.2.3}/MANIFEST.in +0 -0
  11. {renumerate-1.2.2 → renumerate-1.2.3}/README.rst +0 -0
  12. {renumerate-1.2.2 → renumerate-1.2.3}/docs/CHANGES.rst +0 -0
  13. {renumerate-1.2.2 → renumerate-1.2.3}/docs/README.rst +0 -0
  14. {renumerate-1.2.2 → renumerate-1.2.3}/docs/_static/.keep +0 -0
  15. {renumerate-1.2.2 → renumerate-1.2.3}/docs/_templates/.keep +0 -0
  16. {renumerate-1.2.2 → renumerate-1.2.3}/docs/conf.py +0 -0
  17. {renumerate-1.2.2 → renumerate-1.2.3}/docs/index.rst +0 -0
  18. {renumerate-1.2.2 → renumerate-1.2.3}/setup.cfg +0 -0
  19. {renumerate-1.2.2 → renumerate-1.2.3}/src/renumerate/__about__.py +0 -0
  20. {renumerate-1.2.2 → renumerate-1.2.3}/src/renumerate/__init__.py +0 -0
  21. {renumerate-1.2.2 → renumerate-1.2.3}/src/renumerate/_renumerate.py +0 -0
  22. {renumerate-1.2.2 → renumerate-1.2.3}/src/renumerate.egg-info/SOURCES.txt +0 -0
  23. {renumerate-1.2.2 → renumerate-1.2.3}/src/renumerate.egg-info/dependency_links.txt +0 -0
  24. {renumerate-1.2.2 → renumerate-1.2.3}/src/renumerate.egg-info/top_level.txt +0 -0
  25. {renumerate-1.2.2 → renumerate-1.2.3}/src/renumerate.egg-info/zip-safe +0 -0
  26. {renumerate-1.2.2 → renumerate-1.2.3}/tests/__init__.py +0 -0
  27. {renumerate-1.2.2 → renumerate-1.2.3}/tests/__main__.py +0 -0
  28. {renumerate-1.2.2 → renumerate-1.2.3}/tests/data/.keep +0 -0
@@ -1,15 +1,19 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
- 1.2.2 (2024-10-30)
4
+ 1.2.3 (2024-11-13)
5
5
  ------------------
6
+ - More unittests.
7
+ - 100% code coverage.
8
+ - 100% code linting.
9
+ - Tox configuration is now in native (toml) format.
6
10
  - Setup (dependencies) update.
7
11
 
8
- 1.2.1 (2024-10-09)
12
+ 1.2.2 (2024-10-30)
9
13
  ------------------
10
14
  - Setup (dependencies) update.
11
15
 
12
- 1.2.0 (2024-09-30)
16
+ 1.2.1 (2024-10-09)
13
17
  ------------------
14
18
  - Drop support for Python 3.8
15
19
  - Setup (dependencies) update.
@@ -19,10 +23,6 @@ Changelog
19
23
  - Add support for Python 3.13
20
24
  - Setup (dependencies) update.
21
25
 
22
- 1.1.13 (2024-07-15)
23
- -------------------
24
- - Setup (dependencies) update.
25
-
26
26
  1.1.12 (2024-01-26)
27
27
  -------------------
28
28
  - Setup update (now based on tox >= 4.0).
@@ -34,10 +34,6 @@ Changelog
34
34
 
35
35
  1.1.9 (2022-08-22)
36
36
  ------------------
37
- - Setup update.
38
-
39
- 1.1.8 (2022-07-24)
40
- ------------------
41
37
  - Add support for Python 3.10 and 3.11
42
38
  - Setup update (currently based mainly on pyproject.toml).
43
39
 
@@ -47,10 +43,6 @@ Changelog
47
43
  - Copyright year update.
48
44
  - Setup update.
49
45
 
50
- 1.1.6 (2021-12-11)
51
- ------------------
52
- - Setup update.
53
-
54
46
  1.1.5 (2021-07-20)
55
47
  ------------------
56
48
  - Setup general update and improvement.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: renumerate
3
- Version: 1.2.2
3
+ Version: 1.2.3
4
4
  Summary: Reverse enumerate.
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"
@@ -176,15 +176,19 @@ Authors
176
176
  Changelog
177
177
  =========
178
178
 
179
- 1.2.2 (2024-10-30)
179
+ 1.2.3 (2024-11-13)
180
180
  ------------------
181
+ - More unittests.
182
+ - 100% code coverage.
183
+ - 100% code linting.
184
+ - Tox configuration is now in native (toml) format.
181
185
  - Setup (dependencies) update.
182
186
 
183
- 1.2.1 (2024-10-09)
187
+ 1.2.2 (2024-10-30)
184
188
  ------------------
185
189
  - Setup (dependencies) update.
186
190
 
187
- 1.2.0 (2024-09-30)
191
+ 1.2.1 (2024-10-09)
188
192
  ------------------
189
193
  - Drop support for Python 3.8
190
194
  - Setup (dependencies) update.
@@ -194,10 +198,6 @@ Changelog
194
198
  - Add support for Python 3.13
195
199
  - Setup (dependencies) update.
196
200
 
197
- 1.1.13 (2024-07-15)
198
- -------------------
199
- - Setup (dependencies) update.
200
-
201
201
  1.1.12 (2024-01-26)
202
202
  -------------------
203
203
  - Setup update (now based on tox >= 4.0).
@@ -209,10 +209,6 @@ Changelog
209
209
 
210
210
  1.1.9 (2022-08-22)
211
211
  ------------------
212
- - Setup update.
213
-
214
- 1.1.8 (2022-07-24)
215
- ------------------
216
212
  - Add support for Python 3.10 and 3.11
217
213
  - Setup update (currently based mainly on pyproject.toml).
218
214
 
@@ -222,10 +218,6 @@ Changelog
222
218
  - Copyright year update.
223
219
  - Setup update.
224
220
 
225
- 1.1.6 (2021-12-11)
226
- ------------------
227
- - Setup update.
228
-
229
221
  1.1.5 (2021-07-20)
230
222
  ------------------
231
223
  - Setup general update and improvement.
@@ -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 = 'renumerate'
10
+ version = '1.2.3'
11
+ description = 'Reverse enumerate.'
12
+ urls.Homepage = 'https://pypi.org/project/renumerate/'
13
+ urls.Documentation = 'https://renumerate.readthedocs.io/'
14
+ urls.Download = 'https://pypi.org/project/renumerate/'
15
+ urls.Source = 'https://github.com/karpierz/renumerate'
16
+ urls.Issues = 'https://github.com/karpierz/renumerate/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 = ['renumerate', 'enumerate']
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
+ #'renumerate' = 'renumerate.__main__:main'
70
+
71
+ [project.gui-scripts]
72
+ #'renumerate-gui' = 'renumerate:main_gui'
73
+
74
+ #[project.entry-points.'renumerate.magical']
75
+ #epoint = 'renumerate: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
+ #'renumerate.tests' = 'tests'
93
+
94
+ [tool.setuptools.package-data]
95
+ renumerate = [
96
+ ]
97
+
98
+ [tool.setuptools.exclude-package-data]
99
+ '*' = ['*.c','*.h','*.cpp','*.hpp','*.cxx','*.hxx','*.pyx','*.pxd']
100
+ renumerate = [
101
+ ]
102
+
103
+ [tool.coverage]
104
+ # run
105
+ run.source = [
106
+ 'renumerate',
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] # renumerate
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 = 'renumerate'
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: renumerate
3
- Version: 1.2.2
3
+ Version: 1.2.3
4
4
  Summary: Reverse enumerate.
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"
@@ -176,15 +176,19 @@ Authors
176
176
  Changelog
177
177
  =========
178
178
 
179
- 1.2.2 (2024-10-30)
179
+ 1.2.3 (2024-11-13)
180
180
  ------------------
181
+ - More unittests.
182
+ - 100% code coverage.
183
+ - 100% code linting.
184
+ - Tox configuration is now in native (toml) format.
181
185
  - Setup (dependencies) update.
182
186
 
183
- 1.2.1 (2024-10-09)
187
+ 1.2.2 (2024-10-30)
184
188
  ------------------
185
189
  - Setup (dependencies) update.
186
190
 
187
- 1.2.0 (2024-09-30)
191
+ 1.2.1 (2024-10-09)
188
192
  ------------------
189
193
  - Drop support for Python 3.8
190
194
  - Setup (dependencies) update.
@@ -194,10 +198,6 @@ Changelog
194
198
  - Add support for Python 3.13
195
199
  - Setup (dependencies) update.
196
200
 
197
- 1.1.13 (2024-07-15)
198
- -------------------
199
- - Setup (dependencies) update.
200
-
201
201
  1.1.12 (2024-01-26)
202
202
  -------------------
203
203
  - Setup update (now based on tox >= 4.0).
@@ -209,10 +209,6 @@ Changelog
209
209
 
210
210
  1.1.9 (2022-08-22)
211
211
  ------------------
212
- - Setup update.
213
-
214
- 1.1.8 (2022-07-24)
215
- ------------------
216
212
  - Add support for Python 3.10 and 3.11
217
213
  - Setup update (currently based mainly on pyproject.toml).
218
214
 
@@ -222,10 +218,6 @@ Changelog
222
218
  - Copyright year update.
223
219
  - Setup update.
224
220
 
225
- 1.1.6 (2021-12-11)
226
- ------------------
227
- - Setup update.
228
-
229
221
  1.1.5 (2021-07-20)
230
222
  ------------------
231
223
  - Setup general update and improvement.
@@ -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
@@ -27,6 +27,8 @@ class MainTestCase(unittest.TestCase):
27
27
  ((4, "Winter"), (3, "Fall"), (2, "Summer"), (1, "Spring")))
28
28
  self.assertTupleEqual(tuple(renumerate(self.seasons, end=2)),
29
29
  ((5, "Winter"), (4, "Fall"), (3, "Summer"), (2, "Spring")))
30
+ with self.assertRaises(TypeError):
31
+ renumerate(self.seasons, start=4, end=2)
30
32
 
31
33
  def test_renumerate_as_list(self):
32
34
  self.assertListEqual(list(renumerate(self.seasons)),
@@ -35,3 +37,5 @@ class MainTestCase(unittest.TestCase):
35
37
  [(4, "Winter"), (3, "Fall"), (2, "Summer"), (1, "Spring")])
36
38
  self.assertListEqual(list(renumerate(self.seasons, end=2)),
37
39
  [(5, "Winter"), (4, "Fall"), (3, "Summer"), (2, "Spring")])
40
+ with self.assertRaises(TypeError):
41
+ renumerate(self.seasons, start=4, end=2)
@@ -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 = 'renumerate'
10
- version = '1.2.2'
11
- description = 'Reverse enumerate.'
12
- urls.Homepage = 'https://pypi.org/project/renumerate/'
13
- urls.Documentation = 'https://renumerate.readthedocs.io/'
14
- urls.Download = 'https://pypi.org/project/renumerate/'
15
- urls.Source = 'https://github.com/karpierz/renumerate'
16
- urls.Issues = 'https://github.com/karpierz/renumerate/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 = ['renumerate', 'enumerate']
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
- #'renumerate' = 'renumerate.__main__:main'
71
-
72
- [project.gui-scripts]
73
- #'renumerate-gui' = 'renumerate:main_gui'
74
-
75
- #[project.entry-points.'renumerate.magical']
76
- #epoint = 'renumerate: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
- #'renumerate.tests' = 'tests'
94
-
95
- [tool.setuptools.package-data]
96
- renumerate = [
97
- ]
98
-
99
- [tool.setuptools.exclude-package-data]
100
- '*' = ['*.c','*.h','*.cpp','*.hpp','*.cxx','*.hxx','*.pyx','*.pxd']
101
- renumerate = [
102
- ]
103
-
104
- [tool.coverage.run]
105
- source = [
106
- 'renumerate',
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 = renumerate
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