renumerate 1.1.8__tar.gz → 1.2.4__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.

Files changed (33) hide show
  1. renumerate-1.2.4/.readthedocs.yml +15 -0
  2. {renumerate-1.1.8 → renumerate-1.2.4}/CHANGES.rst +37 -5
  3. {renumerate-1.1.8 → renumerate-1.2.4}/LICENSE +1 -1
  4. {renumerate-1.1.8 → renumerate-1.2.4}/MANIFEST.in +2 -3
  5. {renumerate-1.1.8 → renumerate-1.2.4}/PKG-INFO +61 -18
  6. {renumerate-1.1.8 → renumerate-1.2.4}/README.rst +6 -6
  7. {renumerate-1.1.8 → renumerate-1.2.4}/docs/conf.py +2 -1
  8. renumerate-1.2.4/pyproject.toml +280 -0
  9. renumerate-1.2.4/setup.cfg +4 -0
  10. renumerate-1.2.4/src/renumerate/__about__.py +4 -0
  11. renumerate-1.2.4/src/renumerate/__init__.py +6 -0
  12. {renumerate-1.1.8 → renumerate-1.2.4}/src/renumerate/_renumerate.py +5 -5
  13. {renumerate-1.1.8 → renumerate-1.2.4}/src/renumerate.egg-info/PKG-INFO +61 -18
  14. {renumerate-1.1.8 → renumerate-1.2.4}/src/renumerate.egg-info/SOURCES.txt +1 -2
  15. renumerate-1.2.4/src/renumerate.egg-info/requires.txt +16 -0
  16. {renumerate-1.1.8 → renumerate-1.2.4}/tests/__init__.py +2 -3
  17. {renumerate-1.1.8 → renumerate-1.2.4}/tests/__main__.py +2 -3
  18. renumerate-1.1.8/tests/test_renumerate.py → renumerate-1.2.4/tests/test_main.py +7 -4
  19. renumerate-1.1.8/.readthedocs.yml +0 -9
  20. renumerate-1.1.8/pyproject.toml +0 -154
  21. renumerate-1.1.8/setup.cfg +0 -115
  22. renumerate-1.1.8/src/renumerate/__about__.py +0 -6
  23. renumerate-1.1.8/src/renumerate/__init__.py +0 -7
  24. renumerate-1.1.8/src/renumerate.egg-info/requires.txt +0 -17
  25. {renumerate-1.1.8 → renumerate-1.2.4}/docs/CHANGES.rst +0 -0
  26. {renumerate-1.1.8 → renumerate-1.2.4}/docs/README.rst +0 -0
  27. {renumerate-1.1.8 → renumerate-1.2.4}/docs/_static/.keep +0 -0
  28. {renumerate-1.1.8 → renumerate-1.2.4}/docs/_templates/.keep +0 -0
  29. {renumerate-1.1.8 → renumerate-1.2.4}/docs/index.rst +0 -0
  30. {renumerate-1.1.8 → renumerate-1.2.4}/src/renumerate.egg-info/dependency_links.txt +0 -0
  31. {renumerate-1.1.8 → renumerate-1.2.4}/src/renumerate.egg-info/top_level.txt +0 -0
  32. {renumerate-1.1.8 → renumerate-1.2.4}/src/renumerate.egg-info/zip-safe +0 -0
  33. {renumerate-1.1.8 → renumerate-1.2.4}/tests/data/.keep +0 -0
