commit python-typing_extensions for openSUSE:Factory
Hello community, here is the log from the commit of package python-typing_extensions for openSUSE:Factory checked in at 2020-10-29 09:48:09 Comparing /work/SRC/openSUSE:Factory/python-typing_extensions (Old) and /work/SRC/openSUSE:Factory/.python-typing_extensions.new.3463 (New) Package is "python-typing_extensions" Thu Oct 29 09:48:09 2020 rev:8 rq:841925 version:3.7.4.3 Changes: --- /work/SRC/openSUSE:Factory/python-typing_extensions/python-typing_extensions.changes 2020-04-07 10:26:23.326167196 +0200 +++ /work/SRC/openSUSE:Factory/.python-typing_extensions.new.3463/python-typing_extensions.changes 2020-10-29 09:48:15.580165023 +0100 @@ -1,0 +2,7 @@ +Thu Oct 15 12:51:36 UTC 2020 - Dirk Mueller + +- update to version 3.7.4.3: + * enables PEP 613 Typealias to typing_extensions + * Fix tests for Python 3.9 + +--- Old: typing_extensions-3.7.4.2.tar.gz New: typing_extensions-3.7.4.3.tar.gz Other differences: -- ++ python-typing_extensions.spec ++ --- /var/tmp/diff_new_pack.sqh9IR/_old 2020-10-29 09:48:16.880166132 +0100 +++ /var/tmp/diff_new_pack.sqh9IR/_new 2020-10-29 09:48:16.880166132 +0100 @@ -20,7 +20,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without python2 Name: python-typing_extensions -Version:3.7.4.2 +Version:3.7.4.3 Release:0 Summary:Backported and Experimental Type Hints for Python 35+ License:Python-2.0 ++ typing_extensions-3.7.4.2.tar.gz -> typing_extensions-3.7.4.3.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/typing_extensions-3.7.4.2/PKG-INFO new/typing_extensions-3.7.4.3/PKG-INFO --- old/typing_extensions-3.7.4.2/PKG-INFO 2020-04-02 19:20:22.907262800 +0200 +++ new/typing_extensions-3.7.4.3/PKG-INFO 2020-08-23 18:33:40.0 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: typing_extensions -Version: 3.7.4.2 +Version: 3.7.4.3 Summary: Backported and Experimental Type Hints for Python 3.5+ Home-page: https://github.com/python/typing/blob/master/typing_extensions/README.rst Author: Guido van Rossum, Jukka Lehtosalo, Lukasz Langa, Michael Lee diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/typing_extensions-3.7.4.2/setup.py new/typing_extensions-3.7.4.3/setup.py --- old/typing_extensions-3.7.4.2/setup.py 2020-04-02 19:19:42.0 +0200 +++ new/typing_extensions-3.7.4.3/setup.py 2020-08-23 18:32:30.0 +0200 @@ -9,7 +9,7 @@ 'to install the typing package.\n') exit(1) -version = '3.7.4.2' +version = '3.7.4.3' description = 'Backported and Experimental Type Hints for Python 3.5+' long_description = '''\ Typing Extensions -- Backported and Experimental Type Hints for Python diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/typing_extensions-3.7.4.2/src_py2/test_typing_extensions.py new/typing_extensions-3.7.4.3/src_py2/test_typing_extensions.py --- old/typing_extensions-3.7.4.2/src_py2/test_typing_extensions.py 2020-02-11 19:17:38.0 +0100 +++ new/typing_extensions-3.7.4.3/src_py2/test_typing_extensions.py 2020-07-08 00:29:25.0 +0200 @@ -7,7 +7,7 @@ from typing_extensions import Annotated, NoReturn, ClassVar, IntVar from typing_extensions import ContextManager, Counter, Deque, DefaultDict -from typing_extensions import NewType, overload +from typing_extensions import NewType, TypeAlias, overload from typing import Dict, List import typing import typing_extensions @@ -377,6 +377,47 @@ self.assertEqual(X[int], List[Annotated[int, 5]]) +class TypeAliasTests(BaseTestCase): +def test_canonical_usage(self): +Alias = Employee # type: TypeAlias + +def test_cannot_instantiate(self): +with self.assertRaises(TypeError): +TypeAlias() + +def test_no_isinstance(self): +with self.assertRaises(TypeError): +isinstance(42, TypeAlias) + +def test_no_issubclass(self): +with self.assertRaises(TypeError): +issubclass(Employee, TypeAlias) + +with self.assertRaises(TypeError): +issubclass(TypeAlias, Employee) + +def test_cannot_subclass(self): +with self.assertRaises(TypeError): +class C(TypeAlias): +pass + +with self.assertRaises(TypeError): +class C(type(TypeAlias)): +pass + +def test_repr(self): +if hasattr(typing, 'TypeAlias'): +self.assertEqual(repr(TypeAlias), 'typing.TypeAlias') +
commit python-typing_extensions for openSUSE:Factory
Hello community, here is the log from the commit of package python-typing_extensions for openSUSE:Factory checked in at 2020-04-07 10:26:16 Comparing /work/SRC/openSUSE:Factory/python-typing_extensions (Old) and /work/SRC/openSUSE:Factory/.python-typing_extensions.new.3248 (New) Package is "python-typing_extensions" Tue Apr 7 10:26:16 2020 rev:7 rq:791701 version:3.7.4.2 Changes: --- /work/SRC/openSUSE:Factory/python-typing_extensions/python-typing_extensions.changes 2020-03-27 00:21:12.548132550 +0100 +++ /work/SRC/openSUSE:Factory/.python-typing_extensions.new.3248/python-typing_extensions.changes 2020-04-07 10:26:23.326167196 +0200 @@ -1,0 +2,6 @@ +Mon Apr 6 08:53:23 UTC 2020 - Marketa Calabkova + +- update to version 3.7.4.2 + * official support for Python 3.8 and 3.9 + +--- Old: typing_extensions-3.7.4.1.tar.gz New: typing_extensions-3.7.4.2.tar.gz Other differences: -- ++ python-typing_extensions.spec ++ --- /var/tmp/diff_new_pack.D1rXPB/_old 2020-04-07 10:26:24.450168445 +0200 +++ /var/tmp/diff_new_pack.D1rXPB/_new 2020-04-07 10:26:24.454168449 +0200 @@ -20,7 +20,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without python2 Name: python-typing_extensions -Version:3.7.4.1 +Version:3.7.4.2 Release:0 Summary:Backported and Experimental Type Hints for Python 35+ License:Python-2.0 ++ typing_extensions-3.7.4.1.tar.gz -> typing_extensions-3.7.4.2.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/typing_extensions-3.7.4.1/PKG-INFO new/typing_extensions-3.7.4.2/PKG-INFO --- old/typing_extensions-3.7.4.1/PKG-INFO 2019-10-28 14:28:10.0 +0100 +++ new/typing_extensions-3.7.4.2/PKG-INFO 2020-04-02 19:20:22.907262800 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: typing_extensions -Version: 3.7.4.1 +Version: 3.7.4.2 Summary: Backported and Experimental Type Hints for Python 3.5+ Home-page: https://github.com/python/typing/blob/master/typing_extensions/README.rst Author: Guido van Rossum, Jukka Lehtosalo, Lukasz Langa, Michael Lee @@ -35,4 +35,6 @@ Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 +Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3.9 Classifier: Topic :: Software Development diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/typing_extensions-3.7.4.1/setup.py new/typing_extensions-3.7.4.2/setup.py --- old/typing_extensions-3.7.4.1/setup.py 2019-10-28 14:15:18.0 +0100 +++ new/typing_extensions-3.7.4.2/setup.py 2020-04-02 19:19:42.0 +0200 @@ -9,7 +9,7 @@ 'to install the typing package.\n') exit(1) -version = '3.7.4.1' +version = '3.7.4.2' description = 'Backported and Experimental Type Hints for Python 3.5+' long_description = '''\ Typing Extensions -- Backported and Experimental Type Hints for Python @@ -41,6 +41,8 @@ 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', +'Programming Language :: Python :: 3.8', +'Programming Language :: Python :: 3.9', 'Topic :: Software Development', ] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/typing_extensions-3.7.4.1/src_py3/test_typing_extensions.py new/typing_extensions-3.7.4.2/src_py3/test_typing_extensions.py --- old/typing_extensions-3.7.4.1/src_py3/test_typing_extensions.py 2019-08-10 20:55:22.0 +0200 +++ new/typing_extensions-3.7.4.2/src_py3/test_typing_extensions.py 2020-02-12 01:51:39.0 +0100 @@ -6,7 +6,7 @@ import pickle import subprocess import types -from unittest import TestCase, main, skipUnless +from unittest import TestCase, main, skipUnless, skipIf from typing import TypeVar, Optional from typing import T, KT, VT # Not in __all__. from typing import Tuple, List, Dict, Iterator @@ -328,7 +328,6 @@ ASYNCIO_TESTS = """ -import asyncio from typing import Iterable from typing_extensions import Awaitable, AsyncIterator @@ -351,9 +350,8 @@ def __aiter__(self) -> AsyncIterator[T_a]: return self -@asyncio.coroutine -def __anext__(self) -> T_a: -data = yield from self.value +async def __anext__(self) -> T_a: +data = await self.value if data: return data else: @@ -428,11 +426,24 @@ x: int
commit python-typing_extensions for openSUSE:Factory
Hello community, here is the log from the commit of package python-typing_extensions for openSUSE:Factory checked in at 2020-03-27 00:21:10 Comparing /work/SRC/openSUSE:Factory/python-typing_extensions (Old) and /work/SRC/openSUSE:Factory/.python-typing_extensions.new.3160 (New) Package is "python-typing_extensions" Fri Mar 27 00:21:10 2020 rev:6 rq:784168 version:3.7.4.1 Changes: --- /work/SRC/openSUSE:Factory/python-typing_extensions/python-typing_extensions.changes 2019-11-22 10:20:29.685344369 +0100 +++ /work/SRC/openSUSE:Factory/.python-typing_extensions.new.3160/python-typing_extensions.changes 2020-03-27 00:21:12.548132550 +0100 @@ -1,0 +2,5 @@ +Thu Mar 12 07:52:02 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 available + +--- Other differences: -- ++ python-typing_extensions.spec ++ --- /var/tmp/diff_new_pack.mEcd5H/_old 2020-03-27 00:21:13.268132915 +0100 +++ /var/tmp/diff_new_pack.mEcd5H/_new 2020-03-27 00:21:13.276132919 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-typing_extensions # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,32 +18,33 @@ %define modname typing_extensions %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-typing_extensions Version:3.7.4.1 Release:0 Summary:Backported and Experimental Type Hints for Python 35+ License:Python-2.0 -Group: Development/Languages/Python URL:https://github.com/python/typing/ Source0: https://files.pythonhosted.org/packages/source/t/typing_extensions/%{modname}-%{version}.tar.gz BuildRequires: %{python_module setuptools} -%if %{python3_version_nodots} < 35 +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%if %{with python2} +BuildRequires: python-typing >= 3.7.4 +%endif +%if 0%{?suse_version} < 1500 BuildRequires: python3-typing >= 3.7.4 %endif -BuildRequires: python2-typing >= 3.7.4 %if 0%{?suse_version} > 1320 BuildRequires: python3-testsuite %endif -BuildRequires: fdupes -BuildRequires: python-rpm-macros %if %{python3_version_nodots} < 35 -Requires: python3-typing >= 3.7.4 +Requires: python-typing >= 3.7.4 %endif %ifpython2 -Requires: python2-typing >= 3.7.4 +Requires: python-typing >= 3.7.4 %endif -BuildArch: noarch - %python_subpackages %description
commit python-typing_extensions for openSUSE:Factory
Hello community, here is the log from the commit of package python-typing_extensions for openSUSE:Factory checked in at 2019-11-22 10:20:28 Comparing /work/SRC/openSUSE:Factory/python-typing_extensions (Old) and /work/SRC/openSUSE:Factory/.python-typing_extensions.new.26869 (New) Package is "python-typing_extensions" Fri Nov 22 10:20:28 2019 rev:5 rq:746074 version:3.7.4.1 Changes: --- /work/SRC/openSUSE:Factory/python-typing_extensions/python-typing_extensions.changes 2019-07-31 14:27:44.822205415 +0200 +++ /work/SRC/openSUSE:Factory/.python-typing_extensions.new.26869/python-typing_extensions.changes 2019-11-22 10:20:29.685344369 +0100 @@ -1,0 +2,9 @@ +Wed Nov 6 17:15:46 UTC 2019 - Lars Vogdt + +- Update to version 3.7.4.1: + + Fix isinstance() with generic protocol subclasses after subscripting + + Fix tests for non-default interpreters + + Use environment marker to specify typing dependency + + Fix unions of protocols on Python 2 + +--- Old: typing_extensions-3.7.4.tar.gz New: typing_extensions-3.7.4.1.tar.gz Other differences: -- ++ python-typing_extensions.spec ++ --- /var/tmp/diff_new_pack.ULa2qa/_old 2019-11-22 10:20:31.321343946 +0100 +++ /var/tmp/diff_new_pack.ULa2qa/_new 2019-11-22 10:20:31.325343945 +0100 @@ -19,7 +19,7 @@ %define modname typing_extensions %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-typing_extensions -Version:3.7.4 +Version:3.7.4.1 Release:0 Summary:Backported and Experimental Type Hints for Python 35+ License:Python-2.0 ++ typing_extensions-3.7.4.tar.gz -> typing_extensions-3.7.4.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/typing_extensions-3.7.4/PKG-INFO new/typing_extensions-3.7.4.1/PKG-INFO --- old/typing_extensions-3.7.4/PKG-INFO2019-06-20 02:03:43.0 +0200 +++ new/typing_extensions-3.7.4.1/PKG-INFO 2019-10-28 14:28:10.0 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: typing_extensions -Version: 3.7.4 +Version: 3.7.4.1 Summary: Backported and Experimental Type Hints for Python 3.5+ Home-page: https://github.com/python/typing/blob/master/typing_extensions/README.rst Author: Guido van Rossum, Jukka Lehtosalo, Lukasz Langa, Michael Lee diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/typing_extensions-3.7.4/README.rst new/typing_extensions-3.7.4.1/README.rst --- old/typing_extensions-3.7.4/README.rst 2019-06-19 23:38:29.0 +0200 +++ new/typing_extensions-3.7.4.1/README.rst2019-10-28 14:14:08.0 +0100 @@ -38,7 +38,9 @@ - ``Counter`` - ``DefaultDict`` - ``Deque`` +- ``final`` - ``Final`` +- ``Literal`` - ``NewType`` - ``NoReturn`` - ``overload`` (note that older versions of ``typing`` only let you use ``overload`` in stubs) @@ -46,6 +48,7 @@ - ``runtime`` (except on Python 3.5.0) - ``Text`` - ``Type`` +- ``TypedDict`` - ``TYPE_CHECKING`` Python 3.4+ only: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/typing_extensions-3.7.4/setup.py new/typing_extensions-3.7.4.1/setup.py --- old/typing_extensions-3.7.4/setup.py2019-06-20 01:07:37.0 +0200 +++ new/typing_extensions-3.7.4.1/setup.py 2019-10-28 14:15:18.0 +0100 @@ -9,7 +9,7 @@ 'to install the typing package.\n') exit(1) -version = '3.7.4' +version = '3.7.4.1' description = 'Backported and Experimental Type Hints for Python 3.5+' long_description = '''\ Typing Extensions -- Backported and Experimental Type Hints for Python @@ -51,10 +51,6 @@ else: raise AssertionError() -install_requires = [] -if sys.version_info < (3, 5): -install_requires.append('typing >= 3.7.4') - setup(name='typing_extensions', version=version, description=description, @@ -68,4 +64,4 @@ package_dir={'': package_dir}, py_modules=['typing_extensions'], classifiers=classifiers, - install_requires=install_requires) + install_requires=["typing >= 3.7.4; python_version < '3.5'"]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/typing_extensions-3.7.4/src_py2/test_typing_extensions.py new/typing_extensions-3.7.4.1/src_py2/test_typing_extensions.py --- old/typing_extensions-3.7.4/src_py2/test_typing_extensions.py 2019-06-19 23:38:29.0 +0200 +++ new/typing_extensions-3.7.4.1/src_py2/test_typing_extensions.py 2019-08-10 20:55:22.0 +0200 @@ -1,16 +1,13 @@ import sys import os
commit python-typing_extensions for openSUSE:Factory
Hello community, here is the log from the commit of package python-typing_extensions for openSUSE:Factory checked in at 2019-07-31 14:27:43 Comparing /work/SRC/openSUSE:Factory/python-typing_extensions (Old) and /work/SRC/openSUSE:Factory/.python-typing_extensions.new.4126 (New) Package is "python-typing_extensions" Wed Jul 31 14:27:43 2019 rev:4 rq:717379 version:3.7.4 Changes: --- /work/SRC/openSUSE:Factory/python-typing_extensions/python-typing_extensions.changes 2019-03-04 09:23:08.664571083 +0100 +++ /work/SRC/openSUSE:Factory/.python-typing_extensions.new.4126/python-typing_extensions.changes 2019-07-31 14:27:44.822205415 +0200 @@ -1,0 +2,7 @@ +Sun Jul 21 17:04:41 UTC 2019 - Sebastian Wagner + +- Update to version 3.7.4: + - No changelog available. +- Drop test-sys-executable.patch, merged upstream. + +--- Old: test-sys-executable.patch typing_extensions-3.7.2.tar.gz New: typing_extensions-3.7.4.tar.gz Other differences: -- ++ python-typing_extensions.spec ++ --- /var/tmp/diff_new_pack.aBLb9P/_old 2019-07-31 14:27:45.318205032 +0200 +++ /var/tmp/diff_new_pack.aBLb9P/_new 2019-07-31 14:27:45.322205029 +0200 @@ -19,26 +19,28 @@ %define modname typing_extensions %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-typing_extensions -Version:3.7.2 +Version:3.7.4 Release:0 Summary:Backported and Experimental Type Hints for Python 35+ License:Python-2.0 Group: Development/Languages/Python URL:https://github.com/python/typing/ Source0: https://files.pythonhosted.org/packages/source/t/typing_extensions/%{modname}-%{version}.tar.gz -Patch0: test-sys-executable.patch BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module typing} +%if %{python3_version_nodots} < 35 +BuildRequires: python3-typing >= 3.7.4 +%endif +BuildRequires: python2-typing >= 3.7.4 %if 0%{?suse_version} > 1320 BuildRequires: python3-testsuite %endif BuildRequires: fdupes BuildRequires: python-rpm-macros %if %{python3_version_nodots} < 35 -Requires: python3-typing +Requires: python3-typing >= 3.7.4 %endif %ifpython2 -Requires: python2-typing +Requires: python2-typing >= 3.7.4 %endif BuildArch: noarch @@ -63,7 +65,6 @@ %prep %setup -q -n %{modname}-%{version} -%patch0 -p2 %build %python_build ++ typing_extensions-3.7.2.tar.gz -> typing_extensions-3.7.4.tar.gz ++ 2629 lines of diff (skipped)
commit python-typing_extensions for openSUSE:Factory
Hello community, here is the log from the commit of package python-typing_extensions for openSUSE:Factory checked in at 2019-03-04 09:23:05 Comparing /work/SRC/openSUSE:Factory/python-typing_extensions (Old) and /work/SRC/openSUSE:Factory/.python-typing_extensions.new.28833 (New) Package is "python-typing_extensions" Mon Mar 4 09:23:05 2019 rev:3 rq:680892 version:3.7.2 Changes: --- /work/SRC/openSUSE:Factory/python-typing_extensions/python-typing_extensions.changes 2019-03-01 16:47:59.813786087 +0100 +++ /work/SRC/openSUSE:Factory/.python-typing_extensions.new.28833/python-typing_extensions.changes 2019-03-04 09:23:08.664571083 +0100 @@ -1,0 +2,12 @@ +Sat Mar 2 14:11:52 UTC 2019 - Tomáš Chvátal + +- Rebase the patch to the current git state + +--- +Sat Mar 2 02:47:44 UTC 2019 - John Vandenberg + +- Add support for Python <3.5, using upstream commit as + test-sys-executable.patch to fix the tests, replacing custom sed. +- Remove unnecessary buid dependency on pytest and pytest-xdist + +--- New: test-sys-executable.patch Other differences: -- ++ python-typing_extensions.spec ++ --- /var/tmp/diff_new_pack.3Og8da/_old 2019-03-04 09:23:09.716570894 +0100 +++ /var/tmp/diff_new_pack.3Og8da/_new 2019-03-04 09:23:09.720570893 +0100 @@ -16,7 +16,6 @@ # -%define skip_python2 1 %define modname typing_extensions %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-typing_extensions @@ -27,13 +26,22 @@ Group: Development/Languages/Python URL:https://github.com/python/typing/ Source0: https://files.pythonhosted.org/packages/source/t/typing_extensions/%{modname}-%{version}.tar.gz -BuildRequires: %{python_module pytest >= 3.0} -BuildRequires: %{python_module pytest-xdist >= 1.18} +Patch0: test-sys-executable.patch BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module testsuite} +BuildRequires: %{python_module typing} +%if 0%{?suse_version} > 1320 +BuildRequires: python3-testsuite +%endif BuildRequires: fdupes BuildRequires: python-rpm-macros +%if %{python3_version_nodots} < 35 +Requires: python3-typing +%endif +%ifpython2 +Requires: python2-typing +%endif BuildArch: noarch + %python_subpackages %description @@ -55,8 +63,7 @@ %prep %setup -q -n %{modname}-%{version} -# Workaround https://github.com/python/typing/pull/615 -sed -i 's/python -OO/python3 -OO/' src_py3/test_typing_extensions.py +%patch0 -p2 %build %python_build @@ -66,12 +73,14 @@ %fdupes %{buildroot}%{python3_sitelib} %check -cd src_py3 -%__python3 test_typing_extensions.py +# X.Y -> X +%{python_expand current_bin_suffix=%{$python_bin_suffix} +$python src_py${current_bin_suffix:0:1}/test_typing_extensions.py +} %files %{python_files} %license LICENSE %doc README.rst -%{python3_sitelib}/* +%{python_sitelib}/* %changelog ++ test-sys-executable.patch ++ >From 1f49677868a60ed697b0eafb2fb56471233b4ea5 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" <1330696+m...@users.noreply.github.com> Date: Thu, 14 Feb 2019 12:25:27 +0200 Subject: [PATCH] Run the tests using the current Python executable (#615) Not whatever "python" might be. --- typing_extensions/src_py2/test_typing_extensions.py | 3 ++- typing_extensions/src_py3/test_typing_extensions.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/typing_extensions/src_py2/test_typing_extensions.py b/typing_extensions/src_py2/test_typing_extensions.py index eb5acf3..922d8cd 100644 --- a/typing_extensions/src_py2/test_typing_extensions.py +++ b/typing_extensions/src_py2/test_typing_extensions.py @@ -860,7 +860,8 @@ def test_typing_extensions_compiles_with_opt(self): file_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'typing_extensions.py') try: -subprocess.check_output('python -OO {}'.format(file_path), +subprocess.check_output('{} -OO {}'.format(sys.executable, + file_path), stderr=subprocess.STDOUT, shell=True) except subprocess.CalledProcessError: diff --git a/typing_extensions/src_py3/test_typing_extensions.py b/typing_extensions/src_py3/test_typing_extensions.py index eb0c64f..815e425 100644 --- a/typing_extensions/src_py3/test_typing_extensions.py +++ b/typing_extensions/src_py3/test_typing_extensions.py @@ -1389,7 +1389,8 @@ def
commit python-typing_extensions for openSUSE:Factory
Hello community, here is the log from the commit of package python-typing_extensions for openSUSE:Factory checked in at 2019-03-01 16:47:57 Comparing /work/SRC/openSUSE:Factory/python-typing_extensions (Old) and /work/SRC/openSUSE:Factory/.python-typing_extensions.new.28833 (New) Package is "python-typing_extensions" Fri Mar 1 16:47:57 2019 rev:2 rq:680053 version:3.7.2 Changes: --- /work/SRC/openSUSE:Factory/python-typing_extensions/python-typing_extensions.changes 2018-12-07 14:34:37.643128672 +0100 +++ /work/SRC/openSUSE:Factory/.python-typing_extensions.new.28833/python-typing_extensions.changes 2019-03-01 16:47:59.813786087 +0100 @@ -1,0 +2,24 @@ +Thu Feb 28 09:01:37 UTC 2019 - Tomáš Chvátal + +- Drop the old tarball + +--- +Thu Feb 28 04:57:58 UTC 2019 - John Vandenberg + +- Replace test_modules.tar.gz with python-testsuite +- Remove fix_tests.patch which is half fixing test_modules.tar.gz, + and the other half is replaced with a less brittle sed. +- Remove unnecessary build dependencies +- Update to 3.7.2 + * Pass *args and **kwargs to superclass in Generic.__new__ + * Fix for issue #524 + * Fix typing_extensions to support PEP 560 + * Add annotations to NamedTuple children __new__ constructors + * Add missing 'NoReturn' to __all__ in typing.py + * Backport Generic.__new__ fix + * Fix IO.closed to be property + * Add Final to typing_extensions + * Fix instance/subclass checks of functions against runtime protocols + * Add Literal[...] types to typing_extensions + +--- Old: fix_tests.patch test_modules.tar.gz typing_extensions-3.6.6.tar.gz New: typing_extensions-3.7.2.tar.gz Other differences: -- ++ python-typing_extensions.spec ++ --- /var/tmp/diff_new_pack.4YH6BA/_old 2019-03-01 16:48:02.285785156 +0100 +++ /var/tmp/diff_new_pack.4YH6BA/_new 2019-03-01 16:48:02.285785156 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-typing_extensions # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,22 +20,17 @@ %define modname typing_extensions %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-typing_extensions -Version:3.6.6 +Version:3.7.2 Release:0 Summary:Backported and Experimental Type Hints for Python 35+ License:Python-2.0 Group: Development/Languages/Python URL:https://github.com/python/typing/ Source0: https://files.pythonhosted.org/packages/source/t/typing_extensions/%{modname}-%{version}.tar.gz -Source1:test_modules.tar.gz -Patch0: fix_tests.patch -BuildRequires: %{python_module flake8-bugbear} -BuildRequires: %{python_module flake8-pyi} -BuildRequires: %{python_module flake8} BuildRequires: %{python_module pytest >= 3.0} -BuildRequires: %{python_module pytest-cov >= 2.4.0} BuildRequires: %{python_module pytest-xdist >= 1.18} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module testsuite} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -60,7 +55,8 @@ %prep %setup -q -n %{modname}-%{version} -%autopatch -p1 +# Workaround https://github.com/python/typing/pull/615 +sed -i 's/python -OO/python3 -OO/' src_py3/test_typing_extensions.py %build %python_build @@ -71,7 +67,6 @@ %check cd src_py3 -tar xvf %{SOURCE1} %__python3 test_typing_extensions.py %files %{python_files} ++ typing_extensions-3.6.6.tar.gz -> typing_extensions-3.7.2.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/typing_extensions-3.6.6/PKG-INFO new/typing_extensions-3.7.2/PKG-INFO --- old/typing_extensions-3.6.6/PKG-INFO2018-10-07 00:02:43.0 +0200 +++ new/typing_extensions-3.7.2/PKG-INFO2019-01-12 19:10:12.0 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: typing_extensions -Version: 3.6.6 +Version: 3.7.2 Summary: Backported and Experimental Type Hints for Python 3.5+ Home-page: https://github.com/python/typing/blob/master/typing_extensions/README.rst Author: Guido van Rossum, Jukka Lehtosalo, Lukasz Langa, Michael Lee diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/typing_extensions-3.6.6/setup.py new/typing_extensions-3.7.2/setup.py --- old/typing_extensions-3.6.6/setup.py2018-10-06