slownie 1.3.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.
@@ -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
@@ -0,0 +1,97 @@
1
+ Changelog
2
+ =========
3
+
4
+ 1.3.4 (2024-12-13)
5
+ ------------------
6
+ - Source distribution (\*.tar.gz now) is compliant with PEP-0625.
7
+ - Setup (dependencies) update.
8
+
9
+ 1.3.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.3.2 (2024-10-30)
18
+ ------------------
19
+ - Drop support for Python 3.8
20
+ - Setup (dependencies) update.
21
+
22
+ 1.2.4 (2024-08-13)
23
+ ------------------
24
+ - Add support for Python 3.13
25
+ - Setup (dependencies) update.
26
+
27
+ 1.2.3 (2024-01-26)
28
+ ------------------
29
+ - Setup update (now based on tox >= 4.0).
30
+ - Cleanup.
31
+
32
+ 1.2.0 (2023-12-15)
33
+ ------------------
34
+ - | Added 'conjunction' parameter for the slownie_zl() function.
35
+ | Thanks to Tomasz Pichlinski (@tomaszpichlinskiapz).
36
+ - | The supported parts of the amount have been extended up to
37
+ | 'duodecyliard'.
38
+ - Add support for Python 3.12
39
+ - Drop support for Python 3.7
40
+ - Add support for PyPy 3.9 and 3.10
41
+ - Copyright year update.
42
+ - Tox configuration has been moved to pyproject.toml
43
+
44
+ 1.1.3 (2022-09-02)
45
+ ------------------
46
+ - Add support for Python 3.10 and 3.11
47
+ - Drop support for Python 3.6
48
+ - Copyright year update.
49
+ - Setup update (currently based mainly on pyproject.toml).
50
+
51
+ 1.1.2 (2020-10-17)
52
+ ------------------
53
+ - Add support for Python 3.8 and 3.9
54
+ - Drop support for Python 3.5
55
+ - Drop support for Python 2
56
+ - Fix a bug in slownie_zl().
57
+ - Add unittests.
58
+ - General update and cleanup.
59
+ - Fixed docs setup.
60
+
61
+ 1.0.0rc1 (2018-11-21)
62
+ ---------------------
63
+ - Fix a bug in slownie_zl() and slownie_zl100gr()
64
+ - | Code improvement according to the suggestion and the patch
65
+ | from Michal Borkowski (https://github.com/wielkiborsuk).
66
+ | Thank you very much, Michal!
67
+
68
+ 1.0.0b5 (2018-11-08)
69
+ --------------------
70
+ - Drop support for Python 2.6 and 3.0-3.3
71
+ - Update required setuptools version.
72
+
73
+ 1.0.0b4 (2018-05-08)
74
+ --------------------
75
+ - Update required setuptools version.
76
+ - Improve and simplify setup and packaging.
77
+
78
+ 1.0.0b2 (2018-01-28)
79
+ --------------------
80
+ - Fix a bug and inconsistencies in tox.ini
81
+ - Update of README.rst.
82
+ - Update required Sphinx version.
83
+ - Update doc Sphinx configuration files.
84
+
85
+ 0.9.5b1 (2017-11-18)
86
+ --------------------
87
+ - Add slownie_zl and slownie_zl100gr.
88
+ - Setup improvements.
89
+ - Other minor improvements.
90
+
91
+ 0.9.0b0 (2017-04-03)
92
+ --------------------
93
+ - First useful release.
94
+
95
+ 0.1.0 (2016-09-23)
96
+ ------------------
97
+ - Initial release.
slownie-1.3.4/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ zlib License
2
+
3
+ Copyright (C) 2016-2024 Adam Karpierz
4
+
5
+ This software is provided 'as-is', without any express or implied
6
+ warranty. In no event will the authors be held liable for any damages
7
+ arising from the use of this software.
8
+
9
+ Permission is granted to anyone to use this software for any purpose,
10
+ including commercial applications, and to alter it and redistribute it
11
+ freely, subject to the following restrictions:
12
+
13
+ 1. The origin of this software must not be misrepresented; you must not
14
+ claim that you wrote the original software. If you use this software
15
+ in a product, an acknowledgment in the product documentation would be
16
+ appreciated but is not required.
17
+ 2. Altered source versions must be plainly marked as such, and must not be
18
+ misrepresented as being the original software.
19
+ 3. This notice may not be removed or altered from any source distribution.
@@ -0,0 +1,18 @@
1
+ # Copyright (c) 2016 Adam Karpierz
2
+ # SPDX-License-Identifier: Zlib
3
+
4
+ include README.rst
5
+ include CHANGES.rst
6
+ include LICENSE
7
+ include pyproject.toml
8
+ include .readthedocs.yml
9
+
10
+ graft docs
11
+
12
+ graft src
13
+
14
+ graft tests
15
+
16
+ global-exclude \#* \#*/**
17
+ global-exclude .build .build/** .build.* .build.*/**
18
+ global-exclude *.py[cod] __pycache__
slownie-1.3.4/PKG-INFO ADDED
@@ -0,0 +1,250 @@
1
+ Metadata-Version: 2.1
2
+ Name: slownie
3
+ Version: 1.3.4
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/license/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.9
25
+ Classifier: Programming Language :: Python :: 3.10
26
+ Classifier: Programming Language :: Python :: 3.11
27
+ Classifier: Programming Language :: Python :: 3.12
28
+ Classifier: Programming Language :: Python :: 3.13
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.9.0
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
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"
47
+ Provides-Extra: test
48
+ Requires-Dist: deepdiff>=8.0.1; extra == "test"
49
+ Requires-Dist: rich>=13.9.4; extra == "test"
50
+
51
+ slownie
52
+ =======
53
+
54
+ Polish spelled-out numbers and amounts.
55
+
56
+ Overview
57
+ ========
58
+
59
+ | **slownie(value):**
60
+ | **slownie_zl(amount):**
61
+ | **slownie_zl100gr(amount):**
62
+
63
+ Provides routines to spell out numbers and amounts in Polish.
64
+
65
+ `PyPI record`_.
66
+
67
+ `Documentation`_.
68
+
69
+ Usage
70
+ -----
71
+
72
+ .. code:: python
73
+
74
+ >>> from slownie import *
75
+ >>> slownie(12892)
76
+ dwanaście tysięcy osiemset dziewięćdziesiąt dwa
77
+ >>> slownie_zl(123.34)
78
+ sto dwadzieścia trzy złote trzydzieści cztery grosze
79
+ >>> slownie_zl100gr(123.34)
80
+ sto dwadzieścia trzy złote 34/100
81
+
82
+ Installation
83
+ ============
84
+
85
+ Prerequisites:
86
+
87
+ + Python 3.9 or higher
88
+
89
+ * https://www.python.org/
90
+
91
+ + pip and setuptools
92
+
93
+ * https://pypi.org/project/pip/
94
+ * https://pypi.org/project/setuptools/
95
+
96
+ To install run:
97
+
98
+ .. parsed-literal::
99
+
100
+ python -m pip install --upgrade |package|
101
+
102
+ Development
103
+ ===========
104
+
105
+ Prerequisites:
106
+
107
+ + Development is strictly based on *tox*. To install it run::
108
+
109
+ python -m pip install --upgrade tox
110
+
111
+ Visit `Development page`_.
112
+
113
+ Installation from sources:
114
+
115
+ clone the sources:
116
+
117
+ .. parsed-literal::
118
+
119
+ git clone |respository| |package|
120
+
121
+ and run:
122
+
123
+ .. parsed-literal::
124
+
125
+ python -m pip install ./|package|
126
+
127
+ or on development mode:
128
+
129
+ .. parsed-literal::
130
+
131
+ python -m pip install --editable ./|package|
132
+
133
+ License
134
+ =======
135
+
136
+ | |copyright|
137
+ | Licensed under the zlib/libpng License
138
+ | https://opensource.org/license/zlib
139
+ | Please refer to the accompanying LICENSE file.
140
+
141
+ Authors
142
+ =======
143
+
144
+ * Adam Karpierz <adam@karpierz.net>
145
+
146
+ .. |package| replace:: slownie
147
+ .. |package_bold| replace:: **slownie**
148
+ .. |copyright| replace:: Copyright (c) 2016-2024 Adam Karpierz
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.3.4 (2024-12-13)
158
+ ------------------
159
+ - Source distribution (\*.tar.gz now) is compliant with PEP-0625.
160
+ - Setup (dependencies) update.
161
+
162
+ 1.3.3 (2024-11-13)
163
+ ------------------
164
+ - More unittests.
165
+ - 100% code linting.
166
+ - 100% code coverage.
167
+ - Tox configuration is now in native (toml) format.
168
+ - Setup (dependencies) update.
169
+
170
+ 1.3.2 (2024-10-30)
171
+ ------------------
172
+ - Drop support for Python 3.8
173
+ - Setup (dependencies) update.
174
+
175
+ 1.2.4 (2024-08-13)
176
+ ------------------
177
+ - Add support for Python 3.13
178
+ - Setup (dependencies) update.
179
+
180
+ 1.2.3 (2024-01-26)
181
+ ------------------
182
+ - Setup update (now based on tox >= 4.0).
183
+ - Cleanup.
184
+
185
+ 1.2.0 (2023-12-15)
186
+ ------------------
187
+ - | Added 'conjunction' parameter for the slownie_zl() function.
188
+ | Thanks to Tomasz Pichlinski (@tomaszpichlinskiapz).
189
+ - | The supported parts of the amount have been extended up to
190
+ | 'duodecyliard'.
191
+ - Add support for Python 3.12
192
+ - Drop support for Python 3.7
193
+ - Add support for PyPy 3.9 and 3.10
194
+ - Copyright year update.
195
+ - Tox configuration has been moved to pyproject.toml
196
+
197
+ 1.1.3 (2022-09-02)
198
+ ------------------
199
+ - Add support for Python 3.10 and 3.11
200
+ - Drop support for Python 3.6
201
+ - Copyright year update.
202
+ - Setup update (currently based mainly on pyproject.toml).
203
+
204
+ 1.1.2 (2020-10-17)
205
+ ------------------
206
+ - Add support for Python 3.8 and 3.9
207
+ - Drop support for Python 3.5
208
+ - Drop support for Python 2
209
+ - Fix a bug in slownie_zl().
210
+ - Add unittests.
211
+ - General update and cleanup.
212
+ - Fixed docs setup.
213
+
214
+ 1.0.0rc1 (2018-11-21)
215
+ ---------------------
216
+ - Fix a bug in slownie_zl() and slownie_zl100gr()
217
+ - | Code improvement according to the suggestion and the patch
218
+ | from Michal Borkowski (https://github.com/wielkiborsuk).
219
+ | Thank you very much, Michal!
220
+
221
+ 1.0.0b5 (2018-11-08)
222
+ --------------------
223
+ - Drop support for Python 2.6 and 3.0-3.3
224
+ - Update required setuptools version.
225
+
226
+ 1.0.0b4 (2018-05-08)
227
+ --------------------
228
+ - Update required setuptools version.
229
+ - Improve and simplify setup and packaging.
230
+
231
+ 1.0.0b2 (2018-01-28)
232
+ --------------------
233
+ - Fix a bug and inconsistencies in tox.ini
234
+ - Update of README.rst.
235
+ - Update required Sphinx version.
236
+ - Update doc Sphinx configuration files.
237
+
238
+ 0.9.5b1 (2017-11-18)
239
+ --------------------
240
+ - Add slownie_zl and slownie_zl100gr.
241
+ - Setup improvements.
242
+ - Other minor improvements.
243
+
244
+ 0.9.0b0 (2017-04-03)
245
+ --------------------
246
+ - First useful release.
247
+
248
+ 0.1.0 (2016-09-23)
249
+ ------------------
250
+ - Initial release.
@@ -0,0 +1,102 @@
1
+ slownie
2
+ =======
3
+
4
+ Polish spelled-out numbers and amounts.
5
+
6
+ Overview
7
+ ========
8
+
9
+ | **slownie(value):**
10
+ | **slownie_zl(amount):**
11
+ | **slownie_zl100gr(amount):**
12
+
13
+ Provides routines to spell out numbers and amounts in Polish.
14
+
15
+ `PyPI record`_.
16
+
17
+ `Documentation`_.
18
+
19
+ Usage
20
+ -----
21
+
22
+ .. code:: python
23
+
24
+ >>> from slownie import *
25
+ >>> slownie(12892)
26
+ dwanaście tysięcy osiemset dziewięćdziesiąt dwa
27
+ >>> slownie_zl(123.34)
28
+ sto dwadzieścia trzy złote trzydzieści cztery grosze
29
+ >>> slownie_zl100gr(123.34)
30
+ sto dwadzieścia trzy złote 34/100
31
+
32
+ Installation
33
+ ============
34
+
35
+ Prerequisites:
36
+
37
+ + Python 3.9 or higher
38
+
39
+ * https://www.python.org/
40
+
41
+ + pip and setuptools
42
+
43
+ * https://pypi.org/project/pip/
44
+ * https://pypi.org/project/setuptools/
45
+
46
+ To install run:
47
+
48
+ .. parsed-literal::
49
+
50
+ python -m pip install --upgrade |package|
51
+
52
+ Development
53
+ ===========
54
+
55
+ Prerequisites:
56
+
57
+ + Development is strictly based on *tox*. To install it run::
58
+
59
+ python -m pip install --upgrade tox
60
+
61
+ Visit `Development page`_.
62
+
63
+ Installation from sources:
64
+
65
+ clone the sources:
66
+
67
+ .. parsed-literal::
68
+
69
+ git clone |respository| |package|
70
+
71
+ and run:
72
+
73
+ .. parsed-literal::
74
+
75
+ python -m pip install ./|package|
76
+
77
+ or on development mode:
78
+
79
+ .. parsed-literal::
80
+
81
+ python -m pip install --editable ./|package|
82
+
83
+ License
84
+ =======
85
+
86
+ | |copyright|
87
+ | Licensed under the zlib/libpng License
88
+ | https://opensource.org/license/zlib
89
+ | Please refer to the accompanying LICENSE file.
90
+
91
+ Authors
92
+ =======
93
+
94
+ * Adam Karpierz <adam@karpierz.net>
95
+
96
+ .. |package| replace:: slownie
97
+ .. |package_bold| replace:: **slownie**
98
+ .. |copyright| replace:: Copyright (c) 2016-2024 Adam Karpierz
99
+ .. |respository| replace:: https://github.com/karpierz/slownie.git
100
+ .. _Development page: https://github.com/karpierz/slownie
101
+ .. _PyPI record: https://pypi.org/project/slownie/
102
+ .. _Documentation: https://slownie.readthedocs.io/
@@ -0,0 +1,2 @@
1
+ .. _changes:
2
+ .. include:: ../CHANGES.rst
@@ -0,0 +1 @@
1
+ .. include:: ../README.rst
File without changes
File without changes
@@ -0,0 +1,114 @@
1
+ # Configuration file for the Sphinx documentation builder.
2
+ #
3
+ # This file only contains a selection of the most common options. For a full
4
+ # list see the documentation:
5
+ # https://www.sphinx-doc.org/en/master/usage/configuration.html
6
+
7
+ __import__("pkg_about").about_from_setup()
8
+
9
+ def setup(app):
10
+ pass
11
+
12
+ # -- Path setup --------------------------------------------------------------
13
+
14
+ # If extensions (or modules to document with autodoc) are in another directory,
15
+ # add these directories to sys.path here. If the directory is relative to the
16
+ # documentation root, use os.path.abspath to make it absolute, like shown here.
17
+ #
18
+ # import os
19
+ # import sys
20
+ # sys.path.insert(0, os.path.abspath('.'))
21
+
22
+
23
+ # -- Project information -----------------------------------------------------
24
+
25
+ project = about.__title__
26
+ copyright = about.__copyright__
27
+ author = about.__author__
28
+
29
+ # The full version, including alpha/beta/rc tags
30
+ release = about.__version__
31
+
32
+
33
+ # -- General configuration ---------------------------------------------------
34
+
35
+ # If your documentation needs a minimal Sphinx version, state it here.
36
+ #
37
+ needs_sphinx = '7.4.7'
38
+
39
+ # Add any Sphinx extension module names here, as strings. They can be
40
+ # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
41
+ # ones.
42
+ extensions = [
43
+ 'sphinx.ext.autodoc',
44
+ 'sphinx.ext.autosummary',
45
+ 'sphinx.ext.doctest',
46
+ 'sphinx.ext.intersphinx',
47
+ #'sphinx.ext.todo',
48
+ #'sphinx.ext.coverage',
49
+ 'sphinx.ext.ifconfig',
50
+ 'sphinx.ext.napoleon',
51
+ #'sphinx_toolbox',
52
+ 'sphinx_tabs.tabs',
53
+ 'sphinx_copybutton',
54
+ 'sphinxcontrib.spelling',
55
+ 'nbsphinx',
56
+ ]
57
+
58
+ # Needed for e.g. linkcheck builder
59
+ tls_verify = False
60
+
61
+ # Add any paths that contain templates here, relative to this directory.
62
+ templates_path = ['_templates']
63
+
64
+ # The encoding of source files.
65
+ #
66
+ source_encoding = 'utf-8'
67
+
68
+ # The master toctree document.
69
+ master_doc = 'index'
70
+
71
+ # List of patterns, relative to source directory, that match files and
72
+ # directories to ignore when looking for source files.
73
+ # This pattern also affects html_static_path and html_extra_path.
74
+ exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
75
+
76
+ # The name of the Pygments (syntax highlighting) style to use.
77
+ pygments_style = 'sphinx'
78
+
79
+
80
+ # -- Options for HTML output -------------------------------------------------
81
+
82
+ # The theme to use for HTML and HTML Help pages. See the documentation for
83
+ # a list of builtin themes.
84
+ #
85
+ html_theme = 'bizstyle' # 'alabaster'
86
+
87
+ # Add any paths that contain custom static files (such as style sheets) here,
88
+ # relative to this directory. They are copied after the builtin static files,
89
+ # so a file named "default.css" will overwrite the builtin "default.css".
90
+ html_static_path = ['_static']
91
+
92
+
93
+ # -- Extension configuration -------------------------------------------------
94
+
95
+ # -- Options for autodoc extension -------------------------------------------
96
+
97
+ autoclass_content = 'both'
98
+ autodoc_member_order = 'bysource'
99
+
100
+ # -- Options for apidoc extension --------------------------------------------
101
+
102
+ apidoc_separate_modules = True
103
+ apidoc_module_first = True
104
+ apidoc_output_dir = 'api'
105
+
106
+ # -- Options for intersphinx extension ---------------------------------------
107
+
108
+ # Example configuration for intersphinx: refer to the Python standard library.
109
+ # intersphinx_mapping = {'https://docs.python.org/': None}
110
+
111
+ # -- Options for todo extension ----------------------------------------------
112
+
113
+ # If true, `todo` and `todoList` produce output, else they produce nothing.
114
+ todo_include_todos = False
@@ -0,0 +1,19 @@
1
+ slownie documentation
2
+ =====================
3
+
4
+ .. _readme:
5
+ .. include:: README.rst
6
+
7
+ Contents
8
+ ========
9
+
10
+ .. toctree::
11
+ :maxdepth: 2
12
+
13
+ CHANGES.rst
14
+
15
+ Indices and tables
16
+ ==================
17
+
18
+ * :ref:`genindex`
19
+ * :ref:`search`