@@ -0,0 +1,15 @@
1
+ version: 2
2
+ build:
3
+ os: "ubuntu-22.04"
4
+ tools:
5
+ python: "3.12"
6
+ python:
7
+ install:
8
+ - method: pip
9
+ path: .
10
+ extra_requirements:
11
+ - doc
12
+ sphinx:
13
+ builder: html
14
+ configuration: docs/conf.py
15
+ fail_on_warning: true
@@ -1,7 +1,43 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
- 1.1.8 (2022-07-24)
4
+ 1.2.4 (2024-12-13)
5
+ ------------------
6
+ - Source distribution (\*.tar.gz now) is compliant with PEP-0625.
7
+ - Setup (dependencies) update.
8
+
9
+ 1.2.3 (2024-11-13)
10
+ ------------------
11
+ - More unittests.
12
+ - 100% code linting.
13
+ - 100% code coverage.
14
+ - Tox configuration is now in native (toml) format.
15
+ - Setup (dependencies) update.
16
+
17
+ 1.2.2 (2024-10-30)
18
+ ------------------
19
+ - Setup (dependencies) update.
20
+
21
+ 1.2.1 (2024-10-09)
22
+ ------------------
23
+ - Drop support for Python 3.8
24
+ - Setup (dependencies) update.
25
+
26
+ 1.1.14 (2024-08-13)
27
+ -------------------
28
+ - Add support for Python 3.13
29
+ - Setup (dependencies) update.
30
+
31
+ 1.1.12 (2024-01-26)
32
+ -------------------
33
+ - Setup update (now based on tox >= 4.0).
34
+ - Cleanup.
35
+
36
+ 1.1.10 (2022-10-18)
37
+ -------------------
38
+ - Tox configuration has been moved to pyproject.toml
39
+
40
+ 1.1.9 (2022-08-22)
5
41
  ------------------
6
42
  - Add support for Python 3.10 and 3.11
7
43
  - Setup update (currently based mainly on pyproject.toml).
@@ -12,10 +48,6 @@ Changelog
12
48
  - Copyright year update.
13
49
  - Setup update.
14
50
 
15
- 1.1.6 (2021-12-11)
16
- ------------------
17
- - Setup update.
18
-
19
51
  1.1.5 (2021-07-20)
20
52
  ------------------
21
53
  - Setup general update and improvement.
@@ -1,6 +1,6 @@
1
1
  zlib License
2
2
 
3
- Copyright (C) 2016-2022 Adam Karpierz
3
+ Copyright (C) 2016-2024 Adam Karpierz
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,5 @@
1
- # Copyright (c) 2016-2022 Adam Karpierz
2
- # Licensed under the zlib/libpng License
3
- # https://opensource.org/licenses/Zlib
1
+ # Copyright (c) 2016 Adam Karpierz
2
+ # SPDX-License-Identifier: Zlib
4
3
 
5
4
  include README.rst
6
5
  include CHANGES.rst
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: renumerate
3
- Version: 1.1.8
3
+ Version: 1.2.4
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/licenses/Zlib
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,32 @@ 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.7.0
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.6.0
37
+ Requires-Dist: pkg-about>=1.2.6
36
38
  Provides-Extra: doc
39
+ Requires-Dist: Sphinx>=7.4.7; extra == "doc"
40
+ Requires-Dist: sphinx-toolbox>=3.8.1; extra == "doc"
41
+ Requires-Dist: sphinx-tabs>=3.4.5; extra == "doc"
42
+ Requires-Dist: sphinx-copybutton>=0.5.2; extra == "doc"
43
+ Requires-Dist: sphinxcontrib-spelling>=8.0.0; extra == "doc"
44
+ Requires-Dist: sphinx-lint>=1.0.0; extra == "doc"
45
+ Requires-Dist: restructuredtext-lint>=1.4.0; extra == "doc"
46
+ Requires-Dist: nbsphinx>=0.9.5; extra == "doc"
37
47
  Provides-Extra: test
38
- License-File: LICENSE
48
+ Requires-Dist: deepdiff>=8.0.1; extra == "test"
49
+ Requires-Dist: rich>=13.9.4; extra == "test"
39
50
 
40
51
  renumerate
41
52
  ==========
@@ -94,10 +105,9 @@ Installation
94
105
 
95
106
  Prerequisites:
96
107
 
97
- + Python 3.7 or higher
108
+ + Python 3.9 or higher
98
109
 
99
110
  * https://www.python.org/
100
- * 3.7 is a primary test environment.
101
111
 
102
112
  + pip and setuptools
103
113
 
@@ -119,7 +129,7 @@ Prerequisites:
119
129
 
120
130
  python -m pip install --upgrade tox
121
131
 
122
- Visit `development page`_.
132
+ Visit `Development page`_.
123
133
 
124
134
  Installation from sources:
125
135
 
@@ -144,9 +154,9 @@ or on development mode:
144
154
  License
145
155
  =======
146
156
 
147
- | Copyright (c) 2016-2022 Adam Karpierz
157
+ | |copyright|
148
158
  | Licensed under the zlib/libpng License
