pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-deprecated
Module Name: pkgsrc
Committed By: adam
Date: Sat Oct 17 09:13:33 UTC 2026
Modified Files:
pkgsrc/devel/py-deprecated: Makefile PLIST distinfo
Log Message:
py-deprecated: updated to 3.0.0
3.0.0
Changed
- Require Python >= 3.12 and wrapt >= 1.16 (first wrapt release supporting Python 3.12).
- Migrate the packaging from setuptools (`setup.py`/`setup.cfg`/`MANIFEST.in`) to
`pyproject.toml` with the Hatchling build backend; the version is read from
`src/deprecated/__init__.py`.
- Adopt the `src` layout: the package moves to `src/deprecated`
(the tests stay in `tests` and the documentation in `docs`).
- Manage the project with uv (`uv.lock`) and Hatch: tox is dropped and replaced
by the `hatch test` matrix.
- Modernize the `Makefile` (uv/Hatch based targets, run `make help`).
- Replace bump2version by `hatch version <major|minor|patch>`: the version is only defined
in `src/deprecated/__init__.py`, and the git tag is created by GitHub when the release
is published.
- Update the Fedora RPM spec file to the `%pyproject_*` macros.
Removed
- Remove the `inspect2` dependency (it was only used on Python 2).
- Remove the Python 2 compatibility constructs (`u""` literals, `coding` cookies,
`class Foo(object)`, `super(Class, self)`, `OrderedDict`...).
- Remove the undocumented `deprecated.classic.string_types` compatibility tuple.
A `bytes` positional *reason* is still accepted by `@deprecated`, as before.
- Remove the `deprecated.__date__` attribute (the release dates are in the changelog).
Added
- Add the `deprecated.google` module: the `@deprecated`, `@versionadded` and `@versionchanged`
decorators insert a `Deprecated:`, `Version added:` or `Version changed:` section
in [Google style](https://google.github.io/styleguide/pyguide.html#38-comments-and-docstrings)
docstrings (see the ["Google" decorators](https://deprecated.readthedocs.io/en/latest/google_deco.html)
page).
- Add the `deprecated.numpy` module: the `@deprecated`, `@versionadded` and `@versionchanged`
decorators insert a `Deprecated`, `Version added` or `Version changed` section
in [NumPy style](https://numpydoc.readthedocs.io/en/latest/format.html)
docstrings (see the ["NumPy" decorators](https://deprecated.readthedocs.io/en/latest/numpy_deco.html)
page).
- Add the `ClassicAdapter.warn()` method used to emit the deprecation warning
(can be overridden by custom adapters).
- Add Python 3.12 type annotations to the public API and ship the `py.typed` marker (PEP 561):
the decorators preserve the signature of the decorated functions and classes.
- Add `__all__` to the `deprecated` package: `from deprecated import *` only exports
`deprecated` and `deprecated_params`.
Fixed
- Deprecated functions and methods can now be pickled (by reference, like regular functions),
so they can be used with `multiprocessing` and the *spawn* start method (the default one on
Windows and macOS), for instance as a `Process` target or with `Pool.map()`.
Previously, pickling failed with `NotImplementedError: object proxy must define __reduce_ex__()`
- When a deprecated class inherits from a deprecated class, all the deprecation warnings now refer
to the user code (previously, the warning of the parent class referred to `classic.py`).
The warnings are emitted with `skip_file_prefixes` (Python 3.12+): the frames of this library
and of wrapt are skipped, whatever the wrapt implementation (C extension or pure Python).
- Stacked `@deprecated_params` decorators now emit only one warning for each deprecated
parameter: the message (and category) of the outermost decorator wins, as documented
in the tutorial. The warnings refer to the caller.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 pkgsrc/devel/py-deprecated/Makefile
cvs rdiff -u -r1.6 -r1.7 pkgsrc/devel/py-deprecated/PLIST \
pkgsrc/devel/py-deprecated/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/py-deprecated/Makefile
diff -u pkgsrc/devel/py-deprecated/Makefile:1.8 pkgsrc/devel/py-deprecated/Makefile:1.9
--- pkgsrc/devel/py-deprecated/Makefile:1.8 Sun Nov 2 20:22:47 2025
+++ pkgsrc/devel/py-deprecated/Makefile Sat Oct 17 09:13:33 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.8 2025/11/02 20:22:47 adam Exp $
+# $NetBSD: Makefile,v 1.9 2026/10/17 09:13:33 adam Exp $
-DISTNAME= deprecated-1.3.1
+DISTNAME= deprecated-3.0.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=d/deprecated/}
@@ -10,10 +10,12 @@ HOMEPAGE= https://github.com/tantale/dep
COMMENT= Python decorator to deprecate old python classes, functions or methods
LICENSE= mit
-TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools
-DEPENDS+= ${PYPKGPREFIX}-wrapt>=1.10:../../devel/py-wrapt
+TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling>=1.27:../../devel/py-hatchling
+DEPENDS+= ${PYPKGPREFIX}-wrapt>=1.16:../../devel/py-wrapt
USE_LANGUAGES= # none
+PYTHON_VERSIONS_INCOMPATIBLE= 311
+
.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/py-deprecated/PLIST
diff -u pkgsrc/devel/py-deprecated/PLIST:1.6 pkgsrc/devel/py-deprecated/PLIST:1.7
--- pkgsrc/devel/py-deprecated/PLIST:1.6 Sun Nov 2 20:22:47 2025
+++ pkgsrc/devel/py-deprecated/PLIST Sat Oct 17 09:13:33 2026
@@ -1,18 +1,24 @@
-@comment $NetBSD: PLIST,v 1.6 2025/11/02 20:22:47 adam Exp $
+@comment $NetBSD: PLIST,v 1.7 2026/10/17 09:13:33 adam Exp $
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
-${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE.rst
-${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE.md
${PYSITELIB}/deprecated/__init__.py
${PYSITELIB}/deprecated/__init__.pyc
${PYSITELIB}/deprecated/__init__.pyo
${PYSITELIB}/deprecated/classic.py
${PYSITELIB}/deprecated/classic.pyc
${PYSITELIB}/deprecated/classic.pyo
+${PYSITELIB}/deprecated/google.py
+${PYSITELIB}/deprecated/google.pyc
+${PYSITELIB}/deprecated/google.pyo
+${PYSITELIB}/deprecated/numpy.py
+${PYSITELIB}/deprecated/numpy.pyc
+${PYSITELIB}/deprecated/numpy.pyo
${PYSITELIB}/deprecated/params.py
${PYSITELIB}/deprecated/params.pyc
${PYSITELIB}/deprecated/params.pyo
+${PYSITELIB}/deprecated/py.typed
${PYSITELIB}/deprecated/sphinx.py
${PYSITELIB}/deprecated/sphinx.pyc
${PYSITELIB}/deprecated/sphinx.pyo
Index: pkgsrc/devel/py-deprecated/distinfo
diff -u pkgsrc/devel/py-deprecated/distinfo:1.6 pkgsrc/devel/py-deprecated/distinfo:1.7
--- pkgsrc/devel/py-deprecated/distinfo:1.6 Sun Nov 2 20:22:47 2025
+++ pkgsrc/devel/py-deprecated/distinfo Sat Oct 17 09:13:33 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.6 2025/11/02 20:22:47 adam Exp $
+$NetBSD: distinfo,v 1.7 2026/10/17 09:13:33 adam Exp $
-BLAKE2s (deprecated-1.3.1.tar.gz) = 3b5234f5411136e1c807faf6826fbc51792df062f9ecd7e254ab0ddd1beb0101
-SHA512 (deprecated-1.3.1.tar.gz) = 1218a010ee83ec3ddcec279007af2aa7f5b9ec34a36a6b592cfdf3ef8d621dd6aba0a2e93f8ccacd190b111f1d47699a6484f546ea068a1b40103dcc114a2a36
-Size (deprecated-1.3.1.tar.gz) = 2932523 bytes
+BLAKE2s (deprecated-3.0.0.tar.gz) = 255dab1a4be523a92747ef8386a2d7f6bbcc4f7f59075e97ead17506e6143cb2
+SHA512 (deprecated-3.0.0.tar.gz) = cc3adb4918cb8257afb9e7b73d4e63b1d6869528ff76cec62f0729fa9788eb765d4d8d68cec6a409a2da520c1f853b18d6fa6be4ec98d55e5ab88f15001932f2
+Size (deprecated-3.0.0.tar.gz) = 166912 bytes
Home |
Main Index |
Thread Index |
Old Index