python-utils 4.0.0__tar.gz → 4.0.1__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.
Files changed (37) hide show
  1. {python_utils-4.0.0 → python_utils-4.0.1}/PKG-INFO +1 -1
  2. python_utils-4.0.1/_python_utils_tests/test_types.py +15 -0
  3. python_utils-4.0.1/pyproject.toml +211 -0
  4. python_utils-4.0.0/pyproject.toml → python_utils-4.0.1/pyproject.toml.orig +5 -2
  5. {python_utils-4.0.0 → python_utils-4.0.1}/python_utils/types.py +0 -2
  6. {python_utils-4.0.0 → python_utils-4.0.1}/LICENSE +0 -0
  7. {python_utils-4.0.0 → python_utils-4.0.1}/README.md +0 -0
  8. {python_utils-4.0.0 → python_utils-4.0.1}/_python_utils_tests/__init__.py +0 -0
  9. {python_utils-4.0.0 → python_utils-4.0.1}/_python_utils_tests/requirements.txt +0 -0
  10. {python_utils-4.0.0 → python_utils-4.0.1}/_python_utils_tests/test_aio.py +0 -0
  11. {python_utils-4.0.0 → python_utils-4.0.1}/_python_utils_tests/test_aliases.py +0 -0
  12. {python_utils-4.0.0 → python_utils-4.0.1}/_python_utils_tests/test_containers.py +0 -0
  13. {python_utils-4.0.0 → python_utils-4.0.1}/_python_utils_tests/test_decorators.py +0 -0
  14. {python_utils-4.0.0 → python_utils-4.0.1}/_python_utils_tests/test_generators.py +0 -0
  15. {python_utils-4.0.0 → python_utils-4.0.1}/_python_utils_tests/test_import.py +0 -0
  16. {python_utils-4.0.0 → python_utils-4.0.1}/_python_utils_tests/test_import_footprint.py +0 -0
  17. {python_utils-4.0.0 → python_utils-4.0.1}/_python_utils_tests/test_lazy_imports.py +0 -0
  18. {python_utils-4.0.0 → python_utils-4.0.1}/_python_utils_tests/test_logger.py +0 -0
  19. {python_utils-4.0.0 → python_utils-4.0.1}/_python_utils_tests/test_python_utils.py +0 -0
  20. {python_utils-4.0.0 → python_utils-4.0.1}/_python_utils_tests/test_time.py +0 -0
  21. {python_utils-4.0.0 → python_utils-4.0.1}/python_utils/__about__.py +0 -0
  22. {python_utils-4.0.0 → python_utils-4.0.1}/python_utils/__init__.py +0 -0
  23. {python_utils-4.0.0 → python_utils-4.0.1}/python_utils/_aliases.py +0 -0
  24. {python_utils-4.0.0 → python_utils-4.0.1}/python_utils/aio.py +0 -0
  25. {python_utils-4.0.0 → python_utils-4.0.1}/python_utils/containers.py +0 -0
  26. {python_utils-4.0.0 → python_utils-4.0.1}/python_utils/converters.py +0 -0
  27. {python_utils-4.0.0 → python_utils-4.0.1}/python_utils/decorators.py +0 -0
  28. {python_utils-4.0.0 → python_utils-4.0.1}/python_utils/exceptions.py +0 -0
  29. {python_utils-4.0.0 → python_utils-4.0.1}/python_utils/formatters.py +0 -0
  30. {python_utils-4.0.0 → python_utils-4.0.1}/python_utils/generators.py +0 -0
  31. {python_utils-4.0.0 → python_utils-4.0.1}/python_utils/import_.py +0 -0
  32. {python_utils-4.0.0 → python_utils-4.0.1}/python_utils/logger.py +0 -0
  33. {python_utils-4.0.0 → python_utils-4.0.1}/python_utils/loguru.py +0 -0
  34. {python_utils-4.0.0 → python_utils-4.0.1}/python_utils/py.typed +0 -0
  35. {python_utils-4.0.0 → python_utils-4.0.1}/python_utils/terminal.py +0 -0
  36. {python_utils-4.0.0 → python_utils-4.0.1}/python_utils/time.py +0 -0
  37. {python_utils-4.0.0 → python_utils-4.0.1}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-utils
3
- Version: 4.0.0
3
+ Version: 4.0.1
4
4
  Summary: Python Utils is a module with some convenient utilities not included with the standard Python install
5
5
  Keywords: utils,utilities,helpers,typing,typed,async,lazy-imports
6
6
  Author: Rick van Hattem