149
- | https://opensource.org/licenses/Zlib
159
+ | https://opensource.org/license/zlib
150
160
  | Please refer to the accompanying LICENSE file.
151
161
 
152
162
  Authors
@@ -156,8 +166,9 @@ Authors
156
166
 
157
167
  .. |package| replace:: renumerate
158
168
  .. |package_bold| replace:: **renumerate**
169
+ .. |copyright| replace:: Copyright (c) 2016-2024 Adam Karpierz
159
170
  .. |respository| replace:: https://github.com/karpierz/renumerate.git
160
- .. _development page: https://github.com/karpierz/renumerate
171
+ .. _Development page: https://github.com/karpierz/renumerate
161
172
  .. _PyPI record: https://pypi.org/project/renumerate/
162
173
  .. _Documentation: https://renumerate.readthedocs.io/
163
174
  .. _enumerate: https://docs.python.org/library/functions.html#enumerate
@@ -165,7 +176,43 @@ Authors
165
176
  Changelog
166
177
  =========
167
178
 
168
- 1.1.8 (2022-07-24)
179
+ 1.2.4 (2024-12-13)
180
+ ------------------
181
+ - Source distribution (\*.tar.gz now) is compliant with PEP-0625.
182
+ - Setup (dependencies) update.
183
+
184
+ 1.2.3 (2024-11-13)
185
+ ------------------
186
+ - More unittests.
187
+ - 100% code linting.
188
+ - 100% code coverage.
189
+ - Tox configuration is now in native (toml) format.
190
+ - Setup (dependencies) update.
191
+
192
+ 1.2.2 (2024-10-30)
193
+ ------------------
194
+ - Setup (dependencies) update.
195
+
196
+ 1.2.1 (2024-10-09)
197
+ ------------------
198
+ - Drop support for Python 3.8
199
+ - Setup (dependencies) update.
200
+
201
+ 1.1.14 (2024-08-13)
202
+ -------------------
203
+ - Add support for Python 3.13
204
+ - Setup (dependencies) update.
205
+
206
+ 1.1.12 (2024-01-26)
207
+ -------------------
208
+ - Setup update (now based on tox >= 4.0).
209
+ - Cleanup.
210
+
211
+ 1.1.10 (2022-10-18)
212
+ -------------------
213
+ - Tox configuration has been moved to pyproject.toml
214
+
215
+ 1.1.9 (2022-08-22)
169
216
  ------------------
170
217
  - Add support for Python 3.10 and 3.11
171
218
  - Setup update (currently based mainly on pyproject.toml).
@@ -176,10 +223,6 @@ Changelog
176
223
  - Copyright year update.
177
224
  - Setup update.
178
225
 
179
- 1.1.6 (2021-12-11)
180
- ------------------
181
- - Setup update.
182
-
183
226
  1.1.5 (2021-07-20)
184
227
  ------------------
185
228
  - Setup general update and improvement.
@@ -55,10 +55,9 @@ Installation
55
55
 
56
56
  Prerequisites:
57
57
 
58
- + Python 3.7 or higher
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 `development page`_.
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
- | Copyright (c) 2016-2022 Adam Karpierz
107
+ | |copyright|
109
108
  | Licensed under the zlib/libpng License
110
- | https://opensource.org/licenses/Zlib
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-2024 Adam Karpierz
120
120
  .. |respository| replace:: https://github.com/karpierz/renumerate.git
