Hello community,
here is the log from the commit of package python-backports.shutil_which for
openSUSE:Factory checked in at 2019-03-07 10:50:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-backports.shutil_which (Old)
and /work/SRC/openSUSE:Factory/.python-backports.shutil_which.new.28833
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-backports.shutil_which"
Thu Mar 7 10:50:36 2019 rev:3 rq:682160 version:3.5.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-backports.shutil_which/python-backports.shutil_which.changes
2018-12-13 19:39:19.969377265 +0100
+++
/work/SRC/openSUSE:Factory/.python-backports.shutil_which.new.28833/python-backports.shutil_which.changes
2019-03-07 10:51:08.681842047 +0100
@@ -1,0 +2,8 @@
+Wed Mar 6 13:21:35 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 3.5.2:
+ * Declare absolute_import to avoid importing backports.os instead
+ of os
+- Run tests
+
+-------------------------------------------------------------------
Old:
----
backports.shutil_which-3.5.1.tar.gz
New:
----
backports.shutil_which-3.5.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-backports.shutil_which.spec ++++++
--- /var/tmp/diff_new_pack.bZxpzw/_old 2019-03-07 10:51:09.373841859 +0100
+++ /var/tmp/diff_new_pack.bZxpzw/_new 2019-03-07 10:51:09.373841859 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-backports.shutil_which
#
-# 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-%{**}}
+%if %{python3_version_nodots} >= 33
+%define skip_python3 1
+%endif
Name: python-backports.shutil_which
-Version: 3.5.1
+Version: 3.5.2
Release: 0
Summary: Backport of shutil.which
License: Python-2.0
Group: Development/Languages/Python
-Url: https://github.com/minrk/backports.shutil_which
+URL: https://github.com/minrk/backports.shutil_which
Source:
https://files.pythonhosted.org/packages/source/b/backports.shutil_which/backports.shutil_which-%{version}.tar.gz
-BuildRequires: %{python_module setuptools}
-BuildRequires: fdupes
-BuildRequires: python-rpm-macros
-# SECTION test requirements
-BuildRequires: %{python_module pytest}
-# /SECTION
# 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,13 +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 setuptools}
+BuildRequires: fdupes
+BuildRequires: python-rpm-macros
Requires: python-backports
BuildArch: noarch
-
-%if %{python3_version_nodots} >= 33
-%define skip_python3 1
-%endif
-
+# SECTION test requirements
+BuildRequires: %{python_module pytest}
+# /SECTION
%python_subpackages
%description
@@ -63,6 +61,13 @@
%python_expand rm -rf
%{buildroot}%{$python_sitelib}/backports/__pycache__/__init__*.py*
%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%check
+%{python_expand ln -s %{$python_sitelib}/backports/__init__.py
%{buildroot}%{$python_sitelib}/backports/
+PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v
+rm -r %{buildroot}%{$python_sitelib}/backports/__init__.py*
+rm -rf %{buildroot}%{$python_sitelib}/backports/__pycache__/
+}
+
%files %{python_files}
%doc README.md
%license LICENSE
++++++ backports.shutil_which-3.5.1.tar.gz ->
backports.shutil_which-3.5.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/backports.shutil_which-3.5.1/LICENSE
new/backports.shutil_which-3.5.2/LICENSE
--- old/backports.shutil_which-3.5.1/LICENSE 2016-03-06 13:01:51.000000000
+0100
+++ new/backports.shutil_which-3.5.2/LICENSE 2016-12-19 15:48:18.000000000
+0100
@@ -1,3 +1,9 @@
+This repo is Copyright (c) 2016 Min RK, and licensed under the MIT license.
+
+Since the source of `shutil.which` is a backport from a Python standard
library module,
+the code itself is licensed under the Python Software Foundation (PSF) License.
+The backporting part (setup.py, etc.) are MIT.
+
The MIT License (MIT)
Copyright (c) 2016 Min RK
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/backports.shutil_which-3.5.1/PKG-INFO
new/backports.shutil_which-3.5.2/PKG-INFO
--- old/backports.shutil_which-3.5.1/PKG-INFO 2016-03-06 13:12:22.000000000
+0100
+++ new/backports.shutil_which-3.5.2/PKG-INFO 2018-11-15 11:32:01.000000000
+0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: backports.shutil_which
-Version: 3.5.1
+Version: 3.5.2
Summary: Backport of shutil.which from Python 3.3
Home-page: https://github.com/minrk/backports.shutil_which
Author: Min RK
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/backports.shutil_which-3.5.1/backports/shutil_which.py
new/backports.shutil_which-3.5.2/backports/shutil_which.py
--- old/backports.shutil_which-3.5.1/backports/shutil_which.py 2016-03-06
13:01:51.000000000 +0100
+++ new/backports.shutil_which-3.5.2/backports/shutil_which.py 2018-11-15
11:29:43.000000000 +0100
@@ -3,6 +3,7 @@
The function is included unmodified from Python stdlib 3.5.1,
and is (C) Python
"""
+from __future__ import absolute_import # Import system's os, not backports.os.
import os
import sys
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/backports.shutil_which-3.5.1/setup.py
new/backports.shutil_which-3.5.2/setup.py
--- old/backports.shutil_which-3.5.1/setup.py 2016-03-06 13:10:12.000000000
+0100
+++ new/backports.shutil_which-3.5.2/setup.py 2018-11-15 11:30:42.000000000
+0100
@@ -14,7 +14,7 @@
setup_args = dict(
name='backports.shutil_which',
- version='3.5.1',
+ version='3.5.2',
author="Min RK",
author_email="[email protected]",
description="Backport of shutil.which from Python 3.3",