py-absl-py: updated to 2.1.0

2.1.0 (2024-01-16)

Added

(flags) Added absl.flags.override_value function to provide FlagHolder with a construct to modify values. The new interface parallels absl.flags.FlagValues.__setattr__ but checks that the provided value conforms to the flag's expected type.
(testing) Added a new method absltest.TestCase.assertDataclassEqual that tests equality of dataclass.dataclass objects with better error messages when the assert fails.
Changed

(flags) absl.flags.argparse_flags.ArgumentParser now correctly inherits an empty instance of FlagValues to ensure that absl flags, such as --flagfile, --undefok are supported.
(testing) Do not exit 5 if tests were skipped on Python 3.12. This follows the CPython change in python/cpython#113856.
Fixed

(flags) The flag foo no longer retains the value bar after FLAGS.foo = bar fails due to a validation error.
(testing) Fixed an issue caused by this Python 3.12.1 change where the test reporter crashes when all tests are skipped.


2.0.0 (2023-09-19)

Changed

absl-py no longer supports Python 3.6. It has reached end-of-life for more than a year now.
Support Python 3.12.
(logging) logging.exception can now take exc_info as argument, with default value True. Prior to this change setting exc_info would raise KeyError, this change fixes this behaviour.
(testing) For Python 3.11+, the calls to absltest.TestCase.enter_context are forwarded to unittest.TestCase.enterContext (when called via instance) or unittest.TestCase.enterClassContext (when called via class) now. As a result, on Python 3.11+, the private _cls_exit_stack attribute is not defined on absltest.TestCase and _exit_stack attribute is not defined on its instances.
(testing) absltest.TestCase.assertSameStructure() now uses the test case's equality functions (registered with TestCase.addTypeEqualityFunc()) for comparing leaves of the structure.
(testing) abslTest.TestCase.fail() now names its arguments (self, msg=None, user_msg=None), and not (self, msg=None, prefix=None), better reflecting the behavior and usage of the two message arguments.
DEFINE_enum, DEFINE_multi_enum, and EnumParser now raise errors when enum_values is provided as a single string value. Additionally, EnumParser.enum_values is now stored as a list copy of the provided enum_values parameter.
(testing) Updated paramaterized.CoopTestCase() to use Python 3 metaclass idioms. Most uses of this function continued working during the Python 3 migration still worked because a Python 2 compatibility __metaclass__ variables also existed. Now pure Python 3 base classes without backwards compatibility will work as intended.
(testing) absltest.TestCase.assertSequenceStartsWith now explicitly fail when passed a Mapping or Set object as the whole argument.
This commit is contained in:
adam 2024-02-11 16:40:23 +00:00
parent 373a1372b7
commit 037a65c95a
3 changed files with 20 additions and 42 deletions

View File

@ -1,8 +1,7 @@
# $NetBSD: Makefile,v 1.5 2023/03/29 09:34:05 wiz Exp $
# $NetBSD: Makefile,v 1.6 2024/02/11 16:40:23 adam Exp $
DISTNAME= absl-py-0.14.1
DISTNAME= absl-py-2.1.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 1
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=a/absl-py/}
@ -11,15 +10,12 @@ HOMEPAGE= https://github.com/abseil/abseil-py
COMMENT= Abseil Python Common Libraries
LICENSE= apache-2.0
DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
.include "../../lang/python/pyversion.mk"
.if ${PYTHON_VERSION} == 207
DEPENDS+= ${PYPKGPREFIX}-enum34-[0-9]*:../../devel/py-enum34
.endif
TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
USE_LANGUAGES= # none
.include "../../lang/python/egg.mk"
PYTHON_VERSIONS_INCOMPATIBLE= 27
.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"

View File

