diff --git a/.gitignore b/.gitignore index d4aa78b..78cc3fc 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/typing_extensions-4.4.0.tar.gz +SOURCES/typing_extensions-4.12.2.tar.gz diff --git a/.python-typing-extensions.metadata b/.python-typing-extensions.metadata index 1a237dd..a7a2669 100644 --- a/.python-typing-extensions.metadata +++ b/.python-typing-extensions.metadata @@ -1 +1 @@ -9dbf798784009efaef80c8198a75b2a9e519eb95 SOURCES/typing_extensions-4.4.0.tar.gz +1389615a3f0bd216e7db4440985d51fb3f2ea2c6 SOURCES/typing_extensions-4.12.2.tar.gz diff --git a/SOURCES/README.md b/SOURCES/README.md new file mode 100644 index 0000000..dfd4512 --- /dev/null +++ b/SOURCES/README.md @@ -0,0 +1,3 @@ +# python-typing-extensions + +The python-typing-extensions package \ No newline at end of file diff --git a/SOURCES/_typed_dict_test_helper.py b/SOURCES/_typed_dict_test_helper.py deleted file mode 100644 index 396a94f..0000000 --- a/SOURCES/_typed_dict_test_helper.py +++ /dev/null @@ -1,8 +0,0 @@ -from __future__ import annotations - -from typing import Generic, Optional, T -from typing_extensions import TypedDict - - -class FooGeneric(TypedDict, Generic[T]): - a: Optional[T] diff --git a/SPECS/python-typing-extensions.spec b/SPECS/python-typing-extensions.spec index a346024..eafee17 100644 --- a/SPECS/python-typing-extensions.spec +++ b/SPECS/python-typing-extensions.spec @@ -1,5 +1,5 @@ Name: python-typing-extensions -Version: 4.4.0 +Version: 4.12.2 Release: 2%{?dist} Summary: Python Typing Extensions @@ -7,9 +7,6 @@ License: PSF-2.0 URL: https://pypi.org/project/typing-extensions/ Source0: %{pypi_source typing_extensions} -# https://github.com/python/typing_extensions/pull/97 -Source1: https://github.com/python/typing_extensions/raw/4.4.0/src/_typed_dict_test_helper.py - BuildArch: noarch BuildRequires: python3-devel @@ -17,30 +14,23 @@ BuildRequires: python3-test %global _description %{expand: -The `typing_extensions` module serves two related purposes: - -- Enable use of new type system features on older Python versions. For example, - `typing.TypeGuard` is new in Python 3.10, but `typing_extensions` allows - users on Python 3.6 through 3.9 to use it too. -- Enable experimentation with new type system PEPs before they are accepted and - added to the `typing` module. - -New features may be added to `typing_extensions` as soon as they are specified -in a PEP that has been added to the [python/peps](https://github.com/python/peps) -repository. If the PEP is accepted, the feature will then be added to `typing` -for the next CPython release. No typing PEP has been rejected so far, so we -haven't yet figured out how to deal with that possibility. - -Starting with version 4.0.0, `typing_extensions` uses -[Semantic Versioning](https://semver.org/). The -major version is incremented for all backwards-incompatible changes. -Therefore, it's safe to depend -on `typing_extensions` like this: `typing_extensions >=x.y, <(x+1)`, -where `x.y` is the first version that includes all features you need. - -`typing_extensions` supports Python versions 3.7 and higher. In the future, -support for older Python versions will be dropped some time after that version -reaches end of life.} +The typing_extensions module serves two related purposes: + + Enable use of new type system features on older Python versions. + For example, typing.TypeGuard is new in Python 3.10, but typing_extensions + allows users on previous Python versions to use it too. + + Enable experimentation with new type system PEPs before they are accepted and + added to the typing module. + +typing_extensions is treated specially by static type checkers such as mypy and +pyright. Objects defined in typing_extensions are treated the same way as +equivalent forms in typing. + +typing_extensions uses Semantic Versioning. The major version will be +incremented only for backwards-incompatible changes. Therefore, it's safe to +depend on typing_extensions like this: typing_extensions >=x.y, <(x+1), +where x.y is the first version that includes all features you need.} %description %_description @@ -52,7 +42,7 @@ Summary: %{summary} %prep %autosetup -n typing_extensions-%{version} -cp -v %{SOURCE1} src/ + %generate_buildrequires %pyproject_buildrequires @@ -72,15 +62,89 @@ cp -v %{SOURCE1} src/ cd src %{python3} -m unittest discover + %files -n python3-typing-extensions -f %{pyproject_files} %license LICENSE %doc CHANGELOG.md %doc README.md + %changelog -* Thu Feb 01 2024 MSVSphere Packaging Team - 4.4.0-2 +* Mon Jun 10 2024 Python Maint - 4.12.2-2 +- Rebuilt for Python 3.13 + +* Fri Jun 07 2024 Jonny Heggheim - 4.12.2-1 +- Updated to version 4.12.2 + +* Fri Jun 07 2024 Python Maint - 4.12.1-2 +- Rebuilt for Python 3.13 + +* Sun Jun 02 2024 Benjamin A. Beasley - 4.12.1-1 +- Updated to version 4.12.1 (close RHBZ#2280883) + +* Wed May 29 2024 Karolina Surma - 4.12.0-1 +- Updated to version 4.12.0 + +* Tue Apr 09 2024 Jonny Heggheim - 4.11.0-1 +- Updated to version 4.11.0 + +* Tue Feb 27 2024 Jonny Heggheim - 4.10.0-1 +- Updated to version 4.10.0 + +* Sun Feb 18 2024 Jonny Heggheim - 4.10.0~rc1-1 +- Updated to version 4.10.0rc1 + +* Fri Feb 16 2024 Yaakov Selkowitz - 4.9.0-4 +- Fix test_generic_protocols_special_from_protocol with latest Python + +* Thu Feb 01 2024 MSVSphere Packaging Team - 4.9.0-3 - Rebuilt for MSVSphere 9.3 +* Fri Jan 26 2024 Fedora Release Engineering - 4.9.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 4.9.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Dec 10 2023 Jonny Heggheim - 4.9.0-1 +- Updated to version 4.9.0 + +* Mon Sep 18 2023 Jonny Heggheim - 4.8.0-1 +- Updated to version 4.8.0 + +* Fri Jul 21 2023 Fedora Release Engineering - 4.7.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sun Jul 02 2023 Jonny Heggheim - 4.7.1-1 +- Updated to version 4.7.1 + +* Thu Jun 29 2023 Python Maint - 4.7.0-2 +- Rebuilt for Python 3.12 + +* Wed Jun 28 2023 Jonny Heggheim - 4.7.0-1 +- Updated to version 4.7.0 + +* Tue Jun 13 2023 Python Maint - 4.6.3-2 +- Rebuilt for Python 3.12 + +* Sat Jun 03 2023 Jonny Heggheim - 4.6.3-1 +- Updated to version 4.6.3 + +* Thu May 25 2023 Jonny Heggheim - 4.6.2-1 +- Updated to version 4.6.2 + +* Wed May 24 2023 Jonny Heggheim - 4.6.1-1 +- Updated to version 4.6.1 + +* Tue May 23 2023 Jonny Heggheim - 4.6.0-1 +- Updated to version 4.6.0 + +* Wed Feb 15 2023 Jonny Heggheim - 4.5.0-1 +- Updated to version 4.5.0 + +* Fri Jan 20 2023 Fedora Release Engineering - 4.4.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Tue Nov 29 2022 Benjamin A. Beasley - 4.4.0-2 - Update License to SPDX