Hello community,
here is the log from the commit of package python-positional for
openSUSE:Factory checked in at 2020-05-01 11:12:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-positional (Old)
and /work/SRC/openSUSE:Factory/.python-positional.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-positional"
Fri May 1 11:12:51 2020 rev:6 rq:799135 version:1.2.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-positional/python-positional.changes
2019-04-14 12:22:39.667778325 +0200
+++
/work/SRC/openSUSE:Factory/.python-positional.new.2738/python-positional.changes
2020-05-01 11:12:59.439800141 +0200
@@ -1,0 +2,5 @@
+Thu Apr 30 07:33:20 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Fix build without python2
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-positional.spec ++++++
--- /var/tmp/diff_new_pack.KjWUUZ/_old 2020-05-01 11:13:00.571802603 +0200
+++ /var/tmp/diff_new_pack.KjWUUZ/_new 2020-05-01 11:13:00.575802611 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-positional
#
-# 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
@@ -27,15 +27,16 @@
Source:
https://files.pythonhosted.org/packages/source/p/positional/positional-%{version}.tar.gz
BuildRequires: %{python_module pbr}
BuildRequires: %{python_module setuptools}
+BuildRequires: fdupes
BuildRequires: python-rpm-macros
+Requires: python-wrapt
+BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module testrepository >= 0.0.18}
BuildRequires: %{python_module testresources >= 0.2.4}
BuildRequires: %{python_module testtools >= 1.4.0}
BuildRequires: %{python_module wrapt}
# /SECTION
-Requires: python-wrapt
-BuildArch: noarch
%python_subpackages
%description
@@ -51,9 +52,12 @@
%install
%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
-%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
+export PYTHONDONTWRITEBYTECODE=1
+%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
+export PYTHON=$python
[ -d .testrepository/ ] && rm -r .testrepository/
$python -B setup.py test
}