diff options
| author | robot-piglet <[email protected]> | 2024-11-07 22:38:25 +0300 | 
|---|---|---|
| committer | robot-piglet <[email protected]> | 2024-11-07 22:47:43 +0300 | 
| commit | 4b6cbdc40a3c0b3cee2bf7af07482f02334ef62c (patch) | |
| tree | c8fda96fdb5a61a09924de91db6f1f16fa9c738c /contrib/python | |
| parent | 78f8d3bf9f1e44abd6880b0a2660ed53fef15d58 (diff) | |
Intermediate changes
commit_hash:60899e5485353c0a9944b5b350a809189ccab674
Diffstat (limited to 'contrib/python')
| -rw-r--r-- | contrib/python/frozenlist/.dist-info/METADATA | 71 | ||||
| -rw-r--r-- | contrib/python/frozenlist/frozenlist/__init__.py | 9 | ||||
| -rw-r--r-- | contrib/python/frozenlist/frozenlist/_frozenlist.pyx | 2 | ||||
| -rw-r--r-- | contrib/python/frozenlist/tests/test_frozenlist.py | 10 | ||||
| -rw-r--r-- | contrib/python/frozenlist/ya.make | 2 | 
5 files changed, 81 insertions, 13 deletions
diff --git a/contrib/python/frozenlist/.dist-info/METADATA b/contrib/python/frozenlist/.dist-info/METADATA index 60603d5a5a4..5b96937af16 100644 --- a/contrib/python/frozenlist/.dist-info/METADATA +++ b/contrib/python/frozenlist/.dist-info/METADATA @@ -1,6 +1,6 @@  Metadata-Version: 2.1  Name: frozenlist -Version: 1.4.1 +Version: 1.5.0  Summary: A list-like structure which implements collections.abc.MutableSequence  Home-page: https://github.com/aio-libs/frozenlist  Maintainer: aiohttp team <[email protected]> @@ -29,6 +29,7 @@ Classifier: Programming Language :: Python :: 3.9  Classifier: Programming Language :: Python :: 3.10  Classifier: Programming Language :: Python :: 3.11  Classifier: Programming Language :: Python :: 3.12 +Classifier: Programming Language :: Python :: 3.13  Classifier: Programming Language :: Python :: Implementation :: CPython  Classifier: Programming Language :: Python :: Implementation :: PyPy  Requires-Python: >=3.8 @@ -168,6 +169,62 @@ Changelog  .. towncrier release notes start +1.5.0 (2024-10-22) +================== + +Bug fixes +--------- + +- An incorrect signature of the ``__class_getitem__`` class method +  has been fixed, adding a missing ``class_item`` argument under +  Python 3.8 and older. + +  This change also improves the code coverage of this method that +  was previously missing -- by `@webknjaz <https://github.com/sponsors/webknjaz>`__. + + +  *Related issues and pull requests on GitHub:* +  `#567 <https://github.com/aio-libs/frozenlist/issues/567>`__, `#571 <https://github.com/aio-libs/frozenlist/issues/571>`__. + + +Improved documentation +---------------------- + +- Rendered issue, PR, and commit links now lead to +  ``frozenlist``'s repo instead of ``yarl``'s repo. + + +  *Related issues and pull requests on GitHub:* +  `#573 <https://github.com/aio-libs/frozenlist/issues/573>`__. + +- On the ``Contributing docs`` page, +  a link to the ``Towncrier philosophy`` has been fixed. + + +  *Related issues and pull requests on GitHub:* +  `#574 <https://github.com/aio-libs/frozenlist/issues/574>`__. + + +Packaging updates and notes for downstreams +------------------------------------------- + +- A name of a temporary building directory now reflects +  that it's related to ``frozenlist``, not ``yarl``. + + +  *Related issues and pull requests on GitHub:* +  `#573 <https://github.com/aio-libs/frozenlist/issues/573>`__. + +- Declared Python 3.13 supported officially in the distribution package metadata. + + +  *Related issues and pull requests on GitHub:* +  `#595 <https://github.com/aio-libs/frozenlist/issues/595>`__. + + +---- + +  1.4.1 (2023-12-15)  ================== @@ -179,7 +236,7 @@ Packaging updates and notes for downstreams    *Related issues and pull requests on GitHub:* -  `#553 <https://github.com/aio-libs/yarl/issues/553>`__. +  `#553 <https://github.com/aio-libs/frozenlist/issues/553>`__.  - Replaced the packaging is replaced from an old-fashioned ``setup.py`` to an    in-tree `PEP 517 <https://peps.python.org/pep-517>`__ build backend -- by `@webknjaz <https://github.com/sponsors/webknjaz>`__. @@ -208,7 +265,7 @@ Packaging updates and notes for downstreams    *Related issues and pull requests on GitHub:* -  `#560 <https://github.com/aio-libs/yarl/issues/560>`__. +  `#560 <https://github.com/aio-libs/frozenlist/issues/560>`__.  Contributor-facing changes @@ -243,7 +300,7 @@ Contributor-facing changes    *Related issues and pull requests on GitHub:* -  `#560 <https://github.com/aio-libs/yarl/issues/560>`__. +  `#560 <https://github.com/aio-libs/frozenlist/issues/560>`__.  - Coverage collection has been implemented for the Cython modules    -- by `@webknjaz <https://github.com/sponsors/webknjaz>`__. @@ -252,7 +309,7 @@ Contributor-facing changes    *Related issues and pull requests on GitHub:* -  `#561 <https://github.com/aio-libs/yarl/issues/561>`__. +  `#561 <https://github.com/aio-libs/frozenlist/issues/561>`__.  - A step-by-step ``Release Guide`` guide has    been added, describing how to release *frozenlist* -- by `@webknjaz <https://github.com/sponsors/webknjaz>`__. @@ -261,7 +318,7 @@ Contributor-facing changes    *Related issues and pull requests on GitHub:* -  `#563 <https://github.com/aio-libs/yarl/issues/563>`__. +  `#563 <https://github.com/aio-libs/frozenlist/issues/563>`__.  - Detailed ``Contributing Guidelines`` on    authoring the changelog fragments have been published in the @@ -269,7 +326,7 @@ Contributor-facing changes    *Related issues and pull requests on GitHub:* -  `#564 <https://github.com/aio-libs/yarl/issues/564>`__. +  `#564 <https://github.com/aio-libs/frozenlist/issues/564>`__.  ---- diff --git a/contrib/python/frozenlist/frozenlist/__init__.py b/contrib/python/frozenlist/frozenlist/__init__.py index c0f71368bab..4022db505cf 100644 --- a/contrib/python/frozenlist/frozenlist/__init__.py +++ b/contrib/python/frozenlist/frozenlist/__init__.py @@ -3,9 +3,9 @@ import sys  import types  from collections.abc import MutableSequence  from functools import total_ordering -from typing import Type +from typing import Any, Type -__version__ = "1.4.1" +__version__ = "1.5.0"  __all__ = ("FrozenList", "PyFrozenList")  # type: Tuple[str, ...] @@ -22,7 +22,10 @@ class FrozenList(MutableSequence):      else:          @classmethod -        def __class_getitem__(cls: Type["FrozenList"]) -> Type["FrozenList"]: +        def __class_getitem__( +            cls: Type["FrozenList"], +            cls_item: Any, +        ) -> Type["FrozenList"]:              return cls      def __init__(self, items=None): diff --git a/contrib/python/frozenlist/frozenlist/_frozenlist.pyx b/contrib/python/frozenlist/frozenlist/_frozenlist.pyx index 9ee846c1aeb..45d11de1326 100644 --- a/contrib/python/frozenlist/frozenlist/_frozenlist.pyx +++ b/contrib/python/frozenlist/frozenlist/_frozenlist.pyx @@ -9,7 +9,7 @@ cdef class FrozenList:          __class_getitem__ = classmethod(types.GenericAlias)      else:          @classmethod -        def __class_getitem__(cls): +        def __class_getitem__(cls, cls_item):              return cls      cdef readonly bint frozen diff --git a/contrib/python/frozenlist/tests/test_frozenlist.py b/contrib/python/frozenlist/tests/test_frozenlist.py index 403d3ec858a..f7429ee6b07 100644 --- a/contrib/python/frozenlist/tests/test_frozenlist.py +++ b/contrib/python/frozenlist/tests/test_frozenlist.py @@ -11,7 +11,15 @@ from frozenlist import FrozenList, PyFrozenList  class FrozenListMixin:      FrozenList = NotImplemented -    SKIP_METHODS = {"__abstractmethods__", "__slots__"} +    SKIP_METHODS = { +        "__abstractmethods__", +        "__slots__", +        "__static_attributes__", +        "__firstlineno__", +    } + +    def test___class_getitem__(self) -> None: +        assert self.FrozenList[str] is not None      def test_subclass(self) -> None:          assert issubclass(self.FrozenList, MutableSequence) diff --git a/contrib/python/frozenlist/ya.make b/contrib/python/frozenlist/ya.make index e737af0b3fc..b065ef3ee44 100644 --- a/contrib/python/frozenlist/ya.make +++ b/contrib/python/frozenlist/ya.make @@ -2,7 +2,7 @@  PY3_LIBRARY() -VERSION(1.4.1) +VERSION(1.5.0)  LICENSE(Apache-2.0)  | 
