py-utlx 0.0.0__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.
- py_utlx-0.0.0/.readthedocs.yml +15 -0
- py_utlx-0.0.0/CHANGES.rst +6 -0
- py_utlx-0.0.0/LICENSE +19 -0
- py_utlx-0.0.0/MANIFEST.in +18 -0
- py_utlx-0.0.0/PKG-INFO +148 -0
- py_utlx-0.0.0/README.rst +90 -0
- py_utlx-0.0.0/docs/CHANGES.rst +2 -0
- py_utlx-0.0.0/docs/README.rst +1 -0
- py_utlx-0.0.0/docs/_static/.keep +0 -0
- py_utlx-0.0.0/docs/_templates/.keep +0 -0
- py_utlx-0.0.0/docs/conf.py +117 -0
- py_utlx-0.0.0/docs/index.rst +19 -0
- py_utlx-0.0.0/pyproject.toml +314 -0
- py_utlx-0.0.0/setup.cfg +4 -0
- py_utlx-0.0.0/src/py_utlx.egg-info/PKG-INFO +148 -0
- py_utlx-0.0.0/src/py_utlx.egg-info/SOURCES.txt +26 -0
- py_utlx-0.0.0/src/py_utlx.egg-info/dependency_links.txt +1 -0
- py_utlx-0.0.0/src/py_utlx.egg-info/requires.txt +17 -0
- py_utlx-0.0.0/src/py_utlx.egg-info/top_level.txt +1 -0
- py_utlx-0.0.0/src/py_utlx.egg-info/zip-safe +1 -0
- py_utlx-0.0.0/src/utlx/__about__.py +4 -0
- py_utlx-0.0.0/src/utlx/__init__.py +6 -0
- py_utlx-0.0.0/src/utlx/_utlx.py +9 -0
- py_utlx-0.0.0/src/utlx/py.typed +0 -0
- py_utlx-0.0.0/tests/__init__.py +10 -0
- py_utlx-0.0.0/tests/__main__.py +36 -0
- py_utlx-0.0.0/tests/data/.keep +0 -0
- py_utlx-0.0.0/tests/test_main.py +13 -0
py_utlx-0.0.0/LICENSE
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
zlib License
|
|
2
|
+
|
|
3
|
+
Copyright (C) 2004-2025 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) 2004 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__ .mypy_cache
|
py_utlx-0.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: py-utlx
|
|
3
|
+
Version: 0.0.0
|
|
4
|
+
Summary: Utilities.
|
|
5
|
+
Author: Adam Karpierz
|
|
6
|
+
Author-email: adam@karpierz.net
|
|
7
|
+
Maintainer: Adam Karpierz
|
|
8
|
+
Maintainer-email: adam@karpierz.net
|
|
9
|
+
License-Expression: Zlib
|
|
10
|
+
Project-URL: Homepage, https://pypi.org/project/py-utlx/
|
|
11
|
+
Project-URL: Documentation, https://py-utlx.readthedocs.io/
|
|
12
|
+
Project-URL: Download, https://pypi.org/project/py-utlx/
|
|
13
|
+
Project-URL: Source, https://github.com/karpierz/py-utlx
|
|
14
|
+
Project-URL: Issues, https://github.com/karpierz/py-utlx/issues
|
|
15
|
+
Keywords: py-utlx,utlx,util,utils
|
|
16
|
+
Platform: any
|
|
17
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
18
|
+
Classifier: Intended Audience :: Developers
|
|
19
|
+
Classifier: Operating System :: OS Independent
|
|
20
|
+
Classifier: Natural Language :: Polish
|
|
21
|
+
Classifier: Programming Language :: Python
|
|
22
|
+
Classifier: Programming Language :: Python :: 3
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
27
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
28
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
29
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
30
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
31
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
32
|
+
Requires-Python: <4.0.0,>=3.10.0
|
|
33
|
+
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
34
|
+
License-File: LICENSE
|
|
35
|
+
Requires-Dist: setuptools>=80.9.0
|
|
36
|
+
Requires-Dist: pkg-about>=1.4.0
|
|
37
|
+
Provides-Extra: doc
|
|
38
|
+
Requires-Dist: Sphinx>=8.1.3; extra == "doc"
|
|
39
|
+
Requires-Dist: sphinx-autodoc-typehints>=3.0.1; extra == "doc"
|
|
40
|
+
Requires-Dist: sphinx-toolbox>=4.0.0; 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.1; 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.7; extra == "doc"
|
|
47
|
+
Provides-Extra: test
|
|
48
|
+
Requires-Dist: deepdiff>=8.6.0; extra == "test"
|
|
49
|
+
Requires-Dist: rich>=14.1.0; extra == "test"
|
|
50
|
+
Dynamic: license-file
|
|
51
|
+
|
|
52
|
+
py-utlx
|
|
53
|
+
=======
|
|
54
|
+
|
|
55
|
+
Utilities.
|
|
56
|
+
|
|
57
|
+
Overview
|
|
58
|
+
========
|
|
59
|
+
|
|
60
|
+
TBD
|
|
61
|
+
|
|
62
|
+
`PyPI record`_.
|
|
63
|
+
|
|
64
|
+
`Documentation`_.
|
|
65
|
+
|
|
66
|
+
Usage
|
|
67
|
+
-----
|
|
68
|
+
|
|
69
|
+
TBD
|
|
70
|
+
|
|
71
|
+
Installation
|
|
72
|
+
============
|
|
73
|
+
|
|
74
|
+
Prerequisites:
|
|
75
|
+
|
|
76
|
+
+ Python 3.10 or higher
|
|
77
|
+
|
|
78
|
+
* https://www.python.org/
|
|
79
|
+
|
|
80
|
+
+ pip and setuptools
|
|
81
|
+
|
|
82
|
+
* https://pypi.org/project/pip/
|
|
83
|
+
* https://pypi.org/project/setuptools/
|
|
84
|
+
|
|
85
|
+
To install run:
|
|
86
|
+
|
|
87
|
+
.. parsed-literal::
|
|
88
|
+
|
|
89
|
+
python -m pip install --upgrade |package|
|
|
90
|
+
|
|
91
|
+
Development
|
|
92
|
+
===========
|
|
93
|
+
|
|
94
|
+
Prerequisites:
|
|
95
|
+
|
|
96
|
+
+ Development is strictly based on *tox*. To install it run::
|
|
97
|
+
|
|
98
|
+
python -m pip install --upgrade tox
|
|
99
|
+
|
|
100
|
+
Visit `Development page`_.
|
|
101
|
+
|
|
102
|
+
Installation from sources:
|
|
103
|
+
|
|
104
|
+
clone the sources:
|
|
105
|
+
|
|
106
|
+
.. parsed-literal::
|
|
107
|
+
|
|
108
|
+
git clone |respository| |package|
|
|
109
|
+
|
|
110
|
+
and run:
|
|
111
|
+
|
|
112
|
+
.. parsed-literal::
|
|
113
|
+
|
|
114
|
+
python -m pip install ./|package|
|
|
115
|
+
|
|
116
|
+
or on development mode:
|
|
117
|
+
|
|
118
|
+
.. parsed-literal::
|
|
119
|
+
|
|
120
|
+
python -m pip install --editable ./|package|
|
|
121
|
+
|
|
122
|
+
License
|
|
123
|
+
=======
|
|
124
|
+
|
|
125
|
+
| |copyright|
|
|
126
|
+
| Licensed under the zlib/libpng License
|
|
127
|
+
| https://opensource.org/license/zlib
|
|
128
|
+
| Please refer to the accompanying LICENSE file.
|
|
129
|
+
|
|
130
|
+
Authors
|
|
131
|
+
=======
|
|
132
|
+
|
|
133
|
+
* Adam Karpierz <adam@karpierz.net>
|
|
134
|
+
|
|
135
|
+
.. |package| replace:: py-utlx
|
|
136
|
+
.. |package_bold| replace:: **py-utlx**
|
|
137
|
+
.. |copyright| replace:: Copyright (c) 2004-2025 Adam Karpierz
|
|
138
|
+
.. |respository| replace:: https://github.com/karpierz/py-utlx.git
|
|
139
|
+
.. _Development page: https://github.com/karpierz/py-utlx
|
|
140
|
+
.. _PyPI record: https://pypi.org/project/py-utlx/
|
|
141
|
+
.. _Documentation: https://py-utlx.readthedocs.io/
|
|
142
|
+
|
|
143
|
+
Changelog
|
|
144
|
+
=========
|
|
145
|
+
|
|
146
|
+
0.0.0 (2024-08-13)
|
|
147
|
+
------------------
|
|
148
|
+
- Initial commit.
|
py_utlx-0.0.0/README.rst
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
py-utlx
|
|
2
|
+
=======
|
|
3
|
+
|
|
4
|
+
Utilities.
|
|
5
|
+
|
|
6
|
+
Overview
|
|
7
|
+
========
|
|
8
|
+
|
|
9
|
+
TBD
|
|
10
|
+
|
|
11
|
+
`PyPI record`_.
|
|
12
|
+
|
|
13
|
+
`Documentation`_.
|
|
14
|
+
|
|
15
|
+
Usage
|
|
16
|
+
-----
|
|
17
|
+
|
|
18
|
+
TBD
|
|
19
|
+
|
|
20
|
+
Installation
|
|
21
|
+
============
|
|
22
|
+
|
|
23
|
+
Prerequisites:
|
|
24
|
+
|
|
25
|
+
+ Python 3.10 or higher
|
|
26
|
+
|
|
27
|
+
* https://www.python.org/
|
|
28
|
+
|
|
29
|
+
+ pip and setuptools
|
|
30
|
+
|
|
31
|
+
* https://pypi.org/project/pip/
|
|
32
|
+
* https://pypi.org/project/setuptools/
|
|
33
|
+
|
|
34
|
+
To install run:
|
|
35
|
+
|
|
36
|
+
.. parsed-literal::
|
|
37
|
+
|
|
38
|
+
python -m pip install --upgrade |package|
|
|
39
|
+
|
|
40
|
+
Development
|
|
41
|
+
===========
|
|
42
|
+
|
|
43
|
+
Prerequisites:
|
|
44
|
+
|
|
45
|
+
+ Development is strictly based on *tox*. To install it run::
|
|
46
|
+
|
|
47
|
+
python -m pip install --upgrade tox
|
|
48
|
+
|
|
49
|
+
Visit `Development page`_.
|
|
50
|
+
|
|
51
|
+
Installation from sources:
|
|
52
|
+
|
|
53
|
+
clone the sources:
|
|
54
|
+
|
|
55
|
+
.. parsed-literal::
|
|
56
|
+
|
|
57
|
+
git clone |respository| |package|
|
|
58
|
+
|
|
59
|
+
and run:
|
|
60
|
+
|
|
61
|
+
.. parsed-literal::
|
|
62
|
+
|
|
63
|
+
python -m pip install ./|package|
|
|
64
|
+
|
|
65
|
+
or on development mode:
|
|
66
|
+
|
|
67
|
+
.. parsed-literal::
|
|
68
|
+
|
|
69
|
+
python -m pip install --editable ./|package|
|
|
70
|
+
|
|
71
|
+
License
|
|
72
|
+
=======
|
|
73
|
+
|
|
74
|
+
| |copyright|
|
|
75
|
+
| Licensed under the zlib/libpng License
|
|
76
|
+
| https://opensource.org/license/zlib
|
|
77
|
+
| Please refer to the accompanying LICENSE file.
|
|
78
|
+
|
|
79
|
+
Authors
|
|
80
|
+
=======
|
|
81
|
+
|
|
82
|
+
* Adam Karpierz <adam@karpierz.net>
|
|
83
|
+
|
|
84
|
+
.. |package| replace:: py-utlx
|
|
85
|
+
.. |package_bold| replace:: **py-utlx**
|
|
86
|
+
.. |copyright| replace:: Copyright (c) 2004-2025 Adam Karpierz
|
|
87
|
+
.. |respository| replace:: https://github.com/karpierz/py-utlx.git
|
|
88
|
+
.. _Development page: https://github.com/karpierz/py-utlx
|
|
89
|
+
.. _PyPI record: https://pypi.org/project/py-utlx/
|
|
90
|
+
.. _Documentation: https://py-utlx.readthedocs.io/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.. include:: ../README.rst
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,117 @@
|
|
|
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
|
+
from sphinx import application
|
|
8
|
+
|
|
9
|
+
about = __import__("pkg_about").about_from_setup()
|
|
10
|
+
|
|
11
|
+
def setup(app: application.Sphinx) -> None:
|
|
12
|
+
pass
|
|
13
|
+
|
|
14
|
+
# -- Path setup --------------------------------------------------------------
|
|
15
|
+
|
|
16
|
+
# If extensions (or modules to document with autodoc) are in another directory,
|
|
17
|
+
# add these directories to sys.path here. If the directory is relative to the
|
|
18
|
+
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
|
19
|
+
#
|
|
20
|
+
# import os
|
|
21
|
+
# import sys
|
|
22
|
+
# sys.path.insert(0, os.path.abspath('.'))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# -- Project information -----------------------------------------------------
|
|
26
|
+
|
|
27
|
+
project = about.__title__
|
|
28
|
+
author = about.__author__
|
|
29
|
+
copyright = about.__copyright__
|
|
30
|
+
|
|
31
|
+
# The full version, including alpha/beta/rc tags
|
|
32
|
+
release = about.__version__
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
# -- General configuration ---------------------------------------------------
|
|
36
|
+
|
|
37
|
+
# If your documentation needs a minimal Sphinx version, state it here.
|
|
38
|
+
#
|
|
39
|
+
needs_sphinx = '8.1.3'
|
|
40
|
+
|
|
41
|
+
# Add any Sphinx extension module names here, as strings. They can be
|
|
42
|
+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
|
43
|
+
# ones.
|
|
44
|
+
extensions = [
|
|
45
|
+
'sphinx.ext.autodoc',
|
|
46
|
+
'sphinx.ext.autosummary',
|
|
47
|
+
'sphinx.ext.doctest',
|
|
48
|
+
'sphinx.ext.intersphinx',
|
|
49
|
+
#'sphinx.ext.todo',
|
|
50
|
+
#'sphinx.ext.coverage',
|
|
51
|
+
'sphinx.ext.ifconfig',
|
|
52
|
+
'sphinx.ext.napoleon',
|
|
53
|
+
'sphinx_autodoc_typehints',
|
|
54
|
+
#'sphinx_toolbox',
|
|
55
|
+
'sphinx_tabs.tabs',
|
|
56
|
+
'sphinx_copybutton',
|
|
57
|
+
'sphinxcontrib.spelling',
|
|
58
|
+
'nbsphinx',
|
|
59
|
+
]
|
|
60
|
+
|
|
61
|
+
# Needed for e.g. linkcheck builder
|
|
62
|
+
tls_verify = False
|
|
63
|
+
|
|
64
|
+
# Add any paths that contain templates here, relative to this directory.
|
|
65
|
+
templates_path = ['_templates']
|
|
66
|
+
|
|
67
|
+
# The encoding of source files.
|
|
68
|
+
#
|
|
69
|
+
source_encoding = 'utf-8'
|
|
70
|
+
|
|
71
|
+
# The master toctree document.
|
|
72
|
+
master_doc = 'index'
|
|
73
|
+
|
|
74
|
+
# List of patterns, relative to source directory, that match files and
|
|
75
|
+
# directories to ignore when looking for source files.
|
|
76
|
+
# This pattern also affects html_static_path and html_extra_path.
|
|
77
|
+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
|
|
78
|
+
|
|
79
|
+
# The name of the Pygments (syntax highlighting) style to use.
|
|
80
|
+
pygments_style = 'sphinx'
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
# -- Options for HTML output -------------------------------------------------
|
|
84
|
+
|
|
85
|
+
# The theme to use for HTML and HTML Help pages. See the documentation for
|
|
86
|
+
# a list of builtin themes.
|
|
87
|
+
#
|
|
88
|
+
html_theme = 'bizstyle' # 'alabaster'
|
|
89
|
+
|
|
90
|
+
# Add any paths that contain custom static files (such as style sheets) here,
|
|
91
|
+
# relative to this directory. They are copied after the builtin static files,
|
|
92
|
+
# so a file named "default.css" will overwrite the builtin "default.css".
|
|
93
|
+
html_static_path = ['_static']
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
# -- Extension configuration -------------------------------------------------
|
|
97
|
+
|
|
98
|
+
# -- Options for autodoc extension -------------------------------------------
|
|
99
|
+
|
|
100
|
+
autoclass_content = 'both'
|
|
101
|
+
autodoc_member_order = 'bysource'
|
|
102
|
+
|
|
103
|
+
# -- Options for apidoc extension --------------------------------------------
|
|
104
|
+
|
|
105
|
+
apidoc_separate_modules = True
|
|
106
|
+
apidoc_module_first = True
|
|
107
|
+
apidoc_output_dir = 'api'
|
|
108
|
+
|
|
109
|
+
# -- Options for intersphinx extension ---------------------------------------
|
|
110
|
+
|
|
111
|
+
# Example configuration for intersphinx: refer to the Python standard library.
|
|
112
|
+
# intersphinx_mapping = {'https://docs.python.org/': None}
|
|
113
|
+
|
|
114
|
+
# -- Options for todo extension ----------------------------------------------
|
|
115
|
+
|
|
116
|
+
# If true, `todo` and `todoList` produce output, else they produce nothing.
|
|
117
|
+
todo_include_todos = False
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
utlx 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`
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
# Copyright (c) 2004 Adam Karpierz
|
|
2
|
+
# SPDX-License-Identifier: Zlib
|
|
3
|
+
|
|
4
|
+
[build-system]
|
|
5
|
+
build-backend = 'setuptools.build_meta'
|
|
6
|
+
requires = ['setuptools>=80.9.0', 'packaging>=25.0.0', 'tox>=4.29.0']
|
|
7
|
+
|
|
8
|
+
[project]
|
|
9
|
+
name = 'py-utlx'
|
|
10
|
+
version = '0.0.0'
|
|
11
|
+
description = 'Utilities.'
|
|
12
|
+
authors = [
|
|
13
|
+
{ name = 'Adam Karpierz' },
|
|
14
|
+
{ email = 'adam@karpierz.net' },
|
|
15
|
+
]
|
|
16
|
+
maintainers = [
|
|
17
|
+
{ name = 'Adam Karpierz' },
|
|
18
|
+
{ email = 'adam@karpierz.net' },
|
|
19
|
+
]
|
|
20
|
+
license = 'Zlib'
|
|
21
|
+
license-files = ['LICENSE']
|
|
22
|
+
urls.Homepage = 'https://pypi.org/project/py-utlx/'
|
|
23
|
+
urls.Documentation = 'https://py-utlx.readthedocs.io/'
|
|
24
|
+
urls.Download = 'https://pypi.org/project/py-utlx/'
|
|
25
|
+
urls.Source = 'https://github.com/karpierz/py-utlx'
|
|
26
|
+
urls.Issues = 'https://github.com/karpierz/py-utlx/issues'
|
|
27
|
+
keywords = ['py-utlx', 'utlx', 'util', 'utils']
|
|
28
|
+
classifiers = [
|
|
29
|
+
'Development Status :: 5 - Production/Stable',
|
|
30
|
+
'Intended Audience :: Developers',
|
|
31
|
+
'Operating System :: OS Independent',
|
|
32
|
+
'Natural Language :: Polish',
|
|
33
|
+
'Programming Language :: Python',
|
|
34
|
+
'Programming Language :: Python :: 3',
|
|
35
|
+
'Programming Language :: Python :: 3.10',
|
|
36
|
+
'Programming Language :: Python :: 3.11',
|
|
37
|
+
'Programming Language :: Python :: 3.12',
|
|
38
|
+
'Programming Language :: Python :: 3.13',
|
|
39
|
+
'Programming Language :: Python :: 3.14',
|
|
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.10.0,<4.0.0'
|
|
46
|
+
dependencies = [
|
|
47
|
+
# mandatory
|
|
48
|
+
'setuptools>=80.9.0',
|
|
49
|
+
'pkg-about>=1.4.0',
|
|
50
|
+
# others
|
|
51
|
+
]
|
|
52
|
+
dynamic = ['readme']
|
|
53
|
+
optional-dependencies.'doc' = [
|
|
54
|
+
'Sphinx>=8.1.3',
|
|
55
|
+
'sphinx-autodoc-typehints>=3.0.1',
|
|
56
|
+
'sphinx-toolbox>=4.0.0',
|
|
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.1',
|
|
60
|
+
'sphinx-lint>=1.0.0',
|
|
61
|
+
'restructuredtext-lint>=1.4.0',
|
|
62
|
+
'nbsphinx>=0.9.7',
|
|
63
|
+
]
|
|
64
|
+
optional-dependencies.'test' = [
|
|
65
|
+
'deepdiff>=8.6.0',
|
|
66
|
+
'rich>=14.1.0',
|
|
67
|
+
]
|
|
68
|
+
|
|
69
|
+
[project.scripts]
|
|
70
|
+
#'utlx' = 'utlx.__main__:main'
|
|
71
|
+
|
|
72
|
+
[project.gui-scripts]
|
|
73
|
+
#'utlx-gui' = 'utlx:main_gui'
|
|
74
|
+
|
|
75
|
+
#[project.entry-points.'utlx.magical']
|
|
76
|
+
#epoint = 'utlx: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
|
+
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
|
+
#'utlx.tests' = 'tests'
|
|
93
|
+
|
|
94
|
+
[tool.setuptools.package-data]
|
|
95
|
+
utlx = [
|
|
96
|
+
]
|
|
97
|
+
|
|
98
|
+
[tool.setuptools.exclude-package-data]
|
|
99
|
+
'*' = ['*.c','*.h','*.cpp','*.hpp','*.cxx','*.hxx','*.pyx','*.pxd']
|
|
100
|
+
utlx = [
|
|
101
|
+
]
|
|
102
|
+
|
|
103
|
+
[tool.coverage]
|
|
104
|
+
# run
|
|
105
|
+
run.source = [
|
|
106
|
+
'utlx',
|
|
107
|
+
'tests',
|
|
108
|
+
]
|
|
109
|
+
run.omit = [
|
|
110
|
+
'**/tests/tman_*.py',
|
|
111
|
+
]
|
|
112
|
+
run.branch = true
|
|
113
|
+
run.data_file = '.tox/coverage/.coverage'
|
|
114
|
+
run.plugins = ['covdefaults']
|
|
115
|
+
# report
|
|
116
|
+
report.exclude_also = [
|
|
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
|
+
'if typing.TYPE_CHECKING:',
|
|
126
|
+
]
|
|
127
|
+
report.omit = [
|
|
128
|
+
'tests/run.py',
|
|
129
|
+
]
|
|
130
|
+
report.skip_covered = false
|
|
131
|
+
# html report
|
|
132
|
+
html.directory = '.tox/coverage/.coverage.html'
|
|
133
|
+
|
|
134
|
+
[tool.flake8]
|
|
135
|
+
filename = ['*.py','*.pyx']
|
|
136
|
+
#include = ['tests']
|
|
137
|
+
#exclude = ['.tox','*.egg','.git','__pycache__','build','_build','docs/_build','dist']
|
|
138
|
+
max-line-length = 99
|
|
139
|
+
ignore = ['E126','E203','E221','E251','E302','E701','E702','E731',
|
|
140
|
+
'E122','E127','E128','E222','E272','E241','E266','E226',
|
|
141
|
+
'D100','D101','D102','D103','D104','D400','D401','D202',
|
|
142
|
+
'N806','N802','N803','N801',
|
|
143
|
+
'I100','W503']
|
|
144
|
+
# (e.g. 'E4','W') default: 'E121','E123','126','226','E24','704'
|
|
145
|
+
#select =
|
|
146
|
+
#select = ['E','W','F','N','I']
|
|
147
|
+
output-file = '.tox/lint/flake8out.txt'
|
|
148
|
+
count = true
|
|
149
|
+
#show-pep8,
|
|
150
|
+
#show-source
|
|
151
|
+
#verbose
|
|
152
|
+
#quiet
|
|
153
|
+
|
|
154
|
+
[tool.mypy]
|
|
155
|
+
python_version = '3.10'
|
|
156
|
+
strict = true
|
|
157
|
+
sqlite_cache = true
|
|
158
|
+
warn_unused_configs = true
|
|
159
|
+
exclude_gitignore = true
|
|
160
|
+
install_types = true
|
|
161
|
+
non_interactive = true
|
|
162
|
+
pretty = true
|
|
163
|
+
check_untyped_defs = true
|
|
164
|
+
#ignore_missing_imports = true
|
|
165
|
+
files = ['src']
|
|
166
|
+
#exclude = ['docs/', 'tests/']
|
|
167
|
+
|
|
168
|
+
#
|
|
169
|
+
# Configuration(s) for tox
|
|
170
|
+
#
|
|
171
|
+
|
|
172
|
+
[tool.tox]
|
|
173
|
+
env_list = [{replace='ref',of=['tool','tox','labels','py'],extend=true},
|
|
174
|
+
'coverage', 'typing', 'lint', 'docs']
|
|
175
|
+
min_version = '4.29.0'
|
|
176
|
+
skip_missing_interpreters = true
|
|
177
|
+
requires = [
|
|
178
|
+
{replace='ref',of=['tool','tox','_','base','deps'],extend=true},
|
|
179
|
+
'virtualenv>=20.34.0',
|
|
180
|
+
'tox-backtick>=0.7.0',
|
|
181
|
+
]
|
|
182
|
+
[tool.tox.labels]
|
|
183
|
+
py = ['py310','py311','py312','py313','py314', 'pypy310','pypy311']
|
|
184
|
+
prepare = ['prepare']
|
|
185
|
+
coverage = ['coverage']
|
|
186
|
+
typing = ['typing']
|
|
187
|
+
lint = ['lint']
|
|
188
|
+
docs = ['docs']
|
|
189
|
+
build = [{replace='ref',of=['tool','tox','labels','py'],extend=true}, 'docs', 'build']
|
|
190
|
+
deploy = [{replace='ref',of=['tool','tox','labels','build'],extend=true}, 'publish']
|
|
191
|
+
|
|
192
|
+
[tool.tox._.base]
|
|
193
|
+
base_python = ['python3.13']
|
|
194
|
+
deps = [
|
|
195
|
+
'pip>=25.2',
|
|
196
|
+
'setuptools>=80.9.0',
|
|
197
|
+
]
|
|
198
|
+
package_subdir = 'utlx'
|
|
199
|
+
|
|
200
|
+
[tool.tox.env_run_base]
|
|
201
|
+
description = 'Run tests under {base_python}'
|
|
202
|
+
set_env.PYTHONDONTWRITEBYTECODE = '1'
|
|
203
|
+
set_env.PKG_IMPL = "`python -W ignore -c \"import platform ; pimpl = platform.python_implementation() ; print('cp' if pimpl == 'CPython' else 'pp' if pimpl == 'PyPy' else '', end='')\" 2> nul`"
|
|
204
|
+
set_env.PKG_PVER = "`python -W ignore -c \"import platform ; print(''.join(platform.python_version_tuple()[:2]), end='')\" 2> nul`"
|
|
205
|
+
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`"
|
|
206
|
+
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`"
|
|
207
|
+
commands = [
|
|
208
|
+
['{env_python}','--version'],
|
|
209
|
+
['{env_python}','-m','tests',{replace='posargs',extend=true}],
|
|
210
|
+
]
|
|
211
|
+
extras = ['test']
|
|
212
|
+
deps = [
|
|
213
|
+
{replace='ref',of=['tool','tox','_','base','deps'],extend=true},
|
|
214
|
+
]
|
|
215
|
+
|
|
216
|
+
[tool.tox.env.'prepare']
|
|
217
|
+
base_python = {replace='ref',of=['tool','tox','_','base','base_python']}
|
|
218
|
+
skip_install = true
|
|
219
|
+
allowlist_externals = [
|
|
220
|
+
'cmd',
|
|
221
|
+
'.build',
|
|
222
|
+
]
|
|
223
|
+
commands = [
|
|
224
|
+
['cmd','/C','if','exist','.build.cmd','.build.cmd'],
|
|
225
|
+
]
|
|
226
|
+
extras = []
|
|
227
|
+
deps = []
|
|
228
|
+
|
|
229
|
+
[tool.tox.env.'coverage']
|
|
230
|
+
base_python = {replace='ref',of=['tool','tox','_','base','base_python']}
|
|
231
|
+
commands = [
|
|
232
|
+
['{env_python}','-m','coverage','erase'],
|
|
233
|
+
['-','{env_python}','-m','coverage','run','-m','tests',{replace='posargs',extend=true}],
|
|
234
|
+
['-','{env_python}','-m','coverage','html'],
|
|
235
|
+
['{env_python}','-m','coverage','report'],
|
|
236
|
+
]
|
|
237
|
+
deps = [
|
|
238
|
+
{replace='ref',of=['tool','tox','env_run_base','deps'],extend=true},
|
|
239
|
+
'coverage>=7.10.6',
|
|
240
|
+
'covdefaults>=2.3.0',
|
|
241
|
+
'diff-cover>=9.6.0',
|
|
242
|
+
]
|
|
243
|
+
|
|
244
|
+
[tool.tox.env.'docs']
|
|
245
|
+
base_python = {replace='ref',of=['tool','tox','_','base','base_python']}
|
|
246
|
+
commands = [
|
|
247
|
+
['{env_python}','-m','sphinxlint','--ignore','.tox','--ignore','build','--ignore','dist'],
|
|
248
|
+
#['{env_python}','-m','sphinx.apidoc','-f','{env_site_packages_dir}/{[tool.tox._.base]package_subdir}'],
|
|
249
|
+
['{env_python}','-m','sphinx.cmd.build','-W','-a','-b','html','-E','./docs','./build/docs/html'],
|
|
250
|
+
['{env_python}','-m','sphinx.cmd.build','-W','-a','-b','linkcheck','./docs','./build/docs/html'],
|
|
251
|
+
['{env_python}','-m','sphinx.cmd.build','-W','-a','-b','doctest', './docs','./build/docs/html'],
|
|
252
|
+
]
|
|
253
|
+
extras = ['doc']
|
|
254
|
+
deps = [
|
|
255
|
+
{replace='ref',of=['tool','tox','_','base','deps'],extend=true},
|
|
256
|
+
]
|
|
257
|
+
|
|
258
|
+
[tool.tox.env.'build']
|
|
259
|
+
depends = [{replace='ref',of=['tool','tox','labels','py'],extend=true}, 'docs']
|
|
260
|
+
base_python = {replace='ref',of=['tool','tox','_','base','base_python']}
|
|
261
|
+
commands = [
|
|
262
|
+
['{env_python}','-m','build'],
|
|
263
|
+
# check out for PyPi
|
|
264
|
+
['{env_python}','-m','twine','check','dist/*'],
|
|
265
|
+
]
|
|
266
|
+
deps = [
|
|
267
|
+
{replace='ref',of=['tool','tox','env_run_base','deps'],extend=true},
|
|
268
|
+
'build>=1.3.0',
|
|
269
|
+
'twine>=6.1.0',
|
|
270
|
+
]
|
|
271
|
+
|
|
272
|
+
[tool.tox.env.'publish']
|
|
273
|
+
depends = ['build']
|
|
274
|
+
base_python = {replace='ref',of=['tool','tox','_','base','base_python']}
|
|
275
|
+
skip_install = true
|
|
276
|
+
commands = [
|
|
277
|
+
# publish on PyPi
|
|
278
|
+
['{env_python}','-m','twine','upload','dist/*'],
|
|
279
|
+
]
|
|
280
|
+
extras = []
|
|
281
|
+
deps = [
|
|
282
|
+
'twine>=6.1.0',
|
|
283
|
+
]
|
|
284
|
+
|
|
285
|
+
[tool.tox.env.'typing']
|
|
286
|
+
description = 'Static type checking'
|
|
287
|
+
base_python = {replace='ref',of=['tool','tox','_','base','base_python']}
|
|
288
|
+
commands = [
|
|
289
|
+
['{env_python}','-m','mypy'],
|
|
290
|
+
]
|
|
291
|
+
extras = []
|
|
292
|
+
deps = [
|
|
293
|
+
{replace='ref',of=['tool','tox','_','base','deps'],extend=true},
|
|
294
|
+
'mypy>=1.17.1',
|
|
295
|
+
'mypy_extensions>=1.1.0',
|
|
296
|
+
'types-setuptools>=80.9.0.20250822',
|
|
297
|
+
]
|
|
298
|
+
|
|
299
|
+
[tool.tox.env.'lint']
|
|
300
|
+
base_python = {replace='ref',of=['tool','tox','_','base','base_python']}
|
|
301
|
+
commands = [
|
|
302
|
+
['{env_python}','-m','flake8','{env_site_packages_dir}/{[tool.tox._.base]package_subdir}/'],
|
|
303
|
+
]
|
|
304
|
+
extras = []
|
|
305
|
+
deps = [
|
|
306
|
+
{replace='ref',of=['tool','tox','env_run_base','deps'],extend=true},
|
|
307
|
+
'flake8>=7.3.0',
|
|
308
|
+
'flake8-in-file-ignores>=0.3.0',
|
|
309
|
+
'flake8-pyproject>=1.2.3',
|
|
310
|
+
'flake8-docstrings>=1.7.0',
|
|
311
|
+
'pep8-naming>=0.15.1',
|
|
312
|
+
'flake8-builtins>=3.0.0',
|
|
313
|
+
'flake8-deprecated>=2.2.1',
|
|
314
|
+
]
|
py_utlx-0.0.0/setup.cfg
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: py-utlx
|
|
3
|
+
Version: 0.0.0
|
|
4
|
+
Summary: Utilities.
|
|
5
|
+
Author: Adam Karpierz
|
|
6
|
+
Author-email: adam@karpierz.net
|
|
7
|
+
Maintainer: Adam Karpierz
|
|
8
|
+
Maintainer-email: adam@karpierz.net
|
|
9
|
+
License-Expression: Zlib
|
|
10
|
+
Project-URL: Homepage, https://pypi.org/project/py-utlx/
|
|
11
|
+
Project-URL: Documentation, https://py-utlx.readthedocs.io/
|
|
12
|
+
Project-URL: Download, https://pypi.org/project/py-utlx/
|
|
13
|
+
Project-URL: Source, https://github.com/karpierz/py-utlx
|
|
14
|
+
Project-URL: Issues, https://github.com/karpierz/py-utlx/issues
|
|
15
|
+
Keywords: py-utlx,utlx,util,utils
|
|
16
|
+
Platform: any
|
|
17
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
18
|
+
Classifier: Intended Audience :: Developers
|
|
19
|
+
Classifier: Operating System :: OS Independent
|
|
20
|
+
Classifier: Natural Language :: Polish
|
|
21
|
+
Classifier: Programming Language :: Python
|
|
22
|
+
Classifier: Programming Language :: Python :: 3
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
27
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
28
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
29
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
30
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
31
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
32
|
+
Requires-Python: <4.0.0,>=3.10.0
|
|
33
|
+
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
34
|
+
License-File: LICENSE
|
|
35
|
+
Requires-Dist: setuptools>=80.9.0
|
|
36
|
+
Requires-Dist: pkg-about>=1.4.0
|
|
37
|
+
Provides-Extra: doc
|
|
38
|
+
Requires-Dist: Sphinx>=8.1.3; extra == "doc"
|
|
39
|
+
Requires-Dist: sphinx-autodoc-typehints>=3.0.1; extra == "doc"
|
|
40
|
+
Requires-Dist: sphinx-toolbox>=4.0.0; 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.1; 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.7; extra == "doc"
|
|
47
|
+
Provides-Extra: test
|
|
48
|
+
Requires-Dist: deepdiff>=8.6.0; extra == "test"
|
|
49
|
+
Requires-Dist: rich>=14.1.0; extra == "test"
|
|
50
|
+
Dynamic: license-file
|
|
51
|
+
|
|
52
|
+
py-utlx
|
|
53
|
+
=======
|
|
54
|
+
|
|
55
|
+
Utilities.
|
|
56
|
+
|
|
57
|
+
Overview
|
|
58
|
+
========
|
|
59
|
+
|
|
60
|
+
TBD
|
|
61
|
+
|
|
62
|
+
`PyPI record`_.
|
|
63
|
+
|
|
64
|
+
`Documentation`_.
|
|
65
|
+
|
|
66
|
+
Usage
|
|
67
|
+
-----
|
|
68
|
+
|
|
69
|
+
TBD
|
|
70
|
+
|
|
71
|
+
Installation
|
|
72
|
+
============
|
|
73
|
+
|
|
74
|
+
Prerequisites:
|
|
75
|
+
|
|
76
|
+
+ Python 3.10 or higher
|
|
77
|
+
|
|
78
|
+
* https://www.python.org/
|
|
79
|
+
|
|
80
|
+
+ pip and setuptools
|
|
81
|
+
|
|
82
|
+
* https://pypi.org/project/pip/
|
|
83
|
+
* https://pypi.org/project/setuptools/
|
|
84
|
+
|
|
85
|
+
To install run:
|
|
86
|
+
|
|
87
|
+
.. parsed-literal::
|
|
88
|
+
|
|
89
|
+
python -m pip install --upgrade |package|
|
|
90
|
+
|
|
91
|
+
Development
|
|
92
|
+
===========
|
|
93
|
+
|
|
94
|
+
Prerequisites:
|
|
95
|
+
|
|
96
|
+
+ Development is strictly based on *tox*. To install it run::
|
|
97
|
+
|
|
98
|
+
python -m pip install --upgrade tox
|
|
99
|
+
|
|
100
|
+
Visit `Development page`_.
|
|
101
|
+
|
|
102
|
+
Installation from sources:
|
|
103
|
+
|
|
104
|
+
clone the sources:
|
|
105
|
+
|
|
106
|
+
.. parsed-literal::
|
|
107
|
+
|
|
108
|
+
git clone |respository| |package|
|
|
109
|
+
|
|
110
|
+
and run:
|
|
111
|
+
|
|
112
|
+
.. parsed-literal::
|
|
113
|
+
|
|
114
|
+
python -m pip install ./|package|
|
|
115
|
+
|
|
116
|
+
or on development mode:
|
|
117
|
+
|
|
118
|
+
.. parsed-literal::
|
|
119
|
+
|
|
120
|
+
python -m pip install --editable ./|package|
|
|
121
|
+
|
|
122
|
+
License
|
|
123
|
+
=======
|
|
124
|
+
|
|
125
|
+
| |copyright|
|
|
126
|
+
| Licensed under the zlib/libpng License
|
|
127
|
+
| https://opensource.org/license/zlib
|
|
128
|
+
| Please refer to the accompanying LICENSE file.
|
|
129
|
+
|
|
130
|
+
Authors
|
|
131
|
+
=======
|
|
132
|
+
|
|
133
|
+
* Adam Karpierz <adam@karpierz.net>
|
|
134
|
+
|
|
135
|
+
.. |package| replace:: py-utlx
|
|
136
|
+
.. |package_bold| replace:: **py-utlx**
|
|
137
|
+
.. |copyright| replace:: Copyright (c) 2004-2025 Adam Karpierz
|
|
138
|
+
.. |respository| replace:: https://github.com/karpierz/py-utlx.git
|
|
139
|
+
.. _Development page: https://github.com/karpierz/py-utlx
|
|
140
|
+
.. _PyPI record: https://pypi.org/project/py-utlx/
|
|
141
|
+
.. _Documentation: https://py-utlx.readthedocs.io/
|
|
142
|
+
|
|
143
|
+
Changelog
|
|
144
|
+
=========
|
|
145
|
+
|
|
146
|
+
0.0.0 (2024-08-13)
|
|
147
|
+
------------------
|
|
148
|
+
- Initial commit.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.readthedocs.yml
|
|
2
|
+
CHANGES.rst
|
|
3
|
+
LICENSE
|
|
4
|
+
MANIFEST.in
|
|
5
|
+
README.rst
|
|
6
|
+
pyproject.toml
|
|
7
|
+
docs/CHANGES.rst
|
|
8
|
+
docs/README.rst
|
|
9
|
+
docs/conf.py
|
|
10
|
+
docs/index.rst
|
|
11
|
+
docs/_static/.keep
|
|
12
|
+
docs/_templates/.keep
|
|
13
|
+
src/py_utlx.egg-info/PKG-INFO
|
|
14
|
+
src/py_utlx.egg-info/SOURCES.txt
|
|
15
|
+
src/py_utlx.egg-info/dependency_links.txt
|
|
16
|
+
src/py_utlx.egg-info/requires.txt
|
|
17
|
+
src/py_utlx.egg-info/top_level.txt
|
|
18
|
+
src/py_utlx.egg-info/zip-safe
|
|
19
|
+
src/utlx/__about__.py
|
|
20
|
+
src/utlx/__init__.py
|
|
21
|
+
src/utlx/_utlx.py
|
|
22
|
+
src/utlx/py.typed
|
|
23
|
+
tests/__init__.py
|
|
24
|
+
tests/__main__.py
|
|
25
|
+
tests/test_main.py
|
|
26
|
+
tests/data/.keep
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
setuptools>=80.9.0
|
|
2
|
+
pkg-about>=1.4.0
|
|
3
|
+
|
|
4
|
+
[doc]
|
|
5
|
+
Sphinx>=8.1.3
|
|
6
|
+
sphinx-autodoc-typehints>=3.0.1
|
|
7
|
+
sphinx-toolbox>=4.0.0
|
|
8
|
+
sphinx-tabs>=3.4.5
|
|
9
|
+
sphinx-copybutton>=0.5.2
|
|
10
|
+
sphinxcontrib-spelling>=8.0.1
|
|
11
|
+
sphinx-lint>=1.0.0
|
|
12
|
+
restructuredtext-lint>=1.4.0
|
|
13
|
+
nbsphinx>=0.9.7
|
|
14
|
+
|
|
15
|
+
[test]
|
|
16
|
+
deepdiff>=8.6.0
|
|
17
|
+
rich>=14.1.0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
utlx
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Copyright (c) 2004 Adam Karpierz
|
|
2
|
+
# SPDX-License-Identifier: Zlib
|
|
3
|
+
|
|
4
|
+
__all__ = ('top_dir', 'test_dir')
|
|
5
|
+
|
|
6
|
+
import sys, pathlib
|
|
7
|
+
sys.dont_write_bytecode = True
|
|
8
|
+
test_dir = pathlib.Path(__file__).resolve().parent
|
|
9
|
+
top_dir = test_dir.parent
|
|
10
|
+
del sys, pathlib
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Copyright (c) 2004 Adam Karpierz
|
|
2
|
+
# SPDX-License-Identifier: Zlib
|
|
3
|
+
|
|
4
|
+
import unittest
|
|
5
|
+
import sys
|
|
6
|
+
import logging
|
|
7
|
+
|
|
8
|
+
from . import test_dir
|
|
9
|
+
|
|
10
|
+
log = logging.getLogger(__name__)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def test_suite(names=None, omit=()):
|
|
14
|
+
from . import __name__ as pkg_name
|
|
15
|
+
from . import __path__ as pkg_path
|
|
16
|
+
import unittest
|
|
17
|
+
import pkgutil
|
|
18
|
+
if names is None:
|
|
19
|
+
names = [name for _, name, _ in pkgutil.iter_modules(pkg_path)
|
|
20
|
+
if name.startswith("test_") and name not in omit]
|
|
21
|
+
names = [".".join((pkg_name, name)) for name in names]
|
|
22
|
+
tests = unittest.defaultTestLoader.loadTestsFromNames(names)
|
|
23
|
+
return tests
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def main(argv=sys.argv[1:]):
|
|
27
|
+
print("Running tests\n", file=sys.stderr)
|
|
28
|
+
tests = test_suite(argv or None)
|
|
29
|
+
result = unittest.TextTestRunner(verbosity=2).run(tests)
|
|
30
|
+
return 0 if result.wasSuccessful() else 1
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
if __name__.rpartition(".")[-1] == "__main__":
|
|
34
|
+
# logging.basicConfig(level=logging.INFO)
|
|
35
|
+
# logging.basicConfig(level=logging.DEBUG)
|
|
36
|
+
sys.exit(main())
|
|
File without changes
|