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 Aug 4 06:40:25 UTC 2024
Modified Files:
pkgsrc/devel/py-attrs: Makefile distinfo
Log Message:
py-attrs: updated to 24.1.0
24.1.0
Backwards-incompatible Changes
- `attrs.evolve()` doesn't accept the *inst* argument as a keyword argument anymore.
Pass it as the first positional argument instead.
- `attrs.validators.provides()` has been removed.
The removed code is available as a [gist](https://gist.github.com/hynek/9eaaaeb659808f3519870dfa16d2b6b2) for convenient copy and pasting.
- All packaging metadata except from `__version__` and `__version_info__` has been removed from the `attr` and `attrs` modules (for example, `attrs.__url__`).
Please use [`importlib.metadata`](https://docs.python.org/3/library/importlib.metadata.html) or [*importlib_metadata*](https://pypi.org/project/importlib-metadata/) instead.
- Speed up the generated `__eq__` methods significantly by generating a chain of attribute comparisons instead of constructing and comparing tuples.
This change arguably makes the behavior more correct,
but changes it if an attribute compares equal by identity but not value, like `float('nan')`.
Deprecations
- The *repr_ns* argument to `attr.s` is now deprecated.
It was a workaround for nested classes in Python 2 and is pointless in Python 3.
- The *hash* argument to `@attr.s`, `@attrs.define`, and `make_class()` is now deprecated in favor of *unsafe_hash*, as defined by PEP 681.
Changes
- Allow original slotted `functools.cached_property` classes to be cleaned by garbage collection.
Allow `super()` calls in slotted cached properties.
- Our type stubs now use modern type notation and are organized such that VS Code's quick-fix prefers the `attrs` namespace.
- Preserve `AttributeError` raised by properties of slotted classes with `functools.cached_properties`.
- It is now possible to wrap a converter into an `attrs.Converter` and get the current instance and/or the current field definition passed into the converter callable.
Note that this is not supported by any type checker, yet.
- `attrs.make_class()` now populates the `__annotations__` dict of the generated class, so that `attrs.resolve_types()` can resolve them.
- Added the `attrs.validators.or_()` validator.
- The combination of a `__attrs_pre_init__` that takes arguments, a kw-only field, and a default on that field does not crash anymore.
- `attrs.validators.in_()` now transforms certain unhashable options to tuples to keep the field hashable.
This allows fields that use this validator to be used with, for example, `attrs.filters.include()`.
- If a class has an *inherited* method called `__attrs_init_subclass__`, it is now called once the class is done assembling.
This is a replacement for Python's `__init_subclass__` and useful for registering classes, and similar.
To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 pkgsrc/devel/py-attrs/Makefile
cvs rdiff -u -r1.16 -r1.17 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.26 pkgsrc/devel/py-attrs/Makefile:1.27
--- pkgsrc/devel/py-attrs/Makefile:1.26 Sun Dec 31 08:01:32 2023
+++ pkgsrc/devel/py-attrs/Makefile Sun Aug 4 06:40:25 2024
@@ -1,18 +1,18 @@
-# $NetBSD: Makefile,v 1.26 2023/12/31 08:01:32 adam Exp $
+# $NetBSD: Makefile,v 1.27 2024/08/04 06:40:25 adam Exp $
-DISTNAME= attrs-23.2.0
+DISTNAME= attrs-24.1.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=a/attrs/}
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
-#HOMEPAGE= https://www.attrs.org/
+HOMEPAGE= https://github.com/python-attrs/attrs
COMMENT= Attributes without boilerplate
LICENSE= mit
-TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling-[0-9]*:../../devel/py-hatchling
+TOOL_DEPENDS+= ${PYPKGPREFIX}-hatch-fancy-pypi-readme>=23.2.0:../../devel/py-hatch-fancy-pypi-readme
TOOL_DEPENDS+= ${PYPKGPREFIX}-hatch-vcs-[0-9]*:../../devel/py-hatch-vcs
-TOOL_DEPENDS+= ${PYPKGPREFIX}-hatch-fancy-pypi-readme-[0-9]*:../../devel/py-hatch-fancy-pypi-readme
+TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling-[0-9]*:../../devel/py-hatchling
# tests are doomed because py-test and py-hypothesis depend on py-attrs
#TEST_DEPENDS+= ${PYPKGPREFIX}-Pympler-[0-9]*:../../devel/py-Pympler
#TEST_DEPENDS+= ${PYPKGPREFIX}-cloudpickle-[0-9]*:../../wip/py-cloudpickle
@@ -21,10 +21,10 @@ TOOL_DEPENDS+= ${PYPKGPREFIX}-hatch-fanc
#TEST_DEPENDS+= ${PYPKGPREFIX}-zope.interface-[0-9]*:../../devel/py-zope.interface
#TEST_DEPENDS+= ${PYPKGPREFIX}-coverage>=5.3:../../devel/py-coverage
-PYTHON_VERSIONS_INCOMPATIBLE= 27
-
USE_LANGUAGES= # none
+PYTHON_VERSIONS_INCOMPATIBLE= 27
+
#.include "../../lang/python/pyversion.mk"
#.if ${PYTHON_VERSION} < 311
#TEST_DEPENDS+= ${PYPKGPREFIX}-test-mypy-plugins-[0-9]*:../../devel/py-test-mypy-plugins
Index: pkgsrc/devel/py-attrs/distinfo
diff -u pkgsrc/devel/py-attrs/distinfo:1.16 pkgsrc/devel/py-attrs/distinfo:1.17
--- pkgsrc/devel/py-attrs/distinfo:1.16 Sun Dec 31 08:01:32 2023
+++ pkgsrc/devel/py-attrs/distinfo Sun Aug 4 06:40:25 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.16 2023/12/31 08:01:32 adam Exp $
+$NetBSD: distinfo,v 1.17 2024/08/04 06:40:25 adam Exp $
-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
+BLAKE2s (attrs-24.1.0.tar.gz) = 786d1977d846ea30b12b090603519d9328b58d1fc7632d86fa70b27312f540ef
+SHA512 (attrs-24.1.0.tar.gz) = dd84da9b06f5da2724d834c1b8b3ffb5d745d49c8a168e0503ca7572561b2021562b5bbfeea133a7d097fc9423a05494f372e72a9fcc25ada2f745c34a80fdab
+Size (attrs-24.1.0.tar.gz) = 792572 bytes
Home |
Main Index |
Thread Index |
Old Index