@@ -0,0 +1,15 @@
1
+ """Regression tests for the public ``python_utils.types`` facade."""
2
+
3
+ import collections
4
+
5
+ from python_utils import types
6
+
7
+
8
+ def test_types_all_entries_are_unique() -> None:
9
+ """Export every public name once."""
10
+ counts: collections.Counter[str] = collections.Counter(types.__all__)
11
+ duplicates: list[str] = sorted(
12
+ name for name, count in counts.items() if count > 1
13
+ )
14
+
15
+ assert duplicates == []
@@ -0,0 +1,211 @@
1
+ [build-system]
2
+ requires = ["uv_build>=0.11,<0.13"]
3
+ build-backend = "uv_build"
4
+
5
+ [tool.mypy]
6
+ python_version = "3.10"
7
+ strict = true
8
+ check_untyped_defs = true
9
+ files = [
10
+ "python_utils",
11
+ "_python_utils_tests",
12
+ ]
13
+
14
+ [[tool.mypy.overrides]]
15
+ module = "_python_utils_tests.*"
16
+ disallow_untyped_defs = false
17
+
18
+ [[tool.mypy.overrides]]
19
+ module = "python_utils.terminal"
20
+ ignore_errors = true
21
+
22
+ [tool.pyright]
23
+ typeCheckingMode = "strict"
24
+ pythonVersion = "3.10"
25
+ include = [
26
+ "python_utils",
27
+ "_python_utils_tests",
28
+ ]
29
+ exclude = [
30
+ "**/__pycache__",
31
+ ".tox",
32
+ ".venv",
33
+ "build",
34
+ "dist",
35
+ "docs",
36
+ ]
37
+ ignore = ["python_utils/terminal.py"]
38
+ reportMissingTypeStubs = false
39
+
40
+ [tool.pyrefly]
41
+ project-includes = [
42
+ "python_utils",
43
+ "_python_utils_tests",
44
+ ]
45
+ project-excludes = [
46
+ "python_utils/terminal.py",
47
+ "**/__pycache__",
48
+ ]
49
+ python-version = "3.10"
50
+
51
+ [tool.pytest.ini_options]
52
+ testpaths = [
53
+ "python_utils",
54
+ "_python_utils_tests",
55
+ ]
56
+ python_files = [
57
+ "python_utils/*.py",
58
+ "_python_utils_tests/*.py",
59
+ ]
60
+ addopts = [
61
+ "--strict-config",
62
+ "--strict-markers",
63
+ "-ra",
64
+ "--doctest-modules",
65
+ "--cov=python_utils",
66
+ "--cov-report=term-missing",
67
+ ]
68
+ doctest_optionflags = [
69
+ "ALLOW_UNICODE",
70
+ "ALLOW_BYTES",
71
+ ]
72
+ asyncio_mode = "strict"
73
+ xfail_strict = true
74
+ filterwarnings = [
75
+ "error",
76
+ "ignore::ImportWarning",
77
+ ]
78
+
79
+ [tool.coverage.run]
80
+ branch = true
81
+ parallel = true
82
+ source = ["python_utils"]
83
+
84
+ [tool.coverage.paths]
85
+ source = [
86
+ "python_utils",
87
+ "*/python_utils",
88
+ ]
89
+
90
+ [tool.coverage.report]
91
+ fail_under = 100
92
+ show_missing = true
93
+ exclude_also = [
94
+ "pragma: no cover",
95
+ "if typing.TYPE_CHECKING:",
96
+ "if types.TYPE_CHECKING:",
97
+ "if __name__ == .__main__.:",
98
+ "if 0:",
99
+ "raise AssertionError",
100
+ "raise NotImplementedError",
101
+ '@(abc\.)?abstractmethod',
102
+ '@(typing\.|types\.)?overload',
103
+ 'class .*\bProtocol\):',
104
+ ]
105
+
106
+ [tool.coverage.html]
107
+ directory = "htmlcov"
108
+
109
+ [tool.codespell]
110
+ skip = "*.lock,*.svg,*.egg-info,./.git,./.tox,./.venv,./.ruff_cache,./.mypy_cache,./.pytest_cache,./build,./dist,./htmlcov,./docs/_build,*/__pycache__"
111
+ ignore-words-list = "acount"
112
+ check-hidden = true
113
+
114
+ [tool.uv]
115
+ exclude-newer = "14 days"
116
+
117
+ [tool.uv.build-backend]
118
+ module-root = ""
119
+ module-name = "python_utils"
120
+ source-include = [
121
+ "_python_utils_tests/**/*.py",
122
+ "tox.ini",
123
+ ]
124
+
125
+ [project]
126
+ name = "python-utils"
127
+ version = "4.0.1"
128
+ description = "Python Utils is a module with some convenient utilities not included with the standard Python install"
129
+ readme = "README.md"
130
+ requires-python = ">=3.10"
131
+ license = "BSD-3-Clause"
132
+ license-files = ["LICENSE"]
133
+ keywords = [
134
+ "utils",
135
+ "utilities",
136
+ "helpers",
137
+ "typing",
138
+ "typed",
139
+ "async",
140
+ "lazy-imports",
141
+ ]
142
+ classifiers = [
143
+ "Development Status :: 5 - Production/Stable",
144
+ "Intended Audience :: Developers",
145
+ "Operating System :: OS Independent",
146
+ "Programming Language :: Python :: 3",
147
+ "Programming Language :: Python :: 3.10",
148
+ "Programming Language :: Python :: 3.11",
149
+ "Programming Language :: Python :: 3.12",
150
+ "Programming Language :: Python :: 3.13",
151
+ "Programming Language :: Python :: 3.14",
152
+ "Programming Language :: Python :: 3 :: Only",
153
+ "Programming Language :: Python :: Implementation :: CPython",
154
+ "Programming Language :: Python :: Implementation :: PyPy",
155
+ "Typing :: Typed",
156
+ ]
157
+ dependencies = ["typing_extensions>3.10.0.2"]
158
+
159
+ [[project.authors]]
160
+ name = "Rick van Hattem"
161
+ email = "wolph@wol.ph"
162
+
163
+ [project.urls]
164
+ Homepage = "https://github.com/WoLpH/python-utils"
165
+ Documentation = "https://python-utils.readthedocs.io/"
166
+ Repository = "https://github.com/WoLpH/python-utils"
167
+ Changelog = "https://github.com/WoLpH/python-utils/releases"
168
+
169
+ [project.optional-dependencies]
170
+ loguru = ["loguru"]
171
+ docs = [
172
+ "sphinx",
173
+ "furo",
174
+ "myst-parser",
175
+ ]
176
+ tests = [
177
+ "pytest",
178
+ "pytest-cov",
179
+ "pytest-asyncio",
180
+ "loguru",
181
+ "blessings",
182
+ ]
183
+
184
+ [dependency-groups]
185
+ docs = [
186
+ "sphinx",
187
+ "furo",
188
+ "myst-parser",
189
+ ]
190
+ test = [
191
+ "pytest",
192
+ "pytest-cov",
193
+ "pytest-asyncio",
194
+ "loguru",
195
+ "blessings",
196
+ ]
197
+ dev = [
198
+ "ruff",
199
+ "mypy",
200
+ "basedpyright",
201
+ "pyrefly",
202
+ "codespell",
203
+ "lefthook",
204
+ { include-group = "test" },
205
+ { include-group = "docs" },
206
+ ]
207
+ tox = [
208
+ "tox>=4",
209
+ "tox-uv>=1",
210
+ "tox-gh-actions",
211
+ ]
@@ -1,5 +1,5 @@
1
1
  [build-system]
