Hello community, here is the log from the commit of package python-toml for openSUSE:Factory checked in at 2020-09-04 11:02:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-toml (Old) and /work/SRC/openSUSE:Factory/.python-toml.new.3399 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-toml" Fri Sep 4 11:02:02 2020 rev:6 rq:830705 version:0.10.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-toml/python-toml.changes 2020-06-10 00:34:42.196800666 +0200 +++ /work/SRC/openSUSE:Factory/.python-toml.new.3399/python-toml.changes 2020-09-04 11:02:56.910746680 +0200 @@ -1,0 +2,5 @@ +Mon Aug 31 08:53:10 UTC 2020 - Tomáš Chvátal <[email protected]> + +- Switch to multibuild to not cycle with numpy + +------------------------------------------------------------------- New: ---- _multibuild ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-toml.spec ++++++ --- /var/tmp/diff_new_pack.9mMon1/_old 2020-09-04 11:02:58.790747687 +0200 +++ /var/tmp/diff_new_pack.9mMon1/_new 2020-09-04 11:02:58.794747689 +0200 @@ -17,7 +17,15 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -Name: python-toml +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif +Name: python-toml%{psuffix} Version: 0.10.1 Release: 0 Summary: Python module which parses and emits TOML @@ -28,13 +36,15 @@ Source1: https://github.com/BurntSushi/toml-test/archive/280497f.tar.gz#/toml-test-280497f.tar.gz # Missing file https://github.com/uiri/toml/pull/231 Source2: https://raw.githubusercontent.com/uiri/toml/%{version}/test.toml -BuildRequires: %{python_module numpy} -BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: coreutils BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch +%if %{with test} +BuildRequires: %{python_module numpy} +BuildRequires: %{python_module pytest} +%endif %python_subpackages %description @@ -63,17 +73,22 @@ %python_build %install +%if !%{with test} %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif %check +%if %{with test} export LANG=en_US.UTF-8 %pytest +%endif +%if !%{with test} %files %{python_files} -# See https://github.com/uiri/toml/issues/216 re change log %license LICENSE %doc README.rst %{python_sitelib} +%endif %changelog ++++++ _multibuild ++++++ <multibuild> <package>test</package> </multibuild>