121
- .. _development page: https://github.com/karpierz/renumerate
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 = '3.4.3'
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,7 @@ extensions = [
48
48
  #'sphinx.ext.coverage',
49
49
  'sphinx.ext.ifconfig',
50
50
  'sphinx.ext.napoleon',
51
+ #'sphinx_toolbox',
51
52
  'sphinx_tabs.tabs',
52
53
  'sphinx_copybutton',
53
54
  'sphinxcontrib.spelling',
@@ -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.6.0', 'packaging>=24.2.0', 'tox>=4.23.2']
7
+
8
+ [project]
9
+ name = 'renumerate'
10
+ version = '1.2.4'
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.6.0',
49
+ 'pkg-about>=1.2.6',
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.28.0',
163
+ 'tox-backtick>=0.5.5',
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.6.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.9',
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=gztar'],
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>=6.0.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>=6.0.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
+ ]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,4 @@
1
+ # Copyright (c) 2016 Adam Karpierz
2
+ # SPDX-License-Identifier: Zlib
3
+
4
+ __import__("pkg_about").about()
@@ -0,0 +1,6 @@
1
+ # Copyright (c) 2016 Adam Karpierz
2
+ # SPDX-License-Identifier: Zlib
3
+
4
+ from .__about__ import * ; del __about__ # noqa
5
+
6
+ from ._renumerate import * ; del _renumerate # noqa
@@ -1,13 +1,13 @@
1
- # Copyright (c) 2016-2022 Adam Karpierz
2
- # Licensed under the zlib/libpng License
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
- """renumerate(sequence[, start]|[, end]) -> reverse iterator for
10
- index, value of sequence
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
1
  Metadata-Version: 2.1
2
2
  Name: renumerate
3
- Version: 1.1.8
3
+ Version: 1.2.4
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/licenses/Zlib
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,32 @@ 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.7.0
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.6.0
37
+ Requires-Dist: pkg-about>=1.2.6
36
38
  Provides-Extra: doc
39
+ Requires-Dist: Sphinx>=7.4.7; extra == "doc"
40
+ Requires-Dist: sphinx-toolbox>=3.8.1; extra == "doc"
41
+ Requires-Dist: sphinx-tabs>=3.4.5; extra == "doc"
42
+ Requires-Dist: sphinx-copybutton>=0.5.2; extra == "doc"
43
+ Requires-Dist: sphinxcontrib-spelling>=8.0.0; extra == "doc"
44
+ Requires-Dist: sphinx-lint>=1.0.0; extra == "doc"
45
+ Requires-Dist: restructuredtext-lint>=1.4.0; extra == "doc"
46
+ Requires-Dist: nbsphinx>=0.9.5; extra == "doc"
37
47
  Provides-Extra: test
38
- License-File: LICENSE
48
+ Requires-Dist: deepdiff>=8.0.1; extra == "test"
49
+ Requires-Dist: rich>=13.9.4; extra == "test"
39
50
 
40
51
  renumerate
41
52
  ==========
@@ -94,10 +105,9 @@ Installation
94
105
 
95
106
  Prerequisites:
96
107
 
97
- + Python 3.7 or higher
108
+ + Python 3.9 or higher
98
109
 
99
110
  * https://www.python.org/
100
- * 3.7 is a primary test environment.
101
111
 
102
112
  + pip and setuptools
103
113
 
@@ -119,7 +129,7 @@ Prerequisites:
119
129
 
120
130
  python -m pip install --upgrade tox
121
131
 
122
- Visit `development page`_.
132
+ Visit `Development page`_.
123
133
 
124
134
  Installation from sources:
125
135
 
@@ -144,9 +154,9 @@ or on development mode:
144
154
  License
145
155
  =======
146
156
 
147
- | Copyright (c) 2016-2022 Adam Karpierz
157
+ | |copyright|
148
158
  | Licensed under the zlib/libpng License
149
- | https://opensource.org/licenses/Zlib
159
+ | https://opensource.org/license/zlib
150
160
  | Please refer to the accompanying LICENSE file.
151
161
 
152
162
  Authors
@@ -156,8 +166,9 @@ Authors
156
166
 
157
167
  .. |package| replace:: renumerate
158
168
  .. |package_bold| replace:: **renumerate**
169
+ .. |copyright| replace:: Copyright (c) 2016-2024 Adam Karpierz
159
170
  .. |respository| replace:: https://github.com/karpierz/renumerate.git
160
- .. _development page: https://github.com/karpierz/renumerate
171
+ .. _Development page: https://github.com/karpierz/renumerate
161
172
  .. _PyPI record: https://pypi.org/project/renumerate/
162
173
  .. _Documentation: https://renumerate.readthedocs.io/
163
174
  .. _enumerate: https://docs.python.org/library/functions.html#enumerate
@@ -165,7 +176,43 @@ Authors
165
176
  Changelog
166
177
  =========
167
178
 
168
- 1.1.8 (2022-07-24)
179
+ 1.2.4 (2024-12-13)
180
+ ------------------
181
+ - Source distribution (\*.tar.gz now) is compliant with PEP-0625.
182
+ - Setup (dependencies) update.
183
+
184
+ 1.2.3 (2024-11-13)
185
+ ------------------
186
+ - More unittests.
187
+ - 100% code linting.
188
+ - 100% code coverage.
189
+ - Tox configuration is now in native (toml) format.
190
+ - Setup (dependencies) update.
191
+
192
+ 1.2.2 (2024-10-30)
193
+ ------------------
194
+ - Setup (dependencies) update.
195
+
196
+ 1.2.1 (2024-10-09)
197
+ ------------------
198
+ - Drop support for Python 3.8
199
+ - Setup (dependencies) update.
200
+
201
+ 1.1.14 (2024-08-13)
202
+ -------------------
203
+ - Add support for Python 3.13
204
+ - Setup (dependencies) update.
205
+
206
+ 1.1.12 (2024-01-26)
207
+ -------------------
208
+ - Setup update (now based on tox >= 4.0).
209
+ - Cleanup.
210
+
211
+ 1.1.10 (2022-10-18)
212
+ -------------------
213
+ - Tox configuration has been moved to pyproject.toml
214
+
215
+ 1.1.9 (2022-08-22)
169
216
  ------------------
170
217
  - Add support for Python 3.10 and 3.11
171
218
  - Setup update (currently based mainly on pyproject.toml).
@@ -176,10 +223,6 @@ Changelog
176
223
  - Copyright year update.
177
224
  - Setup update.
178
225
 
179
- 1.1.6 (2021-12-11)
180
- ------------------
181
- - Setup update.
182
-
183
226
  1.1.5 (2021-07-20)
184
227
  ------------------
185
228
  - 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/test_renumerate.py
24
+ tests/test_main.py
26
25
  tests/data/.keep
@@ -0,0 +1,16 @@
1
+ setuptools>=75.6.0
2
+ pkg-about>=1.2.6
3
+
4
+ [doc]
5
+ Sphinx>=7.4.7
6
+ sphinx-toolbox>=3.8.1
7
+ sphinx-tabs>=3.4.5
8
+ sphinx-copybutton>=0.5.2
9
+ sphinxcontrib-spelling>=8.0.0
10
+ sphinx-lint>=1.0.0
11
+ restructuredtext-lint>=1.4.0
12
+ nbsphinx>=0.9.5
13
+
14
+ [test]
15
+ deepdiff>=8.0.1
16
+ rich>=13.9.4
@@ -1,6 +1,5 @@
1
- # Copyright (c) 2016-2022 Adam Karpierz
2
- # Licensed under the zlib/libpng License
3
- # https://opensource.org/licenses/Zlib
1
+ # Copyright (c) 2016 Adam Karpierz
2
+ # SPDX-License-Identifier: Zlib
4
3
 
5
4
  __all__ = ('top_dir', 'test_dir')
6
5
 
@@ -1,6 +1,5 @@
1
- # Copyright (c) 2016-2022 Adam Karpierz
2
- # Licensed under the zlib/libpng License
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 sys
@@ -1,6 +1,5 @@
1
- # Copyright (c) 2016-2022 Adam Karpierz
2
- # Licensed under the zlib/libpng License
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 RenumerateTestCase(unittest.TestCase):
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)
@@ -1,9 +0,0 @@
1
- version: 2
2
- build:
3
- image: latest
4
- python:
5
- version: 3.7
6
- install:
7
- - method: pip
8
- path: .
9
- extra_requirements: [doc]
@@ -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
@@ -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,6 +0,0 @@
1
- # Copyright (c) 2016-2022 Adam Karpierz
2
- # Licensed under the zlib/libpng License
3
- # https://opensource.org/licenses/Zlib
4
-
5
- __import__("pkg_about").about()
6
- __copyright__ = f"Copyright (c) 2016-2022 {__author__}" # noqa
@@ -1,7 +0,0 @@
1
- # Copyright (c) 2016-2022 Adam Karpierz
2
- # Licensed under the zlib/libpng License
3
- # https://opensource.org/licenses/Zlib
4
-
5
- from .__about__ import * ; del __about__ # noqa
6
-
7
- from ._renumerate import * ; del _renumerate # noqa
@@ -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