Skip to content

Commit 2ce7d92

Browse files
mceplbmwiedemann
authored andcommitted
Update python-typing_extensions to version 4.4.0 / rev 16 via SR 1031001
https://build.opensuse.org/request/show/1031001 by user mcepl + dimstar_suse - Clean specfile from old cruft. - Requires Python 3.7+ - Fix testsuite: Must test as module; don't need multibuild. - Update Summary and Description - Update to version 4.4.0 * Add `typing_extensions.Any` a backport of python 3.11's Any class which is subclassable at runtime. (backport from python/cpython#31841, by Shantanu and Jelle Zijlstra). Patch by James Hilton-Balfe (@Gobot1234). * Add initial support for TypeVarLike `default` parameter, PEP 696. Patch by Marc Mueller (@cdce8p). * Runtime support for PEP 698, adding `typing_extensions.override`. Patch by Jelle Zijlstra. * Add the `infer_variance` parameter to `TypeVar`, as specified in PEP 695. Patch by Jelle Zijlstra.
1 parent 7b65f8d commit 2ce7d92

File tree

7 files changed

+81
-55
lines changed

7 files changed

+81
-55
lines changed
-49 Bytes
Binary file not shown.

packages/p/python-typing_extensions/.rev

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,4 +144,26 @@
144144
<comment></comment>
145145
<requestid>1001419</requestid>
146146
</revision>
147+
<revision rev="16" vrev="1">
148+
<srcmd5>45257d574226ec68cbc8b4edfe49f82d</srcmd5>
149+
<version>4.4.0</version>
150+
<time>1666871607</time>
151+
<user>dimstar_suse</user>
152+
<comment>- Clean specfile from old cruft.
153+
- Requires Python 3.7+
154+
- Fix testsuite: Must test as module; don't need multibuild.
155+
- Update Summary and Description
156+
- Update to version 4.4.0
157+
* Add `typing_extensions.Any` a backport of python 3.11's Any class which is
158+
subclassable at runtime. (backport from python/cpython#31841, by Shantanu
159+
and Jelle Zijlstra). Patch by James Hilton-Balfe (@Gobot1234).
160+
* Add initial support for TypeVarLike `default` parameter, PEP 696.
161+
Patch by Marc Mueller (@cdce8p).
162+
* Runtime support for PEP 698, adding `typing_extensions.override`. Patch by
163+
Jelle Zijlstra.
164+
* Add the `infer_variance` parameter to `TypeVar`, as specified in PEP 695.
165+
Patch by Jelle Zijlstra.
166+
</comment>
167+
<requestid>1031001</requestid>
168+
</revision>
147169
</revisionlist>

packages/p/python-typing_extensions/_multibuild

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/p/python-typing_extensions/python-typing_extensions.changes

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
-------------------------------------------------------------------
2+
Mon Oct 24 18:14:28 UTC 2022 - Ben Greiner <[email protected]>
3+
4+
- Clean specfile from old cruft.
5+
- Requires Python 3.7+
6+
- Fix testsuite: Must test as module; don't need multibuild.
7+
- Update Summary and Description
8+
9+
-------------------------------------------------------------------
10+
Tue Oct 18 12:07:27 UTC 2022 - John Paul Adrian Glaubitz <[email protected]>
11+
12+
- Update to version 4.4.0
13+
* Add `typing_extensions.Any` a backport of python 3.11's Any class which is
14+
subclassable at runtime. (backport from python/cpython#31841, by Shantanu
15+
and Jelle Zijlstra). Patch by James Hilton-Balfe (@Gobot1234).
16+
* Add initial support for TypeVarLike `default` parameter, PEP 696.
17+
Patch by Marc Mueller (@cdce8p).
18+
* Runtime support for PEP 698, adding `typing_extensions.override`. Patch by
19+
Jelle Zijlstra.
20+
* Add the `infer_variance` parameter to `TypeVar`, as specified in PEP 695.
21+
Patch by Jelle Zijlstra.
22+
123
-------------------------------------------------------------------
224
Mon Sep 5 06:47:51 UTC 2022 - John Vandenberg <[email protected]>
325

Lines changed: 36 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# spec file for python-typing_extensions
2+
# spec file for package python-typing_extensions
33
#
44
# Copyright (c) 2022 SUSE LLC
55
#
@@ -16,64 +16,53 @@
1616
#
1717

1818