2
- requires = ['uv_build>=0.11,<0.12']
2
+ requires = ['uv_build>=0.11,<0.13']
3
3
  build-backend = 'uv_build'
4
4
 
5
5
  [tool.uv.build-backend]
@@ -12,7 +12,7 @@ source-include = ['_python_utils_tests/**/*.py', 'tox.ini']
12
12
 
13
13
  [project]
14
14
  name = 'python-utils'
15
- version = '4.0.0' # static; the single source of truth. Bump via `uv version`.
15
+ version = "4.0.1" # static; the single source of truth. Bump via `uv version`.
16
16
  description = 'Python Utils is a module with some convenient utilities not included with the standard Python install'
17
17
  readme = 'README.md'
18
18
  requires-python = '>=3.10'
@@ -163,3 +163,6 @@ skip = '*.lock,*.svg,*.egg-info,./.git,./.tox,./.venv,./.ruff_cache,./.mypy_cach
163
163
  # `acount` is an intentional public API name (async count).
164
164
  ignore-words-list = 'acount'
165
165
  check-hidden = true
166
+
167
+ [tool.uv]
168
+ exclude-newer = "14 days"
@@ -143,13 +143,11 @@ __all__ = [
143
143
  'SupportsComplex',
144
144
  'SupportsFloat',
145
145
  'SupportsIndex',
146
- 'SupportsIndex',
147
146
  'SupportsInt',
148
147
  'SupportsRound',
149
148
  'Text',
150
149
  'TextIO',
151
150
  'TracebackType',
152
- 'TracebackType',
153
151
  'Tuple',
154
152
  'Type',
155
153
  'TypeAlias',
File without changes
File without changes
File without changes