From 9f09d302ce53c5c221739731215e8ed763e43f02 Mon Sep 17 00:00:00 2001 From: tigro Date: Wed, 10 Jan 2024 14:53:15 +0300 Subject: [PATCH] import python-typing-extensions-4.4.0-2.el9 --- .gitignore | 1 + .python-typing-extensions.metadata | 1 + SOURCES/_typed_dict_test_helper.py | 8 ++ SPECS/python-typing-extensions.spec | 152 ++++++++++++++++++++++++++++ 4 files changed, 162 insertions(+) create mode 100644 .gitignore create mode 100644 .python-typing-extensions.metadata create mode 100644 SOURCES/_typed_dict_test_helper.py create mode 100644 SPECS/python-typing-extensions.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d4aa78b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/typing_extensions-4.4.0.tar.gz diff --git a/.python-typing-extensions.metadata b/.python-typing-extensions.metadata new file mode 100644 index 0000000..1a237dd --- /dev/null +++ b/.python-typing-extensions.metadata @@ -0,0 +1 @@ +9dbf798784009efaef80c8198a75b2a9e519eb95 SOURCES/typing_extensions-4.4.0.tar.gz diff --git a/SOURCES/_typed_dict_test_helper.py b/SOURCES/_typed_dict_test_helper.py new file mode 100644 index 0000000..396a94f --- /dev/null +++ b/SOURCES/_typed_dict_test_helper.py @@ -0,0 +1,8 @@ +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 new file mode 100644 index 0000000..1dfe865 --- /dev/null +++ b/SPECS/python-typing-extensions.spec @@ -0,0 +1,152 @@ +Name: python-typing-extensions +Version: 4.4.0 +Release: 2%{?dist} +Summary: Python Typing Extensions + +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 +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.} + +%description %_description + +%package -n python3-typing-extensions +Summary: %{summary} + +%description -n python3-typing-extensions %_description + + +%prep +%autosetup -n typing_extensions-%{version} +cp -v %{SOURCE1} src/ + +%generate_buildrequires +%pyproject_buildrequires + + +%build +%pyproject_wheel + + +%install +%pyproject_install + +%pyproject_save_files typing_extensions + + +%check +cd src +%{python3} -m unittest discover + +%files -n python3-typing-extensions -f %{pyproject_files} +%license LICENSE +%doc CHANGELOG.md +%doc README.md + +%changelog +* Wed Jan 10 2024 Arkady L. Shane - 4.4.0-2 +- Rebuilt for MSVSphere 9.3 + +* Tue Nov 29 2022 Benjamin A. Beasley - 4.4.0-2 +- Update License to SPDX + +* Thu Nov 24 2022 Jonny Heggheim - 4.4.0-1 +- Updated to version 4.4.0 + +* Fri Jul 22 2022 Fedora Release Engineering - 4.2.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 4.2.0-4 +- Rebuilt for Python 3.11 + +* Mon May 23 2022 Benjamin A. Beasley - 4.2.0-3 +- Stop using deprecated zero-argument pypi_source macro + +* Sun May 22 2022 Jonny Heggheim - 4.2.0-2 +- Removed unused build depenencies + +* Sat Apr 30 2022 Jonny Heggheim - 4.2.0-1 +- Updated to version 4.2.0 + +* Fri Jan 21 2022 Fedora Release Engineering - 3.10.0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Aug 31 2021 Fabian Affolter - 3.10.0.2-1 +- Update to latest upstream release 3.10.0.2 (closes rhbz#1955959) + +* Thu Aug 26 2021 Fabian Affolter - 3.10.0.0-1 +- Update to latest upstream release 3.10.0.0 (closes rhbz#1955959) + +* Fri Jul 23 2021 Fedora Release Engineering - 3.7.4.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 3.7.4.3-3 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 3.7.4.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sun Aug 23 2020 Fabian Affolter - 3.7.4.3-1 +- Update to latest upstream release 3.7.4.3 (rhbz#1871451) + +* Wed Jul 29 2020 Fedora Release Engineering - 3.7.4.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 3.7.4.2-2 +- Rebuilt for Python 3.9 + +* Sat Apr 11 2020 Fabian Affolter - 3.7.4.2-1 +- Support for Python 3.9 (rhbz#1808663) +- Update to latest upstream release 3.7.4.2 (rhbz#1766182) + +* Thu Jan 30 2020 Fedora Release Engineering - 3.7.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 3.7.4-4 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 3.7.4-3 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 3.7.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Jul 12 2019 Jonny Heggheim - 3.7.4-1 +- Updated to 3.7.4 + +* Sun Mar 31 2019 Jonny Heggheim - 3.7.2-1 +- Inital packaging