19-
%define modname typing_extensions
20-
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
21-
%bcond_without python2
22-
%global flavor @BUILD_FLAVOR@%{nil}
23-
%if "%{flavor}" == "test"
24-
%define psuffix -test
25-
%bcond_without test
26-
%else
27-
%define psuffix %{nil}
28-
%bcond_with test
29-
%endif
30-
Name: python-typing_extensions%{psuffix}
31-
Version: 4.3.0
19+
Name: python-typing_extensions
20+
Version: 4.4.0
3221
Release: 0
33-
Summary: Backported and Experimental Type Hints for Python 35+
22+
Summary: Backported and Experimental Type Hints for Python 3.7+
3423
License: Python-2.0
3524
URL: https://github.com/python/typing/
36-
Source0: https://files.pythonhosted.org/packages/source/t/typing_extensions/%{modname}-%{version}.tar.gz
25+
Source0: https://files.pythonhosted.org/packages/source/t/typing_extensions/typing_extensions-%{version}.tar.gz
3726
# See https://github.com/python/typing_extensions/issues/61
38-
Source1: https://raw.githubusercontent.com/python/typing_extensions/main/src/_typed_dict_test_helper.py
39-
BuildRequires: %{python_module flit-core < 4}
40-
BuildRequires: %{python_module flit-core >= 3.4}
27+
Source1: https://raw.githubusercontent.com/python/typing_extensions/%{version}/src/_typed_dict_test_helper.py
28+
BuildRequires: %{python_module base >= 3.7}
29+
BuildRequires: %{python_module flit-core >= 3.4 with %python-flit-core < 4}
4130
BuildRequires: %{python_module pip}
31+
BuildRequires: %{python_module testsuite}
4232
BuildRequires: fdupes
4333
BuildRequires: python-rpm-macros
34+
Provides: python-typing-extensions = %{version}-%{release}
4435
BuildArch: noarch
45-
Provides: python-typing-extensions = %{version}
46-
%if 0%{?suse_version} > 1320 && %{with test}
47-
BuildRequires: %{python_module testsuite}
48-
%endif
49-
%if %{with python2}
50-
BuildRequires: python-typing >= 3.7.4
51-
%endif
52-
BuildRequires: (python3-typing >= 3.7.4 if python3-base < 3.5)
53-
%if %{python_version_nodots} < 35
54-
Requires: python-typing >= 3.7.4
55-
%endif
5636
%python_subpackages
5737

5838
%description
59-
The ``typing`` module was added to the standard library in Python
60-
3.5 on a provisional basis and will no longer be provisional in
61-
Python 3.7. However, this means users of Python 3.5 - 3.6 who are
62-
unable to upgrade will not be able to take advantage of new types
63-
added to the ``typing`` module, such as ``typing.Text`` or
64-
``typing.Coroutine``.
39+
The typing_extensions module serves two related purposes:
40+
41+
* Enable use of new type system features on older Python versions.
42+
For example, typing.TypeGuard is new in Python 3.10, but
43+
typing_extensions allows users on previous Python versions to use
44+
it too.
45+
* Enable experimentation with new type system PEPs before they are
46+
accepted and added to the typing module.
47+
48+
New features may be added to typing_extensions as soon as they are
49+
specified in a PEP that has been added to the python/peps repository.
50+
If the PEP is accepted, the feature will then be added to typing for
51+
the next CPython release. No typing PEP has been rejected so far, so
52+
we haven't yet figured out how to deal with that possibility.
6553

66-
The ``typing_extensions`` module contains both backports of these
67-
changes as well as experimental types that will eventually be
68-
added to the ``typing`` module, such as ``Protocol``.
54+
Starting with version 4.0.0, typing_extensions uses Semantic Versioning.
55+
The major version is incremented for all backwards-incompatible changes.
56+
Therefore, it's safe to depend on typing_extensions like this:
57+
typing_extensions >=x.y, <(x+1),
58+
where x.y is the first version that includes all features you need.
6959

70-
Users of other Python versions should continue to install and use
71-
the ``typing`` module from PyPi instead of using this one unless
72-
specifically writing code that must be compatible with multiple
73-
Python versions or requires experimental types.
60+
typing_extensions supports Python versions 3.7 and higher.
61+
In the future, support for older Python versions will be dropped some time
62+
after that version reaches end of life.
7463

7564
%prep
76-
%setup -q -n %{modname}-%{version}
65+
%setup -q -n typing_extensions-%{version}
7766
# This should not be necessary in the next release
7867
if [ -f src/_typed_dict_test_helper.py ]; then
7968
exit 1
@@ -83,24 +72,20 @@ cp %{SOURCE1} src/
8372
%build
8473
%pyproject_wheel
8574

86-
%if ! %{with test}
8775
%install
8876
%pyproject_install
8977
%python_expand %fdupes %{buildroot}%{$python_sitelib}
90-
%endif
9178

92-
%if %{with test}
9379
%check
94-
%python_exec src/test_typing_extensions.py
95-
%endif
80+
pushd src
81+
%pyunittest -v test_typing_extensions
82+
popd
9683

97-
%if ! %{with test}
9884
%files %{python_files}
9985
%license LICENSE
10086
%doc CHANGELOG.md README.md
10187
%{python_sitelib}/typing_extensions.py*
10288
%pycache_only %{python_sitelib}/__pycache__/typing_extensions*
10389
%{python_sitelib}/typing_extensions-%{version}*-info
104-
%endif
10590

10691
%changelog

packages/p/python-typing_extensions/typing_extensions-4.3.0.tar.gz

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/ipfs/bafkreiavcfbuxojl7dortdaswhgicluabvaydt6lqz3hjyhye6omsmehvi

0 commit comments

Comments
 (0)