@ -1,20 +1,16 @@
@comment $NetBSD: PLIST,v 1.3 2021/10/11 09:02:46 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
${PYSITELIB}/${EGG_INFODIR}/requires.txt
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
@comment $NetBSD: PLIST,v 1.4 2024/02/11 16:40:23 adam Exp $
${PYSITELIB}/${WHEEL_INFODIR}/AUTHORS
${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
${PYSITELIB}/absl/__init__.py
${PYSITELIB}/absl/__init__.pyc
${PYSITELIB}/absl/__init__.pyo
${PYSITELIB}/absl/_collections_abc.py
${PYSITELIB}/absl/_collections_abc.pyc
${PYSITELIB}/absl/_collections_abc.pyo
${PYSITELIB}/absl/_enum_module.py
${PYSITELIB}/absl/_enum_module.pyc
${PYSITELIB}/absl/_enum_module.pyo
${PYSITELIB}/absl/app.py
${PYSITELIB}/absl/app.pyc
${PYSITELIB}/absl/app.pyi
${PYSITELIB}/absl/app.pyo
${PYSITELIB}/absl/command_name.py
${PYSITELIB}/absl/command_name.pyc
@ -51,6 +47,7 @@ ${PYSITELIB}/absl/flags/argparse_flags.pyc
${PYSITELIB}/absl/flags/argparse_flags.pyo
${PYSITELIB}/absl/logging/__init__.py
${PYSITELIB}/absl/logging/__init__.pyc
${PYSITELIB}/absl/logging/__init__.pyi
${PYSITELIB}/absl/logging/__init__.pyo
${PYSITELIB}/absl/logging/converter.py
${PYSITELIB}/absl/logging/converter.pyc
@ -61,9 +58,6 @@ ${PYSITELIB}/absl/testing/__init__.pyo
${PYSITELIB}/absl/testing/_bazelize_command.py
${PYSITELIB}/absl/testing/_bazelize_command.pyc
${PYSITELIB}/absl/testing/_bazelize_command.pyo
${PYSITELIB}/absl/testing/_parameterized_async.py
${PLIST.py3x}${PYSITELIB}/absl/testing/_parameterized_async.pyc
${PLIST.py3x}${PYSITELIB}/absl/testing/_parameterized_async.pyo
${PYSITELIB}/absl/testing/_pretty_print_reporter.py
${PYSITELIB}/absl/testing/_pretty_print_reporter.pyc
${PYSITELIB}/absl/testing/_pretty_print_reporter.pyo
@ -79,15 +73,3 @@ ${PYSITELIB}/absl/testing/parameterized.pyo
${PYSITELIB}/absl/testing/xml_reporter.py
${PYSITELIB}/absl/testing/xml_reporter.pyc
${PYSITELIB}/absl/testing/xml_reporter.pyo
${PYSITELIB}/absl/third_party/__init__.py
${PYSITELIB}/absl/third_party/__init__.pyc
${PYSITELIB}/absl/third_party/__init__.pyo
${PYSITELIB}/absl/third_party/unittest3_backport/__init__.py
${PYSITELIB}/absl/third_party/unittest3_backport/__init__.pyc
${PYSITELIB}/absl/third_party/unittest3_backport/__init__.pyo
${PYSITELIB}/absl/third_party/unittest3_backport/case.py
${PYSITELIB}/absl/third_party/unittest3_backport/case.pyc
${PYSITELIB}/absl/third_party/unittest3_backport/case.pyo
${PYSITELIB}/absl/third_party/unittest3_backport/result.py
${PYSITELIB}/absl/third_party/unittest3_backport/result.pyc
${PYSITELIB}/absl/third_party/unittest3_backport/result.pyo

View File

@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.5 2021/10/26 10:18:08 nia Exp $
$NetBSD: distinfo,v 1.6 2024/02/11 16:40:23 adam Exp $
BLAKE2s (absl-py-0.14.1.tar.gz) = 04a42c56aca110bf0591a8cff2864d25b0e7acc2c97788e059583705c496f8c2
SHA512 (absl-py-0.14.1.tar.gz) = e07472da5fea8c28b5c138d59b5a4ad9f2d8d1c24545af4dc1b9325a40ffd13a992a58142f955c49b7964de367336e23c72c2cdddabd81fb03b855021b031c58
Size (absl-py-0.14.1.tar.gz) = 114367 bytes
BLAKE2s (absl-py-2.1.0.tar.gz) = a04198f09b9fb0d45f8954ca97055e0801c20ac3217b6d452c218e9902917bd1
SHA512 (absl-py-2.1.0.tar.gz) = 3f28c73c63c9a648a3df73f367725bb4f294b1858daa9e63711a3dfb1c7a7d14b3929afdc384a3e4a3da79820c3b2bb19daf068c0628bf1ea5cfba5b7f8645b7
Size (absl-py-2.1.0.tar.gz) = 118055 bytes