renumerate 1.1.8__tar.gz → 1.2.5__tar.gz
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.
- renumerate-1.2.5/.readthedocs.yml +15 -0
- {renumerate-1.1.8 → renumerate-1.2.5}/CHANGES.rst +42 -5
- {renumerate-1.1.8 → renumerate-1.2.5}/LICENSE +1 -1
- {renumerate-1.1.8 → renumerate-1.2.5}/MANIFEST.in +2 -3
- {renumerate-1.1.8 → renumerate-1.2.5}/PKG-INFO +68 -19
- {renumerate-1.1.8 → renumerate-1.2.5}/README.rst +6 -6
- {renumerate-1.1.8 → renumerate-1.2.5}/docs/conf.py +3 -1
- renumerate-1.2.5/pyproject.toml +281 -0
- renumerate-1.2.5/setup.cfg +4 -0
- renumerate-1.2.5/src/renumerate/__about__.py +4 -0
- renumerate-1.2.5/src/renumerate/__init__.py +6 -0
- {renumerate-1.1.8 → renumerate-1.2.5}/src/renumerate/_renumerate.py +5 -5
- {renumerate-1.1.8 → renumerate-1.2.5}/src/renumerate.egg-info/PKG-INFO +68 -19
- {renumerate-1.1.8 → renumerate-1.2.5}/src/renumerate.egg-info/SOURCES.txt +1 -2
- renumerate-1.2.5/src/renumerate.egg-info/requires.txt +17 -0
- {renumerate-1.1.8 → renumerate-1.2.5}/tests/__init__.py +2 -3
- {renumerate-1.1.8 → renumerate-1.2.5}/tests/__main__.py +2 -3
- renumerate-1.1.8/tests/test_renumerate.py → renumerate-1.2.5/tests/test_main.py +7 -4
- renumerate-1.1.8/.readthedocs.yml +0 -9
- renumerate-1.1.8/pyproject.toml +0 -154
- renumerate-1.1.8/setup.cfg +0 -115
- renumerate-1.1.8/src/renumerate/__about__.py +0 -6
- renumerate-1.1.8/src/renumerate/__init__.py +0 -7
- renumerate-1.1.8/src/renumerate.egg-info/requires.txt +0 -17
- {renumerate-1.1.8 → renumerate-1.2.5}/docs/CHANGES.rst +0 -0
- {renumerate-1.1.8 → renumerate-1.2.5}/docs/README.rst +0 -0
- {renumerate-1.1.8 → renumerate-1.2.5}/docs/_static/.keep +0 -0
- {renumerate-1.1.8 → renumerate-1.2.5}/docs/_templates/.keep +0 -0
- {renumerate-1.1.8 → renumerate-1.2.5}/docs/index.rst +0 -0
- {renumerate-1.1.8 → renumerate-1.2.5}/src/renumerate.egg-info/dependency_links.txt +0 -0
- {renumerate-1.1.8 → renumerate-1.2.5}/src/renumerate.egg-info/top_level.txt +0 -0
- {renumerate-1.1.8 → renumerate-1.2.5}/src/renumerate.egg-info/zip-safe +0 -0
- {renumerate-1.1.8 → renumerate-1.2.5}/tests/data/.keep +0 -0
|
@@ -1,7 +1,48 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
-
1.
|
|
4
|
+
1.2.5 (2025-01-20)
|
|
5
|
+
------------------
|
|
6
|
+
- Copyright year update.
|
|
7
|
+
- Setup (dependencies) update.
|
|
8
|
+
|
|
9
|
+
1.2.4 (2024-12-13)
|
|
10
|
+
------------------
|
|
11
|
+
- Source distribution (\*.tar.gz now) is compliant with PEP-0625.
|
|
12
|
+
- Setup (dependencies) update.
|
|
13
|
+
|
|
14
|
+
1.2.3 (2024-11-13)
|
|
15
|
+
------------------
|
|
16
|
+
- More unittests.
|
|
17
|
+
- 100% code linting.
|
|
18
|
+
- 100% code coverage.
|
|
19
|
+
- Tox configuration is now in native (toml) format.
|
|
20
|
+
- Setup (dependencies) update.
|
|
21
|
+
|
|
22
|
+
1.2.2 (2024-10-30)
|
|
23
|
+
------------------
|
|
24
|
+
- Setup (dependencies) update.
|
|
25
|
+
|
|
26
|
+
1.2.1 (2024-10-09)
|
|
27
|
+
------------------
|
|
28
|
+
- Drop support for Python 3.8
|
|
29
|
+
- Setup (dependencies) update.
|
|
30
|
+
|
|
31
|
+
1.1.14 (2024-08-13)
|
|
32
|
+
-------------------
|
|
33
|
+
- Add support for Python 3.13
|
|
34
|
+
- Setup (dependencies) update.
|
|
35
|
+
|
|
36
|
+
1.1.12 (2024-01-26)
|
|
37
|
+
-------------------
|
|
38
|
+
- Setup update (now based on tox >= 4.0).
|
|
39
|
+
- Cleanup.
|
|
40
|
+
|
|
41
|
+
1.1.10 (2022-10-18)
|
|
42
|
+
-------------------
|
|
43
|
+
- Tox configuration has been moved to pyproject.toml
|
|
44
|
+
|
|
45
|
+
1.1.9 (2022-08-22)
|
|
5
46
|
------------------
|
|
6
47
|
- Add support for Python 3.10 and 3.11
|
|
7
48
|
- Setup update (currently based mainly on pyproject.toml).
|
|
@@ -12,10 +53,6 @@ Changelog
|
|
|
12
53
|
- Copyright year update.
|
|
13
54
|
- Setup update.
|
|
14
55
|
|
|
15
|
-
1.1.6 (2021-12-11)
|
|
16
|
-
------------------
|
|
17
|
-
- Setup update.
|
|
18
|
-
|
|
19
56
|
1.1.5 (2021-07-20)
|
|
20
57
|
------------------
|
|
21
58
|
- Setup general update and improvement.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: renumerate
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.5
|
|
4
4
|
Summary: Reverse enumerate.
|
|
5
5
|
Author: Adam Karpierz
|
|
6
6
|
Author-email: adam@karpierz.net
|
|
7
7
|
Maintainer: Adam Karpierz
|
|
8
8
|
Maintainer-email: adam@karpierz.net
|
|
9
|
-
License: zlib/libpng License ; https://opensource.org/
|
|
9
|
+
License: zlib/libpng License ; https://opensource.org/license/zlib
|
|
10
10
|
Project-URL: Homepage, https://pypi.org/project/renumerate/
|
|
11
11
|
Project-URL: Documentation, https://renumerate.readthedocs.io/
|
|
12
12
|
Project-URL: Download, https://pypi.org/project/renumerate/
|
|
@@ -21,21 +21,33 @@ Classifier: Operating System :: OS Independent
|
|
|
21
21
|
Classifier: Natural Language :: Polish
|
|
22
22
|
Classifier: Programming Language :: Python
|
|
23
23
|
Classifier: Programming Language :: Python :: 3
|
|
24
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
25
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
26
24
|
Classifier: Programming Language :: Python :: 3.9
|
|
27
25
|
Classifier: Programming Language :: Python :: 3.10
|
|
28
26
|
Classifier: Programming Language :: Python :: 3.11
|
|
27
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
28
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
29
29
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
30
30
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
31
31
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
32
|
-
Classifier: Programming Language :: Python :: Implementation :: Stackless
|
|
33
32
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
34
|
-
Requires-Python: <4.0.0,>=3.
|
|
33
|
+
Requires-Python: <4.0.0,>=3.9.0
|
|
35
34
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
35
|
+
License-File: LICENSE
|
|
36
|
+
Requires-Dist: setuptools>=75.8.0
|
|
37
|
+
Requires-Dist: pkg-about>=1.2.7
|
|
36
38
|
Provides-Extra: doc
|
|
39
|
+
Requires-Dist: Sphinx>=7.4.7; extra == "doc"
|
|
40
|
+
Requires-Dist: sphinx-autodoc-typehints>=2.3.0; extra == "doc"
|
|
41
|
+
Requires-Dist: sphinx-toolbox>=3.8.1; extra == "doc"
|
|
42
|
+
Requires-Dist: sphinx-tabs>=3.4.5; extra == "doc"
|
|
43
|
+
Requires-Dist: sphinx-copybutton>=0.5.2; extra == "doc"
|
|
44
|
+
Requires-Dist: sphinxcontrib-spelling>=8.0.0; extra == "doc"
|
|
45
|
+
Requires-Dist: sphinx-lint>=1.0.0; extra == "doc"
|
|
46
|
+
Requires-Dist: restructuredtext-lint>=1.4.0; extra == "doc"
|
|
47
|
+
Requires-Dist: nbsphinx>=0.9.6; extra == "doc"
|
|
37
48
|
Provides-Extra: test
|
|
38
|
-
|
|
49
|
+
Requires-Dist: deepdiff>=8.1.1; extra == "test"
|
|
50
|
+
Requires-Dist: rich>=13.9.4; extra == "test"
|
|
39
51
|
|
|
40
52
|
renumerate
|
|
41
53
|
==========
|
|
@@ -94,10 +106,9 @@ Installation
|
|
|
94
106
|
|
|
95
107
|
Prerequisites:
|
|
96
108
|
|
|
97
|
-
+ Python 3.
|
|
109
|
+
+ Python 3.9 or higher
|
|
98
110
|
|
|
99
111
|
* https://www.python.org/
|
|
100
|
-
* 3.7 is a primary test environment.
|
|
101
112
|
|
|
102
113
|
+ pip and setuptools
|
|
103
114
|
|
|
@@ -119,7 +130,7 @@ Prerequisites:
|
|
|
119
130
|
|
|
120
131
|
python -m pip install --upgrade tox
|
|
121
132
|
|
|
122
|
-
Visit `
|
|
133
|
+
Visit `Development page`_.
|
|
123
134
|
|
|
124
135
|
Installation from sources:
|
|
125
136
|
|
|
@@ -144,9 +155,9 @@ or on development mode:
|
|
|
144
155
|
License
|
|
145
156
|
=======
|
|
146
157
|
|
|
147
|
-
|
|
|
158
|
+
| |copyright|
|
|
148
159
|
| Licensed under the zlib/libpng License
|
|
149
|
-
| https://opensource.org/
|
|
160
|
+
| https://opensource.org/license/zlib
|
|
150
161
|
| Please refer to the accompanying LICENSE file.
|
|
151
162
|
|
|
152
163
|
Authors
|
|
@@ -156,8 +167,9 @@ Authors
|
|
|
156
167
|
|
|
157
168
|
.. |package| replace:: renumerate
|
|
158
169
|
.. |package_bold| replace:: **renumerate**
|
|
170
|
+
.. |copyright| replace:: Copyright (c) 2016-2025 Adam Karpierz
|
|
159
171
|
.. |respository| replace:: https://github.com/karpierz/renumerate.git
|
|
160
|
-
..
|
|
172
|
+
.. _Development page: https://github.com/karpierz/renumerate
|
|
161
173
|
.. _PyPI record: https://pypi.org/project/renumerate/
|
|
162
174
|
.. _Documentation: https://renumerate.readthedocs.io/
|
|
163
175
|
.. _enumerate: https://docs.python.org/library/functions.html#enumerate
|
|
@@ -165,7 +177,48 @@ Authors
|
|
|
165
177
|
Changelog
|
|
166
178
|
=========
|
|
167
179
|
|
|
168
|
-
1.
|
|
180
|
+
1.2.5 (2025-01-20)
|
|
181
|
+
------------------
|
|
182
|
+
- Copyright year update.
|
|
183
|
+
- Setup (dependencies) update.
|
|
184
|
+
|
|
185
|
+
1.2.4 (2024-12-13)
|
|
186
|
+
------------------
|
|
187
|
+
- Source distribution (\*.tar.gz now) is compliant with PEP-0625.
|
|
188
|
+
- Setup (dependencies) update.
|
|
189
|
+
|
|
190
|
+
1.2.3 (2024-11-13)
|
|
191
|
+
------------------
|
|
192
|
+
- More unittests.
|
|
193
|
+
- 100% code linting.
|
|
194
|
+
- 100% code coverage.
|
|
195
|
+
- Tox configuration is now in native (toml) format.
|
|
196
|
+
- Setup (dependencies) update.
|
|
197
|
+
|
|
198
|
+
1.2.2 (2024-10-30)
|
|
199
|
+
------------------
|
|
200
|
+
- Setup (dependencies) update.
|
|
201
|
+
|
|
202
|
+
1.2.1 (2024-10-09)
|
|
203
|
+
------------------
|
|
204
|
+
- Drop support for Python 3.8
|
|
205
|
+
- Setup (dependencies) update.
|
|
206
|
+
|
|
207
|
+
1.1.14 (2024-08-13)
|
|
208
|
+
-------------------
|
|
209
|
+
- Add support for Python 3.13
|
|
210
|
+
- Setup (dependencies) update.
|
|
211
|
+
|
|
212
|
+
1.1.12 (2024-01-26)
|
|
213
|
+
-------------------
|
|
214
|
+
- Setup update (now based on tox >= 4.0).
|
|
215
|
+
- Cleanup.
|
|
216
|
+
|
|
217
|
+
1.1.10 (2022-10-18)
|
|
218
|
+
-------------------
|
|
219
|
+
- Tox configuration has been moved to pyproject.toml
|
|
220
|
+
|
|
221
|
+
1.1.9 (2022-08-22)
|
|
169
222
|
------------------
|
|
170
223
|
- Add support for Python 3.10 and 3.11
|
|
171
224
|
- Setup update (currently based mainly on pyproject.toml).
|
|
@@ -176,10 +229,6 @@ Changelog
|
|
|
176
229
|
- Copyright year update.
|
|
177
230
|
- Setup update.
|
|
178
231
|
|
|
179
|
-
1.1.6 (2021-12-11)
|
|
180
|
-
------------------
|
|
181
|
-
- Setup update.
|
|
182
|
-
|
|
183
232
|
1.1.5 (2021-07-20)
|
|
184
233
|
------------------
|
|
185
234
|
- Setup general update and improvement.
|
|
@@ -55,10 +55,9 @@ Installation
|
|
|
55
55
|
|
|
56
56
|
Prerequisites:
|
|
57
57
|
|
|
58
|
-
+ Python 3.
|
|
58
|
+
+ Python 3.9 or higher
|
|
59
59
|
|
|
60
60
|
* https://www.python.org/
|
|
61
|
-
* 3.7 is a primary test environment.
|
|
62
61
|
|
|
63
62
|
+ pip and setuptools
|
|
64
63
|
|
|
@@ -80,7 +79,7 @@ Prerequisites:
|
|
|
80
79
|
|
|
81
80
|
python -m pip install --upgrade tox
|
|
82
81
|
|
|
83
|
-
Visit `
|
|
82
|
+
Visit `Development page`_.
|
|
84
83
|
|
|
85
84
|
Installation from sources:
|
|
86
85
|
|
|
@@ -105,9 +104,9 @@ or on development mode:
|
|
|
105
104
|
License
|
|
106
105
|
=======
|
|
107
106
|
|
|
108
|
-
|
|
|
107
|
+
| |copyright|
|
|
109
108
|
| Licensed under the zlib/libpng License
|
|
110
|
-
| https://opensource.org/
|
|
109
|
+
| https://opensource.org/license/zlib
|
|
111
110
|
| Please refer to the accompanying LICENSE file.
|
|
112
111
|
|
|
113
112
|
Authors
|
|
@@ -117,8 +116,9 @@ Authors
|
|
|
117
116
|
|
|
118
117
|
.. |package| replace:: renumerate
|
|
119
118
|
.. |package_bold| replace:: **renumerate**
|
|
119
|
+
.. |copyright| replace:: Copyright (c) 2016-2025 Adam Karpierz
|
|
120
120
|
.. |respository| replace:: https://github.com/karpierz/renumerate.git
|
|
121
|
-
..
|
|
121
|
+
.. _Development page: https://github.com/karpierz/renumerate
|
|
122
122
|
.. _PyPI record: https://pypi.org/project/renumerate/
|
|
123
123
|
.. _Documentation: https://renumerate.readthedocs.io/
|
|
124
124
|
.. _enumerate: https://docs.python.org/library/functions.html#enumerate
|
|
@@ -34,7 +34,7 @@ release = about.__version__
|
|
|
34
34
|
|
|
35
35
|
# If your documentation needs a minimal Sphinx version, state it here.
|
|
36
36
|
#
|
|
37
|
-
needs_sphinx = '
|
|
37
|
+
needs_sphinx = '7.4.7'
|
|
38
38
|
|
|
39
39
|
# Add any Sphinx extension module names here, as strings. They can be
|
|
40
40
|
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
|
@@ -48,6 +48,8 @@ extensions = [
|
|
|
48
48
|
#'sphinx.ext.coverage',
|
|
49
49
|
'sphinx.ext.ifconfig',
|
|
50
50
|
'sphinx.ext.napoleon',
|
|
51
|
+
'sphinx_autodoc_typehints',
|
|
52
|
+
#'sphinx_toolbox',
|
|
51
53
|
'sphinx_tabs.tabs',
|
|
52
54
|
'sphinx_copybutton',
|
|
53
55
|
'sphinxcontrib.spelling',
|
|
@@ -0,0 +1,281 @@
|
|
|
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.8.0', 'packaging>=24.2.0', 'tox>=4.23.2']
|
|
7
|
+
|
|
8
|
+
[project]
|
|
9
|
+
name = 'renumerate'
|
|
10
|
+
version = '1.2.5'
|
|
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.8.0',
|
|
49
|
+
'pkg-about>=1.2.7',
|
|
50
|
+
# others
|
|
51
|
+
]
|
|
52
|
+
dynamic = ['readme']
|
|
53
|
+
optional-dependencies.'doc' = [
|
|
54
|
+
'Sphinx>=7.4.7',
|
|
55
|
+
'sphinx-autodoc-typehints>=2.3.0',
|
|
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.6',
|
|
63
|
+
]
|
|
64
|
+
optional-dependencies.'test' = [
|
|
65
|
+
'deepdiff>=8.1.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]
|
|
105
|
+
# run
|
|
106
|
+
run.source = [
|
|
107
|
+
'renumerate',
|
|
108
|
+
'tests',
|
|
109
|
+
]
|
|
110
|
+
run.omit = [
|
|
111
|
+
]
|
|
112
|
+
run.branch = true
|
|
113
|
+
run.data_file = '.tox/coverage/.coverage'
|
|
114
|
+
run.plugins = ['covdefaults']
|
|
115
|
+
# report
|
|
116
|
+
report.exclude_lines = [
|
|
117
|
+
# Regexes
|
|
118
|
+
# Have to re-enable the standard pragma
|
|
119
|
+
'^\s*if\s+self\.debug\s*:',
|
|
120
|
+
'^\s*if\s+__debug__\s*:',
|
|
121
|
+
'^\s*if\s+(0|False)\s*:',
|
|
122
|
+
'''if\s+__name__.*\s*==\s*['"]__main__['"]\s*:''',
|
|
123
|
+
'^\s*@unittest\.skip\(',
|
|
124
|
+
'^\s*@unittest\.skipIf\(sys\.platform\.startswith\("win"\)',
|
|
125
|
+
]
|
|
126
|
+
report.omit = [
|
|
127
|
+
'tests/run.py',
|
|
128
|
+
]
|
|
129
|
+
report.skip_covered = false
|
|
130
|
+
# html report
|
|
131
|
+
html.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] # renumerate
|
|
158
|
+
env_list = [{replace='ref',of=['tool','tox','labels','py'],extend=true}, 'coverage', 'lint', 'docs']
|
|
159
|
+
min_version = '4.23.2'
|
|
160
|
+
skip_missing_interpreters = true
|
|
161
|
+
requires = [
|
|
162
|
+
{replace='ref',of=['tool','tox','_','base','deps'],extend=true},
|
|
163
|
+
'virtualenv>=20.29.1',
|
|
164
|
+
'tox-backtick>=0.5.6',
|
|
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.8.0',
|
|
180
|
+
]
|
|
181
|
+
package_subdir = 'renumerate'
|
|
182
|
+
|
|
183
|
+
[tool.tox.env_run_base]
|
|
184
|
+
description = "Run tests under {base_python}"
|
|
185
|
+
set_env.PYTHONDONTWRITEBYTECODE = '1'
|
|
186
|
+
set_env.PKG_PVER = "`python -W ignore -c \"import platform ; print(''.join(platform.python_version_tuple()[:2]), end='')\" 2> nul`"
|
|
187
|
+
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`"
|
|
188
|
+
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`"
|
|
189
|
+
commands = [
|
|
190
|
+
['{env_python}','--version'],
|
|
191
|
+
['{env_python}','-m','tests',{replace='posargs',extend=true}],
|
|
192
|
+
]
|
|
193
|
+
extras = ['test']
|
|
194
|
+
deps = [
|
|
195
|
+
{replace='ref',of=['tool','tox','_','base','deps'],extend=true},
|
|
196
|
+
]
|
|
197
|
+
|
|
198
|
+
[tool.tox.env.'prepare']
|
|
199
|
+
base_python = {replace='ref',of=['tool','tox','_','base','base_python']}
|
|
200
|
+
skip_install = true
|
|
201
|
+
allowlist_externals = [
|
|
202
|
+
'cmd',
|
|
203
|
+
'.build',
|
|
204
|
+
]
|
|
205
|
+
commands = [
|
|
206
|
+
['cmd','/C','if','exist','.build.cmd','.build.cmd'],
|
|
207
|
+
]
|
|
208
|
+
extras = []
|
|
209
|
+
deps = []
|
|
210
|
+
|
|
211
|
+
[tool.tox.env.'coverage']
|
|
212
|
+
base_python = {replace='ref',of=['tool','tox','_','base','base_python']}
|
|
213
|
+
commands = [
|
|
214
|
+
['{env_python}','-m','coverage','erase'],
|
|
215
|
+
['-','{env_python}','-m','coverage','run','-m','tests',{replace="posargs",extend=true}],
|
|
216
|
+
['-','{env_python}','-m','coverage','html'],
|
|
217
|
+
['{env_python}','-m','coverage','report'],
|
|
218
|
+
]
|
|
219
|
+
deps = [
|
|
220
|
+
{replace='ref',of=['tool','tox','env_run_base','deps'],extend=true},
|
|
221
|
+
'coverage>=7.6.10',
|
|
222
|
+
'covdefaults>=2.3.0',
|
|
223
|
+
'diff-cover>=9.2.0',
|
|
224
|
+
]
|
|
225
|
+
|
|
226
|
+
[tool.tox.env.'docs']
|
|
227
|
+
base_python = {replace='ref',of=['tool','tox','_','base','base_python']}
|
|
228
|
+
commands = [
|
|
229
|
+
['{env_python}','-m','sphinxlint','--ignore','.tox','--ignore','build','--ignore','dist'],
|
|
230
|
+
#['{env_python}','-m','sphinx.apidoc','-f','{envsitepackagesdir}/{[tool.tox._.base]package_subdir}'],
|
|
231
|
+
['{env_python}','-m','sphinx.cmd.build','-W','-a','-b','html','-E','./docs','./build/docs/html'],
|
|
232
|
+
['{env_python}','-m','sphinx.cmd.build','-W','-a','-b','linkcheck','./docs','./build/docs/html'],
|
|
233
|
+
['{env_python}','-m','sphinx.cmd.build','-W','-a','-b','doctest', './docs','./build/docs/html'],
|
|
234
|
+
]
|
|
235
|
+
extras = ['doc']
|
|
236
|
+
deps = [
|
|
237
|
+
{replace='ref',of=['tool','tox','_','base','deps'],extend=true},
|
|
238
|
+
]
|
|
239
|
+
|
|
240
|
+
[tool.tox.env.'build']
|
|
241
|
+
depends = [{replace='ref',of=['tool','tox','labels','py'],extend=true}, 'docs']
|
|
242
|
+
base_python = {replace='ref',of=['tool','tox','_','base','base_python']}
|
|
243
|
+
commands = [
|
|
244
|
+
['{env_python}','-W','ignore','-c','from setuptools import setup ; setup()','--quiet','sdist','--formats=gztar'],
|
|
245
|
+
['{env_python}','-W','ignore','-c','from setuptools import setup ; setup()','--quiet','bdist_wheel'],
|
|
246
|
+
# check out for PyPi
|
|
247
|
+
['{env_python}','-m','twine','check','dist/*'],
|
|
248
|
+
]
|
|
249
|
+
deps = [
|
|
250
|
+
{replace='ref',of=['tool','tox','env_run_base','deps'],extend=true},
|
|
251
|
+
'twine>=6.0.1',
|
|
252
|
+
]
|
|
253
|
+
|
|
254
|
+
[tool.tox.env.'publish']
|
|
255
|
+
depends = ['build']
|
|
256
|
+
base_python = {replace='ref',of=['tool','tox','_','base','base_python']}
|
|
257
|
+
skip_install = true
|
|
258
|
+
commands = [
|
|
259
|
+
# publish on PyPi
|
|
260
|
+
['{env_python}','-m','twine','upload','dist/*'],
|
|
261
|
+
]
|
|
262
|
+
extras = []
|
|
263
|
+
deps = [
|
|
264
|
+
'twine>=6.0.1',
|
|
265
|
+
]
|
|
266
|
+
|
|
267
|
+
[tool.tox.env.'lint']
|
|
268
|
+
base_python = {replace='ref',of=['tool','tox','_','base','base_python']}
|
|
269
|
+
commands = [
|
|
270
|
+
['{env_python}','-m','flake8','{envsitepackagesdir}/{[tool.tox._.base]package_subdir}/'],
|
|
271
|
+
]
|
|
272
|
+
extras = []
|
|
273
|
+
deps = [
|
|
274
|
+
{replace='ref',of=['tool','tox','env_run_base','deps'],extend=true},
|
|
275
|
+
'flake8>=7.1.1',
|
|
276
|
+
'flake8-pyproject>=1.2.3',
|
|
277
|
+
'flake8-docstrings>=1.7.0',
|
|
278
|
+
'pep8-naming>=0.14.1',
|
|
279
|
+
'flake8-builtins>=2.5.0',
|
|
280
|
+
'flake8-deprecated>=2.2.1',
|
|
281
|
+
]
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
# Copyright (c) 2016
|
|
2
|
-
#
|
|
3
|
-
# https://opensource.org/licenses/Zlib
|
|
1
|
+
# Copyright (c) 2016 Adam Karpierz
|
|
2
|
+
# SPDX-License-Identifier: Zlib
|
|
4
3
|
|
|
5
4
|
__all__ = ('renumerate',)
|
|
6
5
|
|
|
7
6
|
|
|
8
7
|
def renumerate(sequence, start=None, end=None):
|
|
9
|
-
"""
|
|
10
|
-
|
|
8
|
+
"""Reverse iterator for index, value of sequence.
|
|
9
|
+
|
|
10
|
+
renumerate(sequence[, start]|[, end]) -> reverse iterator
|
|
11
11
|
|
|
12
12
|
Return an enumerate object. sequence must be another object that has a
|
|
13
13
|
__reversed__() method or supports the sequence protocol (the __len__()
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: renumerate
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.5
|
|
4
4
|
Summary: Reverse enumerate.
|
|
5
5
|
Author: Adam Karpierz
|
|
6
6
|
Author-email: adam@karpierz.net
|
|
7
7
|
Maintainer: Adam Karpierz
|
|
8
8
|
Maintainer-email: adam@karpierz.net
|
|
9
|
-
License: zlib/libpng License ; https://opensource.org/
|
|
9
|
+
License: zlib/libpng License ; https://opensource.org/license/zlib
|
|
10
10
|
Project-URL: Homepage, https://pypi.org/project/renumerate/
|
|
11
11
|
Project-URL: Documentation, https://renumerate.readthedocs.io/
|
|
12
12
|
Project-URL: Download, https://pypi.org/project/renumerate/
|
|
@@ -21,21 +21,33 @@ Classifier: Operating System :: OS Independent
|
|
|
21
21
|
Classifier: Natural Language :: Polish
|
|
22
22
|
Classifier: Programming Language :: Python
|
|
23
23
|
Classifier: Programming Language :: Python :: 3
|
|
24
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
25
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
26
24
|
Classifier: Programming Language :: Python :: 3.9
|
|
27
25
|
Classifier: Programming Language :: Python :: 3.10
|
|
28
26
|
Classifier: Programming Language :: Python :: 3.11
|
|
27
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
28
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
29
29
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
30
30
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
31
31
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
32
|
-
Classifier: Programming Language :: Python :: Implementation :: Stackless
|
|
33
32
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
34
|
-
Requires-Python: <4.0.0,>=3.
|
|
33
|
+
Requires-Python: <4.0.0,>=3.9.0
|
|
35
34
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
35
|
+
License-File: LICENSE
|
|
36
|
+
Requires-Dist: setuptools>=75.8.0
|
|
37
|
+
Requires-Dist: pkg-about>=1.2.7
|
|
36
38
|
Provides-Extra: doc
|
|
39
|
+
Requires-Dist: Sphinx>=7.4.7; extra == "doc"
|
|
40
|
+
Requires-Dist: sphinx-autodoc-typehints>=2.3.0; extra == "doc"
|
|
41
|
+
Requires-Dist: sphinx-toolbox>=3.8.1; extra == "doc"
|
|
42
|
+
Requires-Dist: sphinx-tabs>=3.4.5; extra == "doc"
|
|
43
|
+
Requires-Dist: sphinx-copybutton>=0.5.2; extra == "doc"
|
|
44
|
+
Requires-Dist: sphinxcontrib-spelling>=8.0.0; extra == "doc"
|
|
45
|
+
Requires-Dist: sphinx-lint>=1.0.0; extra == "doc"
|
|
46
|
+
Requires-Dist: restructuredtext-lint>=1.4.0; extra == "doc"
|
|
47
|
+
Requires-Dist: nbsphinx>=0.9.6; extra == "doc"
|
|
37
48
|
Provides-Extra: test
|
|
38
|
-
|
|
49
|
+
Requires-Dist: deepdiff>=8.1.1; extra == "test"
|
|
50
|
+
Requires-Dist: rich>=13.9.4; extra == "test"
|
|
39
51
|
|
|
40
52
|
renumerate
|
|
41
53
|
==========
|
|
@@ -94,10 +106,9 @@ Installation
|
|
|
94
106
|
|
|
95
107
|
Prerequisites:
|
|
96
108
|
|
|
97
|
-
+ Python 3.
|
|
109
|
+
+ Python 3.9 or higher
|
|
98
110
|
|
|
99
111
|
* https://www.python.org/
|
|
100
|
-
* 3.7 is a primary test environment.
|
|
101
112
|
|
|
102
113
|
+ pip and setuptools
|
|
103
114
|
|
|
@@ -119,7 +130,7 @@ Prerequisites:
|
|
|
119
130
|
|
|
120
131
|
python -m pip install --upgrade tox
|
|
121
132
|
|
|
122
|
-
Visit `
|
|
133
|
+
Visit `Development page`_.
|
|
123
134
|
|
|
124
135
|
Installation from sources:
|
|
125
136
|
|
|
@@ -144,9 +155,9 @@ or on development mode:
|
|
|
144
155
|
License
|
|
145
156
|
=======
|
|
146
157
|
|
|
147
|
-
|
|
|
158
|
+
| |copyright|
|
|
148
159
|
| Licensed under the zlib/libpng License
|
|
149
|
-
| https://opensource.org/
|
|
160
|
+
| https://opensource.org/license/zlib
|
|
150
161
|
| Please refer to the accompanying LICENSE file.
|
|
151
162
|
|
|
152
163
|
Authors
|
|
@@ -156,8 +167,9 @@ Authors
|
|
|
156
167
|
|
|
157
168
|
.. |package| replace:: renumerate
|
|
158
169
|
.. |package_bold| replace:: **renumerate**
|
|
170
|
+
.. |copyright| replace:: Copyright (c) 2016-2025 Adam Karpierz
|
|
159
171
|
.. |respository| replace:: https://github.com/karpierz/renumerate.git
|
|
160
|
-
..
|
|
172
|
+
.. _Development page: https://github.com/karpierz/renumerate
|
|
161
173
|
.. _PyPI record: https://pypi.org/project/renumerate/
|
|
162
174
|
.. _Documentation: https://renumerate.readthedocs.io/
|
|
163
175
|
.. _enumerate: https://docs.python.org/library/functions.html#enumerate
|
|
@@ -165,7 +177,48 @@ Authors
|
|
|
165
177
|
Changelog
|
|
166
178
|
=========
|
|
167
179
|
|
|
168
|
-
1.
|
|
180
|
+
1.2.5 (2025-01-20)
|
|
181
|
+
------------------
|
|
182
|
+
- Copyright year update.
|
|
183
|
+
- Setup (dependencies) update.
|
|
184
|
+
|
|
185
|
+
1.2.4 (2024-12-13)
|
|
186
|
+
------------------
|
|
187
|
+
- Source distribution (\*.tar.gz now) is compliant with PEP-0625.
|
|
188
|
+
- Setup (dependencies) update.
|
|
189
|
+
|
|
190
|
+
1.2.3 (2024-11-13)
|
|
191
|
+
------------------
|
|
192
|
+
- More unittests.
|
|
193
|
+
- 100% code linting.
|
|
194
|
+
- 100% code coverage.
|
|
195
|
+
- Tox configuration is now in native (toml) format.
|
|
196
|
+
- Setup (dependencies) update.
|
|
197
|
+
|
|
198
|
+
1.2.2 (2024-10-30)
|
|
199
|
+
------------------
|
|
200
|
+
- Setup (dependencies) update.
|
|
201
|
+
|
|
202
|
+
1.2.1 (2024-10-09)
|
|
203
|
+
------------------
|
|
204
|
+
- Drop support for Python 3.8
|
|
205
|
+
- Setup (dependencies) update.
|
|
206
|
+
|
|
207
|
+
1.1.14 (2024-08-13)
|
|
208
|
+
-------------------
|
|
209
|
+
- Add support for Python 3.13
|
|
210
|
+
- Setup (dependencies) update.
|
|
211
|
+
|
|
212
|
+
1.1.12 (2024-01-26)
|
|
213
|
+
-------------------
|
|
214
|
+
- Setup update (now based on tox >= 4.0).
|
|
215
|
+
- Cleanup.
|
|
216
|
+
|
|
217
|
+
1.1.10 (2022-10-18)
|
|
218
|
+
-------------------
|
|
219
|
+
- Tox configuration has been moved to pyproject.toml
|
|
220
|
+
|
|
221
|
+
1.1.9 (2022-08-22)
|
|
169
222
|
------------------
|
|
170
223
|
- Add support for Python 3.10 and 3.11
|
|
171
224
|
- Setup update (currently based mainly on pyproject.toml).
|
|
@@ -176,10 +229,6 @@ Changelog
|
|
|
176
229
|
- Copyright year update.
|
|
177
230
|
- Setup update.
|
|
178
231
|
|
|
179
|
-
1.1.6 (2021-12-11)
|
|
180
|
-
------------------
|
|
181
|
-
- Setup update.
|
|
182
|
-
|
|
183
232
|
1.1.5 (2021-07-20)
|
|
184
233
|
------------------
|
|
185
234
|
- Setup general update and improvement.
|
|
@@ -4,7 +4,6 @@ LICENSE
|
|
|
4
4
|
MANIFEST.in
|
|
5
5
|
README.rst
|
|
6
6
|
pyproject.toml
|
|
7
|
-
setup.cfg
|
|
8
7
|
docs/CHANGES.rst
|
|
9
8
|
docs/README.rst
|
|
10
9
|
docs/conf.py
|
|
@@ -22,5 +21,5 @@ src/renumerate.egg-info/top_level.txt
|
|
|
22
21
|
src/renumerate.egg-info/zip-safe
|
|
23
22
|
tests/__init__.py
|
|
24
23
|
tests/__main__.py
|
|
25
|
-
tests/
|
|
24
|
+
tests/test_main.py
|
|
26
25
|
tests/data/.keep
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
setuptools>=75.8.0
|
|
2
|
+
pkg-about>=1.2.7
|
|
3
|
+
|
|
4
|
+
[doc]
|
|
5
|
+
Sphinx>=7.4.7
|
|
6
|
+
sphinx-autodoc-typehints>=2.3.0
|
|
7
|
+
sphinx-toolbox>=3.8.1
|
|
8
|
+
sphinx-tabs>=3.4.5
|
|
9
|
+
sphinx-copybutton>=0.5.2
|
|
10
|
+
sphinxcontrib-spelling>=8.0.0
|
|
11
|
+
sphinx-lint>=1.0.0
|
|
12
|
+
restructuredtext-lint>=1.4.0
|
|
13
|
+
nbsphinx>=0.9.6
|
|
14
|
+
|
|
15
|
+
[test]
|
|
16
|
+
deepdiff>=8.1.1
|
|
17
|
+
rich>=13.9.4
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
# Copyright (c) 2016
|
|
2
|
-
#
|
|
3
|
-
# https://opensource.org/licenses/Zlib
|
|
1
|
+
# Copyright (c) 2016 Adam Karpierz
|
|
2
|
+
# SPDX-License-Identifier: Zlib
|
|
4
3
|
|
|
5
4
|
import unittest
|
|
6
5
|
import types
|
|
@@ -8,7 +7,7 @@ import types
|
|
|
8
7
|
from renumerate import renumerate
|
|
9
8
|
|
|
10
9
|
|
|
11
|
-
class
|
|
10
|
+
class MainTestCase(unittest.TestCase):
|
|
12
11
|
|
|
13
12
|
def setUp(self):
|
|
14
13
|
self.seasons = ["Spring", "Summer", "Fall", "Winter"]
|
|
@@ -28,6 +27,8 @@ class RenumerateTestCase(unittest.TestCase):
|
|
|
28
27
|
((4, "Winter"), (3, "Fall"), (2, "Summer"), (1, "Spring")))
|
|
29
28
|
self.assertTupleEqual(tuple(renumerate(self.seasons, end=2)),
|
|
30
29
|
((5, "Winter"), (4, "Fall"), (3, "Summer"), (2, "Spring")))
|
|
30
|
+
with self.assertRaises(TypeError):
|
|
31
|
+
renumerate(self.seasons, start=4, end=2)
|
|
31
32
|
|
|
32
33
|
def test_renumerate_as_list(self):
|
|
33
34
|
self.assertListEqual(list(renumerate(self.seasons)),
|
|
@@ -36,3 +37,5 @@ class RenumerateTestCase(unittest.TestCase):
|
|
|
36
37
|
[(4, "Winter"), (3, "Fall"), (2, "Summer"), (1, "Spring")])
|
|
37
38
|
self.assertListEqual(list(renumerate(self.seasons, end=2)),
|
|
38
39
|
[(5, "Winter"), (4, "Fall"), (3, "Summer"), (2, "Spring")])
|
|
40
|
+
with self.assertRaises(TypeError):
|
|
41
|
+
renumerate(self.seasons, start=4, end=2)
|
renumerate-1.1.8/pyproject.toml
DELETED
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
# Copyright (c) 2016-2022 Adam Karpierz
|
|
2
|
-
# Licensed under the zlib/libpng License
|
|
3
|
-
# https://opensource.org/licenses/Zlib
|
|
4
|
-
|
|
5
|
-
[build-system]
|
|
6
|
-
build-backend = 'setuptools.build_meta'
|
|
7
|
-
requires = ['setuptools>=63.2.0', 'wheel>=0.37.1', 'packaging>=21.3.0', 'tox>=3.25.1']
|
|
8
|
-
|
|
9
|
-
[project]
|
|
10
|
-
name = 'renumerate'
|
|
11
|
-
version = '1.1.8'
|
|
12
|
-
description = 'Reverse enumerate.'
|
|
13
|
-
license = { text = 'zlib/libpng License ; https://opensource.org/licenses/Zlib' }
|
|
14
|
-
authors = [
|
|
15
|
-
{ name = 'Adam Karpierz' },
|
|
16
|
-
{ email = 'adam@karpierz.net' },
|
|
17
|
-
]
|
|
18
|
-
maintainers = [
|
|
19
|
-
{ name = 'Adam Karpierz' },
|
|
20
|
-
{ email = 'adam@karpierz.net' },
|
|
21
|
-
]
|
|
22
|
-
keywords = ['renumerate', 'enumerate']
|
|
23
|
-
classifiers = [
|
|
24
|
-
'Development Status :: 5 - Production/Stable',
|
|
25
|
-
'Intended Audience :: Developers',
|
|
26
|
-
'License :: OSI Approved :: zlib/libpng License',
|
|
27
|
-
'Operating System :: OS Independent',
|
|
28
|
-
'Natural Language :: Polish',
|
|
29
|
-
'Programming Language :: Python',
|
|
30
|
-
'Programming Language :: Python :: 3',
|
|
31
|
-
'Programming Language :: Python :: 3.7',
|
|
32
|
-
'Programming Language :: Python :: 3.8',
|
|
33
|
-
'Programming Language :: Python :: 3.9',
|
|
34
|
-
'Programming Language :: Python :: 3.10',
|
|
35
|
-
'Programming Language :: Python :: 3.11',
|
|
36
|
-
'Programming Language :: Python :: 3 :: Only',
|
|
37
|
-
'Programming Language :: Python :: Implementation :: CPython',
|
|
38
|
-
'Programming Language :: Python :: Implementation :: PyPy',
|
|
39
|
-
'Programming Language :: Python :: Implementation :: Stackless',
|
|
40
|
-
'Topic :: Software Development :: Libraries :: Python Modules',
|
|
41
|
-
]
|
|
42
|
-
requires-python = '>=3.7.0,<4.0.0'
|
|
43
|
-
dependencies = [
|
|
44
|
-
# mandatory
|
|
45
|
-
'setuptools>=63.2.0',
|
|
46
|
-
'packaging>=21.3.0',
|
|
47
|
-
'importlib-resources>=5.7.1',
|
|
48
|
-
'importlib-metadata>=4.12.0',
|
|
49
|
-
'pkg_about>=1.0.6',
|
|
50
|
-
# others
|
|
51
|
-
]
|
|
52
|
-
dynamic = ['readme']
|
|
53
|
-
[project.optional-dependencies]
|
|
54
|
-
doc = [
|
|
55
|
-
'docutils>=0.14,<0.19',
|
|
56
|
-
'Sphinx>=4.5.0',
|
|
57
|
-
'sphinx-tabs>=3.4.1',
|
|
58
|
-
'sphinx_copybutton>=0.5.0',
|
|
59
|
-
'sphinxcontrib-spelling>=7.6.0',
|
|
60
|
-
'restructuredtext-lint>=1.4.0',
|
|
61
|
-
'nbsphinx>=0.8.9',
|
|
62
|
-
]
|
|
63
|
-
test = [
|
|
64
|
-
'deepdiff>=5.8.1',
|
|
65
|
-
]
|
|
66
|
-
[project.urls]
|
|
67
|
-
'Homepage' = 'https://pypi.org/project/renumerate/'
|
|
68
|
-
'Documentation' = 'https://renumerate.readthedocs.io/'
|
|
69
|
-
'Download' = 'https://pypi.org/project/renumerate/'
|
|
70
|
-
'Source' = 'https://github.com/karpierz/renumerate'
|
|
71
|
-
'Issues' = 'https://github.com/karpierz/renumerate/issues'
|
|
72
|
-
|
|
73
|
-
[project.scripts]
|
|
74
|
-
#sample-cli = "pkg_about:main_cli"
|
|
75
|
-
|
|
76
|
-
[project.gui-scripts]
|
|
77
|
-
#sample-gui = "pkg_about:main_gui"
|
|
78
|
-
|
|
79
|
-
[project.entry-points."pkg_about.magical"]
|
|
80
|
-
#epoint = "pkg_about:main_epoint"
|
|
81
|
-
|
|
82
|
-
[tool.distutils.bdist_wheel]
|
|
83
|
-
#universal = false # false is default
|
|
84
|
-
|
|
85
|
-
[tool.setuptools.dynamic]
|
|
86
|
-
readme = { file = ['README.rst', 'CHANGES.rst'], content-type = 'text/x-rst; charset=UTF-8' }
|
|
87
|
-
|
|
88
|
-
[tool.setuptools]
|
|
89
|
-
license-files = ['LICENSE']
|
|
90
|
-
include-package-data = true
|
|
91
|
-
platforms = ['any']
|
|
92
|
-
zip-safe = true
|
|
93
|
-
|
|
94
|
-
[tool.setuptools.packages.find]
|
|
95
|
-
namespaces = false
|
|
96
|
-
where = ['src']
|
|
97
|
-
|
|
98
|
-
[tool.setuptools.package-dir]
|
|
99
|
-
'' = 'src'
|
|
100
|
-
#'renumerate.tests' = 'tests'
|
|
101
|
-
|
|
102
|
-
[tool.setuptools.package-data]
|
|
103
|
-
renumerate = []
|
|
104
|
-
|
|
105
|
-
[tool.coverage.run]
|
|
106
|
-
source = [
|
|
107
|
-
'renumerate',
|
|
108
|
-
'tests',
|
|
109
|
-
]
|
|
110
|
-
omit = [
|
|
111
|
-
]
|
|
112
|
-
data_file = '.tox/coverage/.coverage'
|
|
113
|
-
|
|
114
|
-
[tool.coverage.report]
|
|
115
|
-
exclude_lines = [
|
|
116
|
-
# Regexes
|
|
117
|
-
# Have to re-enable the standard pragma
|
|
118
|
-
'pragma: no cover',
|
|
119
|
-
'if\s+self\.debug\s+:',
|
|
120
|
-
'if\s+__debug__\s+:',
|
|
121
|
-
'raise (AssertionError|NotImplementedError)',
|
|
122
|
-
'if\s+(0|False)\s*:',
|
|
123
|
-
'''if\s+__name__.*\s*==\s*'__main__'\s*:''',
|
|
124
|
-
'if\s+__name__.*\s*==\s*"__main__"\s*:',
|
|
125
|
-
'^\s*@unittest\.skip\(',
|
|
126
|
-
'^\s*@unittest\.skipIf\(sys\.platform\.startswith\("win"\)',
|
|
127
|
-
]
|
|
128
|
-
omit = [
|
|
129
|
-
'tests/run.py',
|
|
130
|
-
]
|
|
131
|
-
skip_covered = false
|
|
132
|
-
|
|
133
|
-
[tool.coverage.html]
|
|
134
|
-
directory = '.tox/coverage/.coverage.html'
|
|
135
|
-
|
|
136
|
-
[tool.flake8]
|
|
137
|
-
filename = ['*.py','*.pyx']
|
|
138
|
-
#include = ['tests']
|
|
139
|
-
#exclude = ['.tox','*.egg','.git','__pycache__','build','_build','docs/_build','dist']
|
|
140
|
-
max-line-length = 99
|
|
141
|
-
ignore = ['E126','E203','E221','E251','E302','E701','E702','E731',
|
|
142
|
-
'E122','E127','E128','E222','E272','E241','E266','E226','E704',
|
|
143
|
-
'D100','D101','D102','D103','D104','D400','D401','D202',
|
|
144
|
-
'N806','N802','N803','N801',
|
|
145
|
-
'I100']
|
|
146
|
-
# (e.g. 'E4','W') default: 'E121','E123','126','226','E24','704'
|
|
147
|
-
#select =
|
|
148
|
-
#select = ['E','W','F','N','I']
|
|
149
|
-
output-file = '.tox/lint/flake8out.txt'
|
|
150
|
-
count = true
|
|
151
|
-
#show-pep8,
|
|
152
|
-
#show-source
|
|
153
|
-
#verbose
|
|
154
|
-
#quiet
|
renumerate-1.1.8/setup.cfg
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
[build_sphinx]
|
|
2
|
-
source-dir = docs
|
|
3
|
-
build-dir = build/docs
|
|
4
|
-
builder = html
|
|
5
|
-
all-files = True
|
|
6
|
-
warning-is-error = True
|
|
7
|
-
|
|
8
|
-
[tox:tox]
|
|
9
|
-
envlist = py{37,38,39,310,311}, pypy{37,38,39}, coverage, docs
|
|
10
|
-
minversion = 3.24.5
|
|
11
|
-
isolated_build = True
|
|
12
|
-
skip_missing_interpreters = true
|
|
13
|
-
requires =
|
|
14
|
-
tox-venv>=0.4.0
|
|
15
|
-
tox-backticks>=0.3.0
|
|
16
|
-
tox-tags>=0.2.0
|
|
17
|
-
tox-run-before>=0.1
|
|
18
|
-
{[base]setup_requires}
|
|
19
|
-
|
|
20
|
-
[base]
|
|
21
|
-
setup_requires =
|
|
22
|
-
pip>=21.2.4
|
|
23
|
-
setuptools>=63.2.0
|
|
24
|
-
wheel>=0.37.1
|
|
25
|
-
packagesubdir = renumerate
|
|
26
|
-
|
|
27
|
-
[testenv]
|
|
28
|
-
passenv = WINDIR
|
|
29
|
-
commands =
|
|
30
|
-
{envpython} --version
|
|
31
|
-
{envpython} -B -m tests {posargs}
|
|
32
|
-
extras = test
|
|
33
|
-
deps =
|
|
34
|
-
{[base]setup_requires}
|
|
35
|
-
|
|
36
|
-
[testenv:prepare]
|
|
37
|
-
basepython = python3.7
|
|
38
|
-
skip_install = true
|
|
39
|
-
allowlist_externals =
|
|
40
|
-
cmd
|
|
41
|
-
.build
|
|
42
|
-
commands =
|
|
43
|
-
cmd /C if exist .build.cmd .build.cmd
|
|
44
|
-
|
|
45
|
-
[testenv:coverage]
|
|
46
|
-
basepython = python3.7
|
|
47
|
-
commands =
|
|
48
|
-
{envpython} -m coverage erase
|
|
49
|
-
-{envpython} -B -m coverage run -m tests {posargs}
|
|
50
|
-
{envpython} -m coverage report
|
|
51
|
-
{envpython} -m coverage html
|
|
52
|
-
deps =
|
|
53
|
-
{[testenv]deps}
|
|
54
|
-
coverage>=6.4.2
|
|
55
|
-
diff-cover>=6.5.1
|
|
56
|
-
|
|
57
|
-
[testenv:docs]
|
|
58
|
-
basepython = python3.7
|
|
59
|
-
commands =
|
|
60
|
-
{envpython} -c "from setuptools import setup ; setup()" -v build_sphinx -b html -E
|
|
61
|
-
{envpython} -c "from setuptools import setup ; setup()" -v build_sphinx -b linkcheck
|
|
62
|
-
{envpython} -c "from setuptools import setup ; setup()" -v build_sphinx -b doctest
|
|
63
|
-
extras = doc
|
|
64
|
-
deps =
|
|
65
|
-
|
|
66
|
-
[testenv:build]
|
|
67
|
-
basepython = python3.7
|
|
68
|
-
setenv =
|
|
69
|
-
PKG_NAME=`{envpython} -c "from setuptools import setup ; setup()" --fullname`
|
|
70
|
-
PKG_DIST=`{envpython} -c 'print("""{env:PKG_NAME}""".strip(), end="")'`
|
|
71
|
-
PKG_PVER=`{envpython} -c 'import platform ; print("".join(platform.python_version_tuple()[:2]))'`
|
|
72
|
-
commands =
|
|
73
|
-
{[testenv]commands}
|
|
74
|
-
{[testenv:docs]commands}
|
|
75
|
-
{envpython} -c "from setuptools import setup ; setup()" sdist
|
|
76
|
-
{envpython} -c "from setuptools import setup ; setup()" --quiet bdist_wheel
|
|
77
|
-
{envpython} -m twine check dist/*
|
|
78
|
-
extras =
|
|
79
|
-
{[testenv]extras}
|
|
80
|
-
{[testenv:docs]extras}
|
|
81
|
-
deps =
|
|
82
|
-
{[testenv]deps}
|
|
83
|
-
{[testenv:docs]deps}
|
|
84
|
-
twine>=4.0.1
|
|
85
|
-
|
|
86
|
-
[testenv:publish]
|
|
87
|
-
basepython = python3.7
|
|
88
|
-
setenv =
|
|
89
|
-
{[testenv:build]setenv}
|
|
90
|
-
commands =
|
|
91
|
-
{[testenv:build]commands}
|
|
92
|
-
{envpython} -m twine upload dist/*
|
|
93
|
-
extras =
|
|
94
|
-
{[testenv:build]extras}
|
|
95
|
-
deps =
|
|
96
|
-
{[testenv:build]deps}
|
|
97
|
-
twine>=4.0.1
|
|
98
|
-
|
|
99
|
-
[testenv:lint]
|
|
100
|
-
basepython = python3.7
|
|
101
|
-
commands =
|
|
102
|
-
{envpython} -m flake8p {envsitepackagesdir}/{[base]packagesubdir}/
|
|
103
|
-
extras =
|
|
104
|
-
deps =
|
|
105
|
-
{[testenv]deps}
|
|
106
|
-
flake8>=4.0.1
|
|
107
|
-
flake8-pyproject>=0.9.0
|
|
108
|
-
flake8-docstrings>=1.6.0
|
|
109
|
-
pep8-naming>=0.12.1
|
|
110
|
-
flake8-builtins>=1.5.3
|
|
111
|
-
|
|
112
|
-
[egg_info]
|
|
113
|
-
tag_build =
|
|
114
|
-
tag_date = 0
|
|
115
|
-
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
setuptools>=63.2.0
|
|
2
|
-
packaging>=21.3.0
|
|
3
|
-
importlib-resources>=5.7.1
|
|
4
|
-
importlib-metadata>=4.12.0
|
|
5
|
-
pkg_about>=1.0.6
|
|
6
|
-
|
|
7
|
-
[doc]
|
|
8
|
-
docutils<0.19,>=0.14
|
|
9
|
-
Sphinx>=4.5.0
|
|
10
|
-
sphinx-tabs>=3.4.1
|
|
11
|
-
sphinx_copybutton>=0.5.0
|
|
12
|
-
sphinxcontrib-spelling>=7.6.0
|
|
13
|
-
restructuredtext-lint>=1.4.0
|
|
14
|
-
nbsphinx>=0.8.9
|
|
15
|
-
|
|
16
|
-
[test]
|
|
17
|
-
deepdiff>=5.8.1
|
|
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
|