slownie 1.1.2__zip → 1.2.0__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.
- slownie-1.2.0/.readthedocs.yml +9 -0
- {slownie-1.1.2 → slownie-1.2.0}/CHANGES.rst +22 -3
- {slownie-1.1.2 → slownie-1.2.0}/LICENSE +3 -3
- {slownie-1.1.2 → slownie-1.2.0}/MANIFEST.in +5 -3
- slownie-1.2.0/PKG-INFO +233 -0
- {slownie-1.1.2 → slownie-1.2.0}/README.rst +10 -8
- {slownie-1.1.2 → slownie-1.2.0}/docs/README.rst +0 -1
- {slownie-1.1.2 → slownie-1.2.0}/docs/conf.py +7 -10
- {slownie-1.1.2 → slownie-1.2.0}/docs/index.rst +2 -2
- slownie-1.2.0/pyproject.toml +267 -0
- slownie-1.2.0/setup.cfg +4 -0
- slownie-1.2.0/src/slownie/__about__.py +6 -0
- {slownie-1.1.2 → slownie-1.2.0}/src/slownie/__init__.py +3 -2
- {slownie-1.1.2 → slownie-1.2.0}/src/slownie/_slownie.py +57 -40
- slownie-1.2.0/src/slownie.egg-info/PKG-INFO +233 -0
- {slownie-1.1.2 → slownie-1.2.0}/src/slownie.egg-info/SOURCES.txt +4 -3
- slownie-1.2.0/src/slownie.egg-info/requires.txt +17 -0
- slownie-1.2.0/tests/__init__.py +11 -0
- slownie-1.2.0/tests/__main__.py +37 -0
- slownie-1.2.0/tests/data/.keep +0 -0
- slownie-1.2.0/tests/test_main.py +31 -0
- slownie-1.1.2/PKG-INFO +0 -198
- slownie-1.1.2/setup.cfg +0 -173
- slownie-1.1.2/setup.py +0 -27
- slownie-1.1.2/src/slownie/__about__.py +0 -24
- slownie-1.1.2/src/slownie.egg-info/PKG-INFO +0 -198
- slownie-1.1.2/src/slownie.egg-info/requires.txt +0 -7
- slownie-1.1.2/tests/__init__.py +0 -11
- slownie-1.1.2/tests/__main__.py +0 -20
- slownie-1.1.2/tests/test_slownie.py +0 -17
- {slownie-1.1.2 → slownie-1.2.0}/docs/CHANGES.rst +0 -0
- {slownie-1.1.2 → slownie-1.2.0}/docs/_static/.keep +0 -0
- {slownie-1.1.2 → slownie-1.2.0}/docs/_templates/.keep +0 -0
- {slownie-1.1.2 → slownie-1.2.0}/src/slownie.egg-info/dependency_links.txt +0 -0
- {slownie-1.1.2 → slownie-1.2.0}/src/slownie.egg-info/top_level.txt +0 -0
- {slownie-1.1.2 → slownie-1.2.0}/src/slownie.egg-info/zip-safe +0 -0
|
@@ -1,11 +1,30 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
1.2.0 (2023-12-15)
|
|
5
|
+
------------------
|
|
6
|
+
- | Added 'conjunction' parameter for the slownie_zl() function.
|
|
7
|
+
| Thanks to Tomasz Pichlinski (@tomaszpichlinskiapz).
|
|
8
|
+
- | The supported parts of the amount have been extended up to
|
|
9
|
+
| 'duodecyliard'.
|
|
10
|
+
- Add support for Python 3.12
|
|
11
|
+
- Drop support for Python 3.7
|
|
12
|
+
- Add support for PyPy 3.9 and 3.10
|
|
13
|
+
- Copyright year update.
|
|
14
|
+
- Tox configuration has been moved to pyproject.toml
|
|
15
|
+
|
|
16
|
+
1.1.3 (2022-09-02)
|
|
17
|
+
------------------
|
|
18
|
+
- Add support for Python 3.10 and 3.11
|
|
19
|
+
- Drop support for Python 3.6
|
|
20
|
+
- Copyright year update.
|
|
21
|
+
- Setup update (currently based mainly on pyproject.toml).
|
|
22
|
+
|
|
4
23
|
1.1.2 (2020-10-17)
|
|
5
24
|
------------------
|
|
6
|
-
- Add support for Python 3.8 and 3.9
|
|
7
|
-
- Drop support for Python 3.5
|
|
8
|
-
- Drop support for Python 2
|
|
25
|
+
- Add support for Python 3.8 and 3.9
|
|
26
|
+
- Drop support for Python 3.5
|
|
27
|
+
- Drop support for Python 2
|
|
9
28
|
- Fix a bug in slownie_zl().
|
|
10
29
|
- Add unittests.
|
|
11
30
|
- General update and cleanup.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
zlib License
|
|
2
|
+
|
|
3
|
+
Copyright (C) 2016-2024 Adam Karpierz
|
|
2
4
|
|
|
3
5
|
This software is provided 'as-is', without any express or implied
|
|
4
6
|
warranty. In no event will the authors be held liable for any damages
|
|
@@ -12,8 +14,6 @@ freely, subject to the following restrictions:
|
|
|
12
14
|
claim that you wrote the original software. If you use this software
|
|
13
15
|
in a product, an acknowledgment in the product documentation would be
|
|
14
16
|
appreciated but is not required.
|
|
15
|
-
|
|
16
17
|
2. Altered source versions must be plainly marked as such, and must not be
|
|
17
18
|
misrepresented as being the original software.
|
|
18
|
-
|
|
19
19
|
3. This notice may not be removed or altered from any source distribution.
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
# Copyright (c) 2016-
|
|
1
|
+
# Copyright (c) 2016-2024 Adam Karpierz
|
|
2
2
|
# Licensed under the zlib/libpng License
|
|
3
3
|
# https://opensource.org/licenses/Zlib
|
|
4
4
|
|
|
5
5
|
include README.rst
|
|
6
6
|
include CHANGES.rst
|
|
7
7
|
include LICENSE
|
|
8
|
+
include pyproject.toml
|
|
9
|
+
include .readthedocs.yml
|
|
8
10
|
|
|
9
11
|
graft docs
|
|
10
12
|
|
|
11
13
|
graft src
|
|
12
14
|
|
|
13
15
|
graft tests
|
|
14
|
-
exclude tests/_info_.txt tests/_report_*.txt
|
|
15
16
|
|
|
16
|
-
global-exclude
|
|
17
|
+
global-exclude \#* \#*/**
|
|
18
|
+
global-exclude .build .build/** .build.* .build.*/**
|
|
17
19
|
global-exclude *.py[cod] __pycache__
|
slownie-1.2.0/PKG-INFO
ADDED
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: slownie
|
|
3
|
+
Version: 1.2.0
|
|
4
|
+
Summary: Polish spelled-out numbers and amounts.
|
|
5
|
+
Author: Adam Karpierz
|
|
6
|
+
Author-email: adam@karpierz.net
|
|
7
|
+
Maintainer: Adam Karpierz
|
|
8
|
+
Maintainer-email: adam@karpierz.net
|
|
9
|
+
License: zlib/libpng License ; https://opensource.org/licenses/Zlib
|
|
10
|
+
Project-URL: Homepage, https://pypi.org/project/slownie/
|
|
11
|
+
Project-URL: Documentation, https://slownie.readthedocs.io/
|
|
12
|
+
Project-URL: Download, https://pypi.org/project/slownie/
|
|
13
|
+
Project-URL: Source, https://github.com/karpierz/slownie
|
|
14
|
+
Project-URL: Issues, https://github.com/karpierz/slownie/issues
|
|
15
|
+
Keywords: slownie
|
|
16
|
+
Platform: any
|
|
17
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
18
|
+
Classifier: Intended Audience :: Developers
|
|
19
|
+
Classifier: License :: OSI Approved :: zlib/libpng License
|
|
20
|
+
Classifier: Operating System :: OS Independent
|
|
21
|
+
Classifier: Natural Language :: Polish
|
|
22
|
+
Classifier: Programming Language :: Python
|
|
23
|
+
Classifier: Programming Language :: Python :: 3
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
27
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
28
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
29
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
30
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
31
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
32
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
33
|
+
Requires-Python: <4.0.0,>=3.8.1
|
|
34
|
+
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
35
|
+
License-File: LICENSE
|
|
36
|
+
Requires-Dist: setuptools>=68.2.2
|
|
37
|
+
Requires-Dist: pkg_about>=1.1.0
|
|
38
|
+
Provides-Extra: doc
|
|
39
|
+
Requires-Dist: docutils<0.20,>=0.18.1; extra == "doc"
|
|
40
|
+
Requires-Dist: Sphinx>=7.1.2; extra == "doc"
|
|
41
|
+
Requires-Dist: sphinx-toolbox>=3.5.0; extra == "doc"
|
|
42
|
+
Requires-Dist: sphinx-tabs>=3.4.1; extra == "doc"
|
|
43
|
+
Requires-Dist: sphinx-copybutton>=0.5.1; extra == "doc"
|
|
44
|
+
Requires-Dist: sphinxcontrib-spelling>=7.7.0; extra == "doc"
|
|
45
|
+
Requires-Dist: sphinx-lint>=0.6.7; extra == "doc"
|
|
46
|
+
Requires-Dist: restructuredtext-lint>=1.4.0; extra == "doc"
|
|
47
|
+
Requires-Dist: nbsphinx>=0.8.10; extra == "doc"
|
|
48
|
+
Provides-Extra: test
|
|
49
|
+
Requires-Dist: deepdiff>=6.7.1; extra == "test"
|
|
50
|
+
Requires-Dist: rich>=13.7.0; extra == "test"
|
|
51
|
+
|
|
52
|
+
slownie
|
|
53
|
+
=======
|
|
54
|
+
|
|
55
|
+
Polish spelled-out numbers and amounts.
|
|
56
|
+
|
|
57
|
+
Overview
|
|
58
|
+
========
|
|
59
|
+
|
|
60
|
+
| **slownie(value):**
|
|
61
|
+
| **slownie_zl(amount):**
|
|
62
|
+
| **slownie_zl100gr(amount):**
|
|
63
|
+
|
|
64
|
+
Provides routines to spell out numbers and amounts in Polish.
|
|
65
|
+
|
|
66
|
+
`PyPI record`_.
|
|
67
|
+
|
|
68
|
+
`Documentation`_.
|
|
69
|
+
|
|
70
|
+
Usage
|
|
71
|
+
-----
|
|
72
|
+
|
|
73
|
+
.. code:: python
|
|
74
|
+
|
|
75
|
+
>>> from slownie import *
|
|
76
|
+
>>> slownie(12892)
|
|
77
|
+
dwanaście tysięcy osiemset dziewięćdziesiąt dwa
|
|
78
|
+
>>> slownie_zl(123.34)
|
|
79
|
+
sto dwadzieścia trzy złote trzydzieści cztery grosze
|
|
80
|
+
>>> slownie_zl100gr(123.34)
|
|
81
|
+
sto dwadzieścia trzy złote 34/100
|
|
82
|
+
|
|
83
|
+
Installation
|
|
84
|
+
============
|
|
85
|
+
|
|
86
|
+
Prerequisites:
|
|
87
|
+
|
|
88
|
+
+ Python 3.8 or higher
|
|
89
|
+
|
|
90
|
+
* https://www.python.org/
|
|
91
|
+
|
|
92
|
+
+ pip and setuptools
|
|
93
|
+
|
|
94
|
+
* https://pypi.org/project/pip/
|
|
95
|
+
* https://pypi.org/project/setuptools/
|
|
96
|
+
|
|
97
|
+
To install run:
|
|
98
|
+
|
|
99
|
+
.. parsed-literal::
|
|
100
|
+
|
|
101
|
+
python -m pip install --upgrade |package|
|
|
102
|
+
|
|
103
|
+
Development
|
|
104
|
+
===========
|
|
105
|
+
|
|
106
|
+
Prerequisites:
|
|
107
|
+
|
|
108
|
+
+ Development is strictly based on *tox*. To install it run::
|
|
109
|
+
|
|
110
|
+
python -m pip install --upgrade tox
|
|
111
|
+
|
|
112
|
+
Visit `Development page`_.
|
|
113
|
+
|
|
114
|
+
Installation from sources:
|
|
115
|
+
|
|
116
|
+
clone the sources:
|
|
117
|
+
|
|
118
|
+
.. parsed-literal::
|
|
119
|
+
|
|
120
|
+
git clone |respository| |package|
|
|
121
|
+
|
|
122
|
+
and run:
|
|
123
|
+
|
|
124
|
+
.. parsed-literal::
|
|
125
|
+
|
|
126
|
+
python -m pip install ./|package|
|
|
127
|
+
|
|
128
|
+
or on development mode:
|
|
129
|
+
|
|
130
|
+
.. parsed-literal::
|
|
131
|
+
|
|
132
|
+
python -m pip install --editable ./|package|
|
|
133
|
+
|
|
134
|
+
License
|
|
135
|
+
=======
|
|
136
|
+
|
|
137
|
+
| Copyright (c) 2016-2024 Adam Karpierz
|
|
138
|
+
| Licensed under the zlib/libpng License
|
|
139
|
+
| https://opensource.org/licenses/Zlib
|
|
140
|
+
| Please refer to the accompanying LICENSE file.
|
|
141
|
+
|
|
142
|
+
Authors
|
|
143
|
+
=======
|
|
144
|
+
|
|
145
|
+
* Adam Karpierz <adam@karpierz.net>
|
|
146
|
+
|
|
147
|
+
.. |package| replace:: slownie
|
|
148
|
+
.. |package_bold| replace:: **slownie**
|
|
149
|
+
.. |respository| replace:: https://github.com/karpierz/slownie.git
|
|
150
|
+
.. _Development page: https://github.com/karpierz/slownie
|
|
151
|
+
.. _PyPI record: https://pypi.org/project/slownie/
|
|
152
|
+
.. _Documentation: https://slownie.readthedocs.io/
|
|
153
|
+
|
|
154
|
+
Changelog
|
|
155
|
+
=========
|
|
156
|
+
|
|
157
|
+
1.2.0 (2023-12-15)
|
|
158
|
+
------------------
|
|
159
|
+
- | Added 'conjunction' parameter for the slownie_zl() function.
|
|
160
|
+
| Thanks to Tomasz Pichlinski (@tomaszpichlinskiapz).
|
|
161
|
+
- | The supported parts of the amount have been extended up to
|
|
162
|
+
| 'duodecyliard'.
|
|
163
|
+
- Add support for Python 3.12
|
|
164
|
+
- Drop support for Python 3.7
|
|
165
|
+
- Add support for PyPy 3.9 and 3.10
|
|
166
|
+
- Copyright year update.
|
|
167
|
+
- Tox configuration has been moved to pyproject.toml
|
|
168
|
+
|
|
169
|
+
1.1.3 (2022-09-02)
|
|
170
|
+
------------------
|
|
171
|
+
- Add support for Python 3.10 and 3.11
|
|
172
|
+
- Drop support for Python 3.6
|
|
173
|
+
- Copyright year update.
|
|
174
|
+
- Setup update (currently based mainly on pyproject.toml).
|
|
175
|
+
|
|
176
|
+
1.1.2 (2020-10-17)
|
|
177
|
+
------------------
|
|
178
|
+
- Add support for Python 3.8 and 3.9
|
|
179
|
+
- Drop support for Python 3.5
|
|
180
|
+
- Drop support for Python 2
|
|
181
|
+
- Fix a bug in slownie_zl().
|
|
182
|
+
- Add unittests.
|
|
183
|
+
- General update and cleanup.
|
|
184
|
+
- Fixed docs setup.
|
|
185
|
+
|
|
186
|
+
1.0.0rc1 (2018-11-21)
|
|
187
|
+
---------------------
|
|
188
|
+
- Fix a bug in slownie_zl() and slownie_zl100gr()
|
|
189
|
+
- | Code improvement according to the suggestion and the patch
|
|
190
|
+
| from Michal Borkowski (https://github.com/wielkiborsuk).
|
|
191
|
+
| Thank you very much, Michal!
|
|
192
|
+
|
|
193
|
+
1.0.0b5 (2018-11-08)
|
|
194
|
+
--------------------
|
|
195
|
+
- Drop support for Python 2.6 and 3.0-3.3
|
|
196
|
+
- Update required setuptools version.
|
|
197
|
+
|
|
198
|
+
1.0.0b4 (2018-05-08)
|
|
199
|
+
--------------------
|
|
200
|
+
- Update required setuptools version.
|
|
201
|
+
- Improve and simplify setup and packaging.
|
|
202
|
+
|
|
203
|
+
1.0.0b3 (2018-02-26)
|
|
204
|
+
--------------------
|
|
205
|
+
- Improve and simplify setup and packaging.
|
|
206
|
+
|
|
207
|
+
1.0.0b2 (2018-01-28)
|
|
208
|
+
--------------------
|
|
209
|
+
- Fix a bug and inconsistencies in tox.ini
|
|
210
|
+
- Update of README.rst.
|
|
211
|
+
|
|
212
|
+
0.9.7b2 (2018-01-24)
|
|
213
|
+
--------------------
|
|
214
|
+
- Little update of README.rst
|
|
215
|
+
|
|
216
|
+
0.9.7b1 (2018-01-24)
|
|
217
|
+
--------------------
|
|
218
|
+
- Update required Sphinx version.
|
|
219
|
+
- Update doc Sphinx configuration files.
|
|
220
|
+
|
|
221
|
+
0.9.5b1 (2017-11-18)
|
|
222
|
+
--------------------
|
|
223
|
+
- Add slownie_zl and slownie_zl100gr.
|
|
224
|
+
- Setup improvements.
|
|
225
|
+
- Other minor improvements.
|
|
226
|
+
|
|
227
|
+
0.9.0b0 (2017-04-03)
|
|
228
|
+
--------------------
|
|
229
|
+
- First useful release.
|
|
230
|
+
|
|
231
|
+
0.1.0 (2016-09-23)
|
|
232
|
+
------------------
|
|
233
|
+
- Initial release.
|
|
@@ -6,14 +6,16 @@ Polish spelled-out numbers and amounts.
|
|
|
6
6
|
Overview
|
|
7
7
|
========
|
|
8
8
|
|
|
9
|
-
| **slownie(value):**
|
|
10
|
-
| **slownie_zl(amount):**
|
|
11
|
-
| **slownie_zl100gr(amount):**
|
|
9
|
+
| **slownie(value):**
|
|
10
|
+
| **slownie_zl(amount):**
|
|
11
|
+
| **slownie_zl100gr(amount):**
|
|
12
12
|
|
|
13
13
|
Provides routines to spell out numbers and amounts in Polish.
|
|
14
14
|
|
|
15
15
|
`PyPI record`_.
|
|
16
16
|
|
|
17
|
+
`Documentation`_.
|
|
18
|
+
|
|
17
19
|
Usage
|
|
18
20
|
-----
|
|
19
21
|
|
|
@@ -32,10 +34,9 @@ Installation
|
|
|
32
34
|
|
|
33
35
|
Prerequisites:
|
|
34
36
|
|
|
35
|
-
+ Python 3.
|
|
37
|
+
+ Python 3.8 or higher
|
|
36
38
|
|
|
37
39
|
* https://www.python.org/
|
|
38
|
-
* 3.7 is a primary test environment.
|
|
39
40
|
|
|
40
41
|
+ pip and setuptools
|
|
41
42
|
|
|
@@ -57,7 +58,7 @@ Prerequisites:
|
|
|
57
58
|
|
|
58
59
|
python -m pip install --upgrade tox
|
|
59
60
|
|
|
60
|
-
Visit `
|
|
61
|
+
Visit `Development page`_.
|
|
61
62
|
|
|
62
63
|
Installation from sources:
|
|
63
64
|
|
|
@@ -82,7 +83,7 @@ or on development mode:
|
|
|
82
83
|
License
|
|
83
84
|
=======
|
|
84
85
|
|
|
85
|
-
| Copyright (c) 2016-
|
|
86
|
+
| Copyright (c) 2016-2024 Adam Karpierz
|
|
86
87
|
| Licensed under the zlib/libpng License
|
|
87
88
|
| https://opensource.org/licenses/Zlib
|
|
88
89
|
| Please refer to the accompanying LICENSE file.
|
|
@@ -95,5 +96,6 @@ Authors
|
|
|
95
96
|
.. |package| replace:: slownie
|
|
96
97
|
.. |package_bold| replace:: **slownie**
|
|
97
98
|
.. |respository| replace:: https://github.com/karpierz/slownie.git
|
|
98
|
-
..
|
|
99
|
+
.. _Development page: https://github.com/karpierz/slownie
|
|
99
100
|
.. _PyPI record: https://pypi.org/project/slownie/
|
|
101
|
+
.. _Documentation: https://slownie.readthedocs.io/
|
|
@@ -4,14 +4,7 @@
|
|
|
4
4
|
# list see the documentation:
|
|
5
5
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
from io import open
|
|
9
|
-
from glob import glob
|
|
10
|
-
|
|
11
|
-
top_dir = path.dirname(path.dirname(path.abspath(__file__)))
|
|
12
|
-
with open(glob(path.join(top_dir, "src/*/__about__.py"))[0],
|
|
13
|
-
encoding="utf-8") as f:
|
|
14
|
-
class about: exec(f.read(), None)
|
|
7
|
+
__import__("pkg_about").about_from_setup()
|
|
15
8
|
|
|
16
9
|
def setup(app):
|
|
17
10
|
pass
|
|
@@ -41,7 +34,7 @@ release = about.__version__
|
|
|
41
34
|
|
|
42
35
|
# If your documentation needs a minimal Sphinx version, state it here.
|
|
43
36
|
#
|
|
44
|
-
needs_sphinx = '
|
|
37
|
+
needs_sphinx = '3.4.3'
|
|
45
38
|
|
|
46
39
|
# Add any Sphinx extension module names here, as strings. They can be
|
|
47
40
|
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
|
@@ -55,7 +48,11 @@ extensions = [
|
|
|
55
48
|
#'sphinx.ext.coverage',
|
|
56
49
|
'sphinx.ext.ifconfig',
|
|
57
50
|
'sphinx.ext.napoleon',
|
|
58
|
-
#'
|
|
51
|
+
#'sphinx_toolbox',
|
|
52
|
+
'sphinx_tabs.tabs',
|
|
53
|
+
'sphinx_copybutton',
|
|
54
|
+
'sphinxcontrib.spelling',
|
|
55
|
+
'nbsphinx',
|
|
59
56
|
]
|
|
60
57
|
|
|
61
58
|
# Needed for e.g. linkcheck builder
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
# Copyright (c) 2016-2024 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>=68.2.2', 'wheel>=0.41.3', 'packaging>=23.2.0', 'tox>=3.28.0,<4']
|
|
8
|
+
|
|
9
|
+
[project]
|
|
10
|
+
name = 'slownie'
|
|
11
|
+
version = '1.2.0'
|
|
12
|
+
description = 'Polish spelled-out numbers and amounts.'
|
|
13
|
+
urls.Homepage = 'https://pypi.org/project/slownie/'
|
|
14
|
+
urls.Documentation = 'https://slownie.readthedocs.io/'
|
|
15
|
+
urls.Download = 'https://pypi.org/project/slownie/'
|
|
16
|
+
urls.Source = 'https://github.com/karpierz/slownie'
|
|
17
|
+
urls.Issues = 'https://github.com/karpierz/slownie/issues'
|
|
18
|
+
license = { text = 'zlib/libpng License ; https://opensource.org/licenses/Zlib' }
|
|
19
|
+
authors = [
|
|
20
|
+
{ name = 'Adam Karpierz' },
|
|
21
|
+
{ email = 'adam@karpierz.net' },
|
|
22
|
+
]
|
|
23
|
+
maintainers = [
|
|
24
|
+
{ name = 'Adam Karpierz' },
|
|
25
|
+
{ email = 'adam@karpierz.net' },
|
|
26
|
+
]
|
|
27
|
+
keywords = ['slownie']
|
|
28
|
+
classifiers = [
|
|
29
|
+
'Development Status :: 5 - Production/Stable',
|
|
30
|
+
'Intended Audience :: Developers',
|
|
31
|
+
'License :: OSI Approved :: zlib/libpng License',
|
|
32
|
+
'Operating System :: OS Independent',
|
|
33
|
+
'Natural Language :: Polish',
|
|
34
|
+
'Programming Language :: Python',
|
|
35
|
+
'Programming Language :: Python :: 3',
|
|
36
|
+
'Programming Language :: Python :: 3.8',
|
|
37
|
+
'Programming Language :: Python :: 3.9',
|
|
38
|
+
'Programming Language :: Python :: 3.10',
|
|
39
|
+
'Programming Language :: Python :: 3.11',
|
|
40
|
+
'Programming Language :: Python :: 3.12',
|
|
41
|
+
'Programming Language :: Python :: 3 :: Only',
|
|
42
|
+
'Programming Language :: Python :: Implementation :: CPython',
|
|
43
|
+
'Programming Language :: Python :: Implementation :: PyPy',
|
|
44
|
+
'Topic :: Software Development :: Libraries :: Python Modules',
|
|
45
|
+
]
|
|
46
|
+
requires-python = '>=3.8.1,<4.0.0'
|
|
47
|
+
dependencies = [
|
|
48
|
+
# mandatory
|
|
49
|
+
'setuptools>=68.2.2',
|
|
50
|
+
'pkg_about>=1.1.0',
|
|
51
|
+
# others
|
|
52
|
+
]
|
|
53
|
+
dynamic = ['readme']
|
|
54
|
+
[project.optional-dependencies]
|
|
55
|
+
doc = [
|
|
56
|
+
'docutils>=0.18.1,<0.20',
|
|
57
|
+
'Sphinx>=7.1.2',
|
|
58
|
+
'sphinx-toolbox>=3.5.0',
|
|
59
|
+
'sphinx-tabs>=3.4.1',
|
|
60
|
+
'sphinx-copybutton>=0.5.1',
|
|
61
|
+
'sphinxcontrib-spelling>=7.7.0',
|
|
62
|
+
'sphinx-lint>=0.6.7',
|
|
63
|
+
'restructuredtext-lint>=1.4.0',
|
|
64
|
+
'nbsphinx>=0.8.10',
|
|
65
|
+
]
|
|
66
|
+
test = [
|
|
67
|
+
'deepdiff>=6.7.1',
|
|
68
|
+
'rich>=13.7.0',
|
|
69
|
+
]
|
|
70
|
+
|
|
71
|
+
[project.scripts]
|
|
72
|
+
#'slownie' = 'slownie.__main__:main'
|
|
73
|
+
|
|
74
|
+
[project.gui-scripts]
|
|
75
|
+
#'slownie-gui' = 'slownie:main_gui'
|
|
76
|
+
|
|
77
|
+
#[project.entry-points.'slownie.magical']
|
|
78
|
+
#epoint = 'slownie:main_epoint'
|
|
79
|
+
|
|
80
|
+
[tool.setuptools.dynamic]
|
|
81
|
+
readme = { file = ['README.rst', 'CHANGES.rst'], content-type = 'text/x-rst; charset=UTF-8' }
|
|
82
|
+
|
|
83
|
+
[tool.setuptools]
|
|
84
|
+
license-files = ['LICENSE']
|
|
85
|
+
include-package-data = true
|
|
86
|
+
platforms = ['any']
|
|
87
|
+
zip-safe = true
|
|
88
|
+
|
|
89
|
+
[tool.setuptools.packages.find]
|
|
90
|
+
namespaces = false
|
|
91
|
+
where = ['src']
|
|
92
|
+
|
|
93
|
+
[tool.setuptools.package-dir]
|
|
94
|
+
'' = 'src'
|
|
95
|
+
#'slownie.tests' = 'tests'
|
|
96
|
+
|
|
97
|
+
[tool.setuptools.package-data]
|
|
98
|
+
slownie = [
|
|
99
|
+
]
|
|
100
|
+
|
|
101
|
+
[tool.coverage.run]
|
|
102
|
+
source = [
|
|
103
|
+
'slownie',
|
|
104
|
+
'tests',
|
|
105
|
+
]
|
|
106
|
+
omit = [
|
|
107
|
+
]
|
|
108
|
+
data_file = '.tox/coverage/.coverage'
|
|
109
|
+
|
|
110
|
+
[tool.coverage.report]
|
|
111
|
+
exclude_lines = [
|
|
112
|
+
# Regexes
|
|
113
|
+
# Have to re-enable the standard pragma
|
|
114
|
+
'pragma: no cover',
|
|
115
|
+
'pragma: nocover',
|
|
116
|
+
'if\s+self\.debug\s+:',
|
|
117
|
+
'if\s+__debug__\s+:',
|
|
118
|
+
'raise (AssertionError|NotImplementedError)',
|
|
119
|
+
'if\s+(0|False)\s*:',
|
|
120
|
+
'''if\s+__name__.*\s*==\s*'__main__'\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
|
+
envlist = py{38,39,310,311,312}, pypy{39,310}, docs
|
|
161
|
+
minversion = 3.28.0,<4
|
|
162
|
+
isolated_build = true
|
|
163
|
+
skip_missing_interpreters = true
|
|
164
|
+
requires =
|
|
165
|
+
{[base]setup_requires}
|
|
166
|
+
tox-venv>=0.4.0
|
|
167
|
+
tox-backticks>=0.3.0
|
|
168
|
+
tox-tags>=0.2.0
|
|
169
|
+
tox-run-before>=0.1.0
|
|
170
|
+
|
|
171
|
+
[base]
|
|
172
|
+
setup_requires =
|
|
173
|
+
pip>=23.3.1
|
|
174
|
+
setuptools>=68.2.2
|
|
175
|
+
wheel>=0.41.3
|
|
176
|
+
packagesubdir = slownie
|
|
177
|
+
|
|
178
|
+
[testenv]
|
|
179
|
+
passenv = WINDIR
|
|
180
|
+
commands =
|
|
181
|
+
{envpython} --version
|
|
182
|
+
{envpython} -B -m tests {posargs}
|
|
183
|
+
extras = test
|
|
184
|
+
deps =
|
|
185
|
+
{[base]setup_requires}
|
|
186
|
+
|
|
187
|
+
[testenv:prepare]
|
|
188
|
+
basepython = python3.11
|
|
189
|
+
skip_install = true
|
|
190
|
+
allowlist_externals =
|
|
191
|
+
cmd
|
|
192
|
+
.build
|
|
193
|
+
commands =
|
|
194
|
+
cmd /C if exist .build.cmd .build.cmd
|
|
195
|
+
|
|
196
|
+
[testenv:coverage]
|
|
197
|
+
basepython = python3.11
|
|
198
|
+
commands =
|
|
199
|
+
{envpython} -m coverage erase
|
|
200
|
+
-{envpython} -B -m coverage run -m tests {posargs}
|
|
201
|
+
{envpython} -m coverage report
|
|
202
|
+
{envpython} -m coverage html
|
|
203
|
+
deps =
|
|
204
|
+
{[testenv]deps}
|
|
205
|
+
coverage>=7.3.2
|
|
206
|
+
diff-cover>=7.6.0
|
|
207
|
+
|
|
208
|
+
[testenv:docs]
|
|
209
|
+
basepython = python3.11
|
|
210
|
+
commands =
|
|
211
|
+
{envpython} -m sphinxlint --ignore .tox --ignore build --ignore dist
|
|
212
|
+
#{envpython} -m sphinx.apidoc -f {envsitepackagesdir}/{[base]packagesubdir}
|
|
213
|
+
{envpython} -m sphinx.cmd.build -W -a -b html -E ./docs ./build/docs/html
|
|
214
|
+
{envpython} -m sphinx.cmd.build -W -a -b linkcheck ./docs ./build/docs/html
|
|
215
|
+
{envpython} -m sphinx.cmd.build -W -a -b doctest ./docs ./build/docs/html
|
|
216
|
+
extras = doc
|
|
217
|
+
deps =
|
|
218
|
+
|
|
219
|
+
[testenv:build]
|
|
220
|
+
basepython = python3.11
|
|
221
|
+
setenv =
|
|
222
|
+
PKG_PVER=`{envpython} -c "import platform ; print(''.join(platform.python_version_tuple()[:2]), end='')" 2> nul`
|
|
223
|
+
PKG_NAME=`{envpython} -c "import warnings ; warnings.filterwarnings('ignore') ; import setuptools ; setuptools._distutils.core._setup_stop_after='config' ; print(setuptools.setup().metadata.get_name(), end='')" 2> nul`
|
|
224
|
+
PKG_DIST=`{envpython} -c "import warnings ; warnings.filterwarnings('ignore') ; import setuptools ; setuptools._distutils.core._setup_stop_after='config' ; print(setuptools.setup().metadata.get_fullname(), end='')" 2> nul`
|
|
225
|
+
commands =
|
|
226
|
+
{[testenv]commands}
|
|
227
|
+
{[testenv:docs]commands}
|
|
228
|
+
{envpython} -c "import warnings ; warnings.filterwarnings('ignore') ; from setuptools import setup ; setup()" --quiet sdist --formats=zip
|
|
229
|
+
{envpython} -c "import warnings ; warnings.filterwarnings('ignore') ; from setuptools import setup ; setup()" --quiet bdist_wheel
|
|
230
|
+
# check out for PyPi
|
|
231
|
+
{envpython} -m twine check dist/*
|
|
232
|
+
extras =
|
|
233
|
+
{[testenv]extras}
|
|
234
|
+
{[testenv:docs]extras}
|
|
235
|
+
deps =
|
|
236
|
+
{[testenv]deps}
|
|
237
|
+
{[testenv:docs]deps}
|
|
238
|
+
twine>=4.0.2
|
|
239
|
+
|
|
240
|
+
[testenv:publish]
|
|
241
|
+
basepython = python3.11
|
|
242
|
+
setenv =
|
|
243
|
+
{[testenv:build]setenv}
|
|
244
|
+
commands =
|
|
245
|
+
{[testenv:build]commands}
|
|
246
|
+
# publish on PyPi
|
|
247
|
+
{envpython} -m twine upload dist/*
|
|
248
|
+
extras =
|
|
249
|
+
{[testenv:build]extras}
|
|
250
|
+
deps =
|
|
251
|
+
{[testenv:build]deps}
|
|
252
|
+
twine>=4.0.2
|
|
253
|
+
|
|
254
|
+
[testenv:lint]
|
|
255
|
+
basepython = python3.11
|
|
256
|
+
commands =
|
|
257
|
+
{envpython} -m flake8 {envsitepackagesdir}/{[base]packagesubdir}/
|
|
258
|
+
extras =
|
|
259
|
+
deps =
|
|
260
|
+
{[testenv]deps}
|
|
261
|
+
flake8>=6.1.0
|
|
262
|
+
flake8-pyproject>=1.2.3
|
|
263
|
+
flake8-docstrings>=1.7.0
|
|
264
|
+
pep8-naming>=0.13.3
|
|
265
|
+
flake8-builtins>=2.2.0
|
|
266
|
+
flake8-deprecated>=2.2.1
|
|
267
|
+
"""
|
slownie-1.2.0/setup.cfg
ADDED