pkg-about 2.1.1__tar.gz → 2.2.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.
Files changed (28) hide show
  1. {pkg_about-2.1.1 → pkg_about-2.2.0}/CHANGES.rst +7 -1
  2. {pkg_about-2.1.1/src/pkg_about.egg-info → pkg_about-2.2.0}/PKG-INFO +2 -1
  3. {pkg_about-2.1.1 → pkg_about-2.2.0}/noxfile.py +2 -2
  4. {pkg_about-2.1.1 → pkg_about-2.2.0}/pyproject.toml +8 -7
  5. {pkg_about-2.1.1 → pkg_about-2.2.0}/src/pkg_about/_about.py +7 -2
  6. {pkg_about-2.1.1 → pkg_about-2.2.0/src/pkg_about.egg-info}/PKG-INFO +2 -1
  7. {pkg_about-2.1.1 → pkg_about-2.2.0}/LICENSE +0 -0
  8. {pkg_about-2.1.1 → pkg_about-2.2.0}/MANIFEST.in +0 -0
  9. {pkg_about-2.1.1 → pkg_about-2.2.0}/README.rst +0 -0
  10. {pkg_about-2.1.1 → pkg_about-2.2.0}/docs/CHANGES.rst +0 -0
  11. {pkg_about-2.1.1 → pkg_about-2.2.0}/docs/README.rst +0 -0
  12. {pkg_about-2.1.1 → pkg_about-2.2.0}/docs/_static/.keep +0 -0
  13. {pkg_about-2.1.1 → pkg_about-2.2.0}/docs/_templates/.keep +0 -0
  14. {pkg_about-2.1.1 → pkg_about-2.2.0}/docs/conf.py +0 -0
  15. {pkg_about-2.1.1 → pkg_about-2.2.0}/docs/index.rst +0 -0
  16. {pkg_about-2.1.1 → pkg_about-2.2.0}/setup.cfg +0 -0
  17. {pkg_about-2.1.1 → pkg_about-2.2.0}/src/pkg_about/__about__.py +0 -0
  18. {pkg_about-2.1.1 → pkg_about-2.2.0}/src/pkg_about/__init__.py +0 -0
  19. {pkg_about-2.1.1 → pkg_about-2.2.0}/src/pkg_about/py.typed +0 -0
  20. {pkg_about-2.1.1 → pkg_about-2.2.0}/src/pkg_about.egg-info/SOURCES.txt +0 -0
  21. {pkg_about-2.1.1 → pkg_about-2.2.0}/src/pkg_about.egg-info/dependency_links.txt +0 -0
  22. {pkg_about-2.1.1 → pkg_about-2.2.0}/src/pkg_about.egg-info/requires.txt +0 -0
  23. {pkg_about-2.1.1 → pkg_about-2.2.0}/src/pkg_about.egg-info/top_level.txt +0 -0
  24. {pkg_about-2.1.1 → pkg_about-2.2.0}/src/pkg_about.egg-info/zip-safe +0 -0
  25. {pkg_about-2.1.1 → pkg_about-2.2.0}/tests/__init__.py +0 -0
  26. {pkg_about-2.1.1 → pkg_about-2.2.0}/tests/__main__.py +0 -0
  27. {pkg_about-2.1.1 → pkg_about-2.2.0}/tests/data/setup.cfg +0 -0
  28. {pkg_about-2.1.1 → pkg_about-2.2.0}/tests/test_main.py +0 -0
@@ -1,7 +1,12 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
- 2.1.1 (2026-01-26)
4
+ 2.2.0 (2026-02-13)
5
+ ------------------
6
+ - Added support for Python 3.15
7
+ - Setup update (mainly dependencies).
8
+
9
+ 2.1.2 (2026-01-27)
5
10
  ------------------
6
11
  - | Now about() and about_from_setup() return an instance of the 'adict'
7
12
  | dictionary with about info (but backward compatibility is preserved).
@@ -24,6 +29,7 @@ Changelog
24
29
  - The documentation has been moved from Read the Docs to GitHub Pages.
25
30
  - Added the nox's 'cleanup' test environment.
26
31
  - Setup update (mainly dependencies) and bug fixes.
32
+ - Fixes for typing.
27
33
 
28
34
  1.5.0 (2025-09-01)
29
35
  ------------------
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pkg_about
3
- Version: 2.1.1
3
+ Version: 2.2.0
4
4
  Summary: Unified access to Python package metadata at runtime.
5
5
  Author-email: Adam Karpierz <adam@karpierz.net>
6
6
  Maintainer-email: Adam Karpierz <adam@karpierz.net>
@@ -25,6 +25,7 @@ Classifier: Programming Language :: Python :: 3.11
25
25
  Classifier: Programming Language :: Python :: 3.12
26
26
  Classifier: Programming Language :: Python :: 3.13
27
27
  Classifier: Programming Language :: Python :: 3.14
28
+ Classifier: Programming Language :: Python :: 3.15
28
29
  Classifier: Programming Language :: Python :: 3 :: Only
29
30
  Classifier: Programming Language :: Python :: Implementation :: CPython
30
31
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -1,8 +1,8 @@
1
- # Copyright (c) 2025 Adam Karpierz
1
+ # Copyright (c) 2026 Adam Karpierz
2
2
  # SPDX-License-Identifier: Zlib
3
3
 
4
4
  # /// script
5
- # dependencies = ["nox>=2025.11.12", "nox_ext", "nox_lib"]
5
+ # dependencies = ["nox>=2026.2.9", "nox_ext", "nox_lib"]
6
6
  # ///
7
7
 
8
8
  from __future__ import annotations
@@ -2,12 +2,12 @@
2
2
  # SPDX-License-Identifier: Zlib
3
3
 
4
4
  [build-system]
5
- requires = ['setuptools>=80.10.2', 'packaging>=26.0.0']
5
+ requires = ['setuptools>=81.0.0', 'packaging>=26.0.0']
6
6
  build-backend = 'setuptools.build_meta'
7
7
 
8
8
  [project]
9
9
  name = 'pkg_about'
10
- version = '2.1.1'
10
+ version = '2.2.0'
11
11
  description = 'Unified access to Python package metadata at runtime.'
12
12
  authors = [
13
13
  { name = 'Adam Karpierz', email = 'adam@karpierz.net' },
@@ -37,6 +37,7 @@ classifiers = [
37
37
  'Programming Language :: Python :: 3.12',
38
38
  'Programming Language :: Python :: 3.13',
39
39
  'Programming Language :: Python :: 3.14',
40
+ 'Programming Language :: Python :: 3.15',
40
41
  'Programming Language :: Python :: 3 :: Only',
41
42
  'Programming Language :: Python :: Implementation :: CPython',
42
43
  'Programming Language :: Python :: Implementation :: PyPy',
@@ -59,19 +60,19 @@ dynamic = ['readme']
59
60
 
60
61
  [dependency-groups]
61
62
  base = [
62
- 'pip>=25.3',
63
- 'setuptools>=80.10.2',
63
+ 'pip>=26.0.1',
64
+ 'setuptools>=81.0.0',
64
65
  ]
65
66
  test = [
66
67
  { include-group = 'base' },
67
68
  'tomli>=2.4.0 ; python_version < "3.11"',
68
69
  'deepdiff>=8.6.1',
69
- 'rich>=14.3.1',
70
+ 'rich>=14.3.2',
70
71
  'appdirs==1.4.4',
71
72
  ]
72
73
  coverage = [
73
74
  { include-group = 'test' },
74
- 'coverage>=7.13.2',
75
+ 'coverage>=7.13.4',
75
76
  'covdefaults>=2.3.0',
76
77
  'diff-cover>=10.2.0',
77
78
  ]
@@ -102,7 +103,7 @@ typing = [
102
103
  { include-group = 'base' },
103
104
  'mypy>=1.19.1',
104
105
  'mypy_extensions>=1.1.0',
105
- 'types-setuptools>=80.10.0.20260124',
106
+ 'types-setuptools>=81.0.0.20260209',
106
107
  ]
107
108
  lint = [
108
109
  { include-group = 'test' },
@@ -6,6 +6,7 @@ from __future__ import annotations
6
6
  __all__ = ('about', 'about_from_setup')
7
7
 
8
8
  import sys
9
+ import os
9
10
  from typing import Any, NamedTuple
10
11
  from typing_extensions import Self
11
12
  from pathlib import Path
@@ -78,9 +79,11 @@ def about(package: str | None = None) -> adict:
78
79
  return pkg_metadata
79
80
 
80
81
 
81
- __sentinel = object()
82
+ class __Sentinel: pass # noqa: E305
83
+ __sentinel = __Sentinel() # noqa: E305
82
84
 
83
- def about_from_setup(package_path: Path | str | None = __sentinel) -> adict:
85
+ def about_from_setup(package_path: Path | str | int | None
86
+ | __Sentinel = __sentinel) -> adict:
84
87
  no_arg = (package_path is __sentinel)
85
88
  level = (1 if no_arg else
86
89
  # Potential backward incompatibility.
@@ -93,6 +96,8 @@ def about_from_setup(package_path: Path | str | None = __sentinel) -> adict:
93
96
  if level is not None:
94
97
  package_path = Path(pkg_globals["__file__"]).resolve().parents[level]
95
98
 
99
+ assert isinstance(package_path, (str, os.PathLike))
100
+
96
101
  metadata = build.util.project_wheel_metadata(package_path)
97
102
  version = packaging.version.parse(metadata["Version"])
98
103
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pkg_about
3
- Version: 2.1.1
3
+ Version: 2.2.0
4
4
  Summary: Unified access to Python package metadata at runtime.
5
5
  Author-email: Adam Karpierz <adam@karpierz.net>
6
6
  Maintainer-email: Adam Karpierz <adam@karpierz.net>
@@ -25,6 +25,7 @@ Classifier: Programming Language :: Python :: 3.11
25
25
  Classifier: Programming Language :: Python :: 3.12
26
26
  Classifier: Programming Language :: Python :: 3.13
27
27
  Classifier: Programming Language :: Python :: 3.14
28
+ Classifier: Programming Language :: Python :: 3.15
28
29
  Classifier: Programming Language :: Python :: 3 :: Only
29
30
  Classifier: Programming Language :: Python :: Implementation :: CPython
30
31
  Classifier: Programming Language :: Python :: Implementation :: PyPy
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes