Hello community,
here is the log from the commit of package python-traitlets for
openSUSE:Leap:15.2 checked in at 2020-03-27 16:45:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-traitlets (Old)
and /work/SRC/openSUSE:Leap:15.2/.python-traitlets.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-traitlets"
Fri Mar 27 16:45:26 2020 rev:12 rq:788720 version:4.3.3
Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-traitlets/python-traitlets.changes
2020-02-19 18:49:15.635066292 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.python-traitlets.new.3160/python-traitlets.changes
2020-03-27 16:47:59.931928908 +0100
@@ -1,0 +2,5 @@
+Thu Mar 12 07:59:14 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Fix build without python2
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-traitlets.spec ++++++
--- /var/tmp/diff_new_pack.8qEMBO/_old 2020-03-27 16:48:01.091929590 +0100
+++ /var/tmp/diff_new_pack.8qEMBO/_new 2020-03-27 16:48:01.135929615 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-traitlets
#
-# 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
@@ -12,37 +12,37 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%bcond_without python2
Name: python-traitlets
Version: 4.3.3
Release: 0
Summary: Traitlets Python config system
License: BSD-3-Clause
-Group: Development/Languages/Python
-Url: https://github.com/ipython/traitlets
+URL: https://github.com/ipython/traitlets
Source:
https://files.pythonhosted.org/packages/source/t/traitlets/traitlets-%{version}.tar.gz
BuildRequires: %{python_module decorator}
BuildRequires: %{python_module ipython_genutils}
+BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: fdupes
-BuildRequires: python-enum34
BuildRequires: python-rpm-macros
-# Test requirements
-BuildRequires: %{python_module pytest}
-# Python 2 test requirements
-BuildRequires: python-mock
Requires: python-decorator
Requires: python-ipython_genutils
Requires: python-six
+BuildArch: noarch
+%if %{with python2}
+BuildRequires: python-enum34
+BuildRequires: python-mock
+%endif
%ifpython2
Requires: python-enum34
%endif
-BuildArch: noarch
%python_subpackages
%description
@@ -56,13 +56,11 @@
%install
%python_install
-%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
pushd docs
-%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
-py.test-%{$python_bin_suffix} ../traitlets/tests
-}
+%pytest ../traitlets/tests
%files %{python_files}
%doc README.md