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 <[email protected]>
+
+- Rebase the patch to the current git state
+
+-------------------------------------------------------------------
+Sat Mar 2 02:47:44 UTC 2019 - John Vandenberg <[email protected]>
+
+- 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" <[email protected]>
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 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: