From ea13440a5f73bfc381f9a032a51e20eedf3872cb Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 27 Aug 2024 00:54:42 +0000 Subject: automatic import of python-typing-extensions --- .gitignore | 1 + python-typing-extensions.spec | 110 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 112 insertions(+) create mode 100644 python-typing-extensions.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..151e0eb 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/typing_extensions-4.10.0.tar.gz diff --git a/python-typing-extensions.spec b/python-typing-extensions.spec new file mode 100644 index 0000000..f5c7164 --- /dev/null +++ b/python-typing-extensions.spec @@ -0,0 +1,110 @@ +%global _empty_manifest_terminate_build 0 +Name: python-typing-extensions +Version: 4.10.0 +Release: 2 +Summary: Backported and Experimental Type Hints for Python 3.5+ +License: PSF-2.0 +URL: https://github.com/python/typing/blob/master/typing_extensions/README.rst +Source0: https://files.pythonhosted.org/packages/16/3a/0d26ce356c7465a19c9ea8814b960f8a36c3b0d07c323176620b7b483e44/typing_extensions-4.10.0.tar.gz +BuildArch: noarch +%description +Typing Extensions - Backported and Experimental Type Hints for Python. +The typing module was added to the standard library in Python 3.5, but many new features have been added to the module since then. +This means users of Python 3.5 - 3.6 who are unable to upgrade will not be able to take advantage of new types added to the typing +module, such as typing.Protocol or typing.TypedDict. +The typing_extensions module contains backports of these changes. Experimental types that will eventually be added to the typing +module are also included in typing_extensions, such as typing.ParamSpec and typing.TypeGuard. + +%package -n python3-typing-extensions +Summary: Backported and Experimental Type Hints for Python 3.5+ +Provides: python-typing-extensions = %{version}-%{release} +# Base build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip python3-flit-core +BuildRequires: python3-wheel python3-test +%description -n python3-typing-extensions +Typing Extensions -Backported and Experimental Type Hints for Python. + +%package help +Summary: Backported and Experimental Type Hints for Python 3.5+ +Provides: python3-typing-extensions-doc +%description help +Typing Extensions -Backported and Experimental Type Hints for Python. + +%prep +%autosetup -n typing_extensions-%{version} -p1 + +%build +%pyproject_build + +%install +%pyproject_install + +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%check +cd src +%{__python3} -m unittest discover + +%files -n python3-typing-extensions -f filelist.lst + +%dir %{python3_sitelib}/* +%{python3_sitelib}/__pycache__/ + +%files help -f doclist.lst +%license LICENSE +%doc CHANGELOG.md README.md +%{_docdir}/* + +%changelog +* Mon Mar 4 2024 Han Guangyu - 4.10.0-2 +- Remove unused `Make-tests-pass-on-conda-builds.patch` to fix ci_failed. + +* Mon Mar 4 2024 Dongxing Wang - 4.10.0-1 +- Update package with version 4.10.0 + Add support for PEP 728, PEP 742 + Drop runtime error when a read-only TypedDict item overrides a mutable one. + Speedup issubclass() checks against simple runtime-checkable protocols by around 6%. + Add support for PEP 705, adding typing_extensions.ReadOnly. + Drop support for Python 3.7 (including PyPy-3.7). + +* Fri Feb 2 2024 liyanan - 4.5.0-2 +- Make tests pass on conda builds + +* Tue May 9 2023 liyanan - 4.5.0-1 +- Update package to version 4.5.0 + +* Fri May 06 2022 huangtianhua - 3.10.0.2-1 +- upgrade to 3.10.0.2 to fix python3.10 test error + +* Thu Aug 26 2021 orange-snn - 3.10.0.0-1 +- update to 3.10.0.0 + +* Tue Aug 03 2021 OpenStack_SIG - 3.7.4.3-1 +- Package Spec generate diff --git a/sources b/sources new file mode 100644 index 0000000..32848b3 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +a6ea8be6e5b41445d679541e0b6e0e0f typing_extensions-4.10.0.tar.gz -- cgit v1.2.3