Hello community,
here is the log from the commit of package python-backports.tempfile for
openSUSE:Factory checked in at 2019-03-18 10:39:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-backports.tempfile (Old)
and /work/SRC/openSUSE:Factory/.python-backports.tempfile.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-backports.tempfile"
Mon Mar 18 10:39:13 2019 rev:3 rq:685394 version:1.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-backports.tempfile/python-backports.tempfile.changes
2018-12-13 19:39:27.301369458 +0100
+++
/work/SRC/openSUSE:Factory/.python-backports.tempfile.new.28833/python-backports.tempfile.changes
2019-03-18 10:39:15.283452547 +0100
@@ -1,0 +2,10 @@
+Fri Mar 15 14:34:38 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Sort out and skip python3 builds
+
+-------------------------------------------------------------------
+Tue Mar 12 06:50:04 UTC 2019 - John Vandenberg <[email protected]>
+
+- Activate test suite
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-backports.tempfile.spec ++++++
--- /var/tmp/diff_new_pack.YFiMV6/_old 2019-03-18 10:39:16.079451867 +0100
+++ /var/tmp/diff_new_pack.YFiMV6/_new 2019-03-18 10:39:16.083451864 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-backports.tempfile
#
-# 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
@@ -17,20 +17,17 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define skip_python3 1
Name: python-backports.tempfile
Version: 1.0
Release: 0
Summary: Backport of new features in Python's tempfile module
License: Python-2.0
Group: Development/Languages/Python
-Url: https://github.com/pjdelport/backports.tempfile
+URL: https://github.com/pjdelport/backports.tempfile
Source:
https://files.pythonhosted.org/packages/source/b/backports.tempfile/backports.tempfile-%{version}.tar.gz
-BuildRequires: %{python_module setuptools_scm}
-BuildRequires: %{python_module setuptools}
-BuildRequires: fdupes
-BuildRequires: python-rpm-macros
-Requires: python-backports.weakref
-BuildArch: noarch
+BuildRequires: %{python_module backports.test.support}
+BuildRequires: %{python_module backports.weakref}
# NOTE:
# %%{python_sitelib}/backports is a namespace package, and so under python 2
it must have a proper namespace __init__.py
# python-backports provides this __init__.py to prevent backports packages
from conflicting.
@@ -39,12 +36,14 @@
# https://www.python.org/dev/peps/pep-0420/%23namespace-packages-today
# If you need to link, the python-backports package is built as a subpackage
of python-configparser
BuildRequires: %{python_module backports}
+BuildRequires: %{python_module pytest}
+BuildRequires: %{python_module setuptools_scm}
+BuildRequires: %{python_module setuptools}
+BuildRequires: fdupes
+BuildRequires: python-rpm-macros
Requires: python-backports
-
-%if %{python3_version_nodots} >= 34
-%define skip_python3 1
-%endif
-
+Requires: python-backports.weakref
+BuildArch: noarch
%python_subpackages
%description
@@ -63,6 +62,15 @@
%python_expand rm -f
%{buildroot}%{$python_sitelib}/backports/__pycache__/__init__*.py*
%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%check
+# Store and restore 'backports', so check logic doesnt alter install before
rpm is pressed
+%{python_expand cp -r %{buildroot}%{$python_sitelib}/backports/
%{buildroot}%{$python_sitelib}/backports.orig
+cp %{$python_sitelib}/backports/*.py %{buildroot}%{$python_sitelib}/backports/
+PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m pytest
+rm -r %{buildroot}%{$python_sitelib}/backports/
+mv %{buildroot}%{$python_sitelib}/backports.orig/
%{buildroot}%{$python_sitelib}/backports
+}
+
%files %{python_files}
%doc README.rst
%license LICENSE