pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/py-attrs



Module Name:    pkgsrc
Committed By:   adam
Date:           Sun Dec 31 08:01:32 UTC 2023

Modified Files:
        pkgsrc/devel/py-attrs: Makefile distinfo

Log Message:
py-attrs: updated to 23.2.0

23.2.0

Changes

- The type annotation for `attrs.resolve_types()` is now correct.
- Type stubs now use `typing.dataclass_transform` to decorate dataclass-like decorators, instead of the non-standard `__dataclass_transform__` special form, which is only supported by Pyright.
- Fixed serialization of namedtuple fields using `attrs.asdict/astuple()` with `retain_collection_types=True`.
- `attrs.AttrsInstance` is now a `typing.Protocol` in both type hints and code.
  This allows you to subclass it along with another `Protocol`.
- If *attrs* detects that `__attrs_pre_init__` accepts more than just `self`, it will call it with the same arguments as `__init__` was called.
  This allows you to, for example, pass arguments to `super().__init__()`.
- Slotted classes now transform `functools.cached_property` decorated methods to support equivalent semantics.
- Added *class_body* argument to `attrs.make_class()` to provide additional attributes for newly created classes.
  It is, for example, now possible to attach methods.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 pkgsrc/devel/py-attrs/Makefile
cvs rdiff -u -r1.15 -r1.16 pkgsrc/devel/py-attrs/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-attrs/Makefile
diff -u pkgsrc/devel/py-attrs/Makefile:1.25 pkgsrc/devel/py-attrs/Makefile:1.26
--- pkgsrc/devel/py-attrs/Makefile:1.25 Sat Oct 28 19:56:57 2023
+++ pkgsrc/devel/py-attrs/Makefile      Sun Dec 31 08:01:32 2023
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.25 2023/10/28 19:56:57 wiz Exp $
+# $NetBSD: Makefile,v 1.26 2023/12/31 08:01:32 adam Exp $
 
-DISTNAME=      attrs-23.1.0
+DISTNAME=      attrs-23.2.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=a/attrs/}
 
@@ -18,7 +17,6 @@ TOOL_DEPENDS+=        ${PYPKGPREFIX}-hatch-fanc
 #TEST_DEPENDS+=        ${PYPKGPREFIX}-Pympler-[0-9]*:../../devel/py-Pympler
 #TEST_DEPENDS+=        ${PYPKGPREFIX}-cloudpickle-[0-9]*:../../wip/py-cloudpickle
 #TEST_DEPENDS+=        ${PYPKGPREFIX}-hypothesis-[0-9]*:../../devel/py-hypothesis
-#TEST_DEPENDS+=        ${PYPKGPREFIX}-test>=4.3.0:../../devel/py-test
 #TEST_DEPENDS+=        ${PYPKGPREFIX}-mypy>=1.1.1:../../lang/py-mypy
 #TEST_DEPENDS+=        ${PYPKGPREFIX}-zope.interface-[0-9]*:../../devel/py-zope.interface
 #TEST_DEPENDS+=        ${PYPKGPREFIX}-coverage>=5.3:../../devel/py-coverage
@@ -27,13 +25,10 @@ PYTHON_VERSIONS_INCOMPATIBLE=       27
 
 USE_LANGUAGES= # none
 
-#do-test:
-#      cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
-
-.include "../../lang/python/pyversion.mk"
-.if ${PYTHON_VERSION} < 311
+#.include "../../lang/python/pyversion.mk"
+#.if ${PYTHON_VERSION} < 311
 #TEST_DEPENDS+=        ${PYPKGPREFIX}-test-mypy-plugins-[0-9]*:../../devel/py-test-mypy-plugins
-.endif
+#.endif
 
 .include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/devel/py-attrs/distinfo
diff -u pkgsrc/devel/py-attrs/distinfo:1.15 pkgsrc/devel/py-attrs/distinfo:1.16
--- pkgsrc/devel/py-attrs/distinfo:1.15 Sun Apr 30 13:14:49 2023
+++ pkgsrc/devel/py-attrs/distinfo      Sun Dec 31 08:01:32 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.15 2023/04/30 13:14:49 wiz Exp $
+$NetBSD: distinfo,v 1.16 2023/12/31 08:01:32 adam Exp $
 
-BLAKE2s (attrs-23.1.0.tar.gz) = f19605d4c61bb8752225f5ad7643f1a62c8404787f78f37372cdb6bc4f6783bc
-SHA512 (attrs-23.1.0.tar.gz) = 1fff41da90668601b29412f71b4419dd9ffb9f2a8e54ce2199198557729167d6d7574954dc998818caba0d6bc378ab2ce068541df9c1c0d4ab1b071758d4a38a
-Size (attrs-23.1.0.tar.gz) = 212878 bytes
+BLAKE2s (attrs-23.2.0.tar.gz) = d97bb1ccb134d5490247bfa9f010562d276edf4c0c2c62bdadddbedda175fc17
+SHA512 (attrs-23.2.0.tar.gz) = d8b178072a028b95d8424cd3ce0c8b4e6da8558fbcbcaaef91fbd03cf51e6190aa248aa0bff853e6f7c9595bbd5a8eef9d6f68ae2830cc1cc6d826ab0dda2378
+Size (attrs-23.2.0.tar.gz) = 780820 bytes



Home | Main Index | Thread Index | Old Index