Hello community, here is the log from the commit of package python-traitlets for openSUSE:Factory checked in at 2020-03-27 00:21:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-traitlets (Old) and /work/SRC/openSUSE:Factory/.python-traitlets.new.3160 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-traitlets" Fri Mar 27 00:21:18 2020 rev:6 rq:784174 version:4.3.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-traitlets/python-traitlets.changes 2019-11-22 10:23:44.073303443 +0100 +++ /work/SRC/openSUSE:Factory/.python-traitlets.new.3160/python-traitlets.changes 2020-03-27 00:21:24.464138585 +0100 @@ -1,0 +2,5 @@ +Thu Mar 12 07:59:14 UTC 2020 - Tomáš Chvátal <tchva...@suse.com> + +- Fix build without python2 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-traitlets.spec ++++++ --- /var/tmp/diff_new_pack.T7Jqfz/_old 2020-03-27 00:21:25.264138991 +0100 +++ /var/tmp/diff_new_pack.T7Jqfz/_new 2020-03-27 00:21:25.272138995 +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