Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-ini2toml for openSUSE:Factory
checked in at 2022-08-05 19:51:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ini2toml (Old)
and /work/SRC/openSUSE:Factory/.python-ini2toml.new.1521 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-ini2toml"
Fri Aug 5 19:51:34 2022 rev:3 rq:993279 version:0.11
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ini2toml/python-ini2toml.changes
2022-07-19 17:18:55.812332112 +0200
+++
/work/SRC/openSUSE:Factory/.python-ini2toml.new.1521/python-ini2toml.changes
2022-08-05 19:52:35.345701716 +0200
@@ -1,0 +2,10 @@
+Fri Aug 5 09:35:34 UTC 2022 - Ben Greiner <[email protected]>
+
+- Disable full and all in Ring1: Don't require ConfigUpdate
+
+-------------------------------------------------------------------
+Fri Jul 22 13:36:21 UTC 2022 - Ben Greiner <[email protected]>
+
+- Make multibuild in order to check extra requirements
+
+-------------------------------------------------------------------
New:
----
_multibuild
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-ini2toml.spec ++++++
--- /var/tmp/diff_new_pack.0lHziI/_old 2022-08-05 19:52:35.849703018 +0200
+++ /var/tmp/diff_new_pack.0lHziI/_new 2022-08-05 19:52:35.861703049 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package python-ini2toml
+# spec file
#
# Copyright (c) 2022 SUSE LLC
#
@@ -16,13 +16,36 @@
#
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%endif
+%if "%{flavor}" == ""
+%define psuffix %{nil}
+%bcond_with test
+%endif
+
+%bcond_with ringdisabled
+# | Ring1 | Factory |
+# ringdisabled | x | |
+# ------ | ----- | ------- |
+# lite | x | x |
+# full | | x |
+# all | | x |
+# experimental | | |
%bcond_without lite
+%if %{with ringdisabled}
+%bcond_with full
+%bcond_with all
+%else
%bcond_without full
%bcond_without all
-# these do not have the requirement in the distribution
+%endif
%bcond_with experimental
-Name: python-ini2toml
+%define skip_python2 1
+Name: python-ini2toml%{psuffix}
Version: 0.11
Release: 0
Summary: Automatic conversion of .ini/cfg files to TOML equivalents
@@ -35,17 +58,23 @@
Requires: python-packaging >= 20.7
Requires(post): update-alternatives
Requires(postun):update-alternatives
-# SECTION test requirements
+%if %{with test}
BuildRequires: %{python_module packaging >= 20.7}
-BuildRequires: %{python_module configupdater >= 3.0.1 with
%python-configupdater < 4}
BuildRequires: %{python_module pytest}
-BuildRequires: %{python_module tomli-w >= 0.4.0 with %python-tomli-w < 2}
-BuildRequires: %{python_module tomlkit >= 0.10 with %python-tomlkit < 2}
-BuildRequires: %{python_module validate-pyproject >= 0.6}
+BuildRequires: %{python_module validate-pyproject >= 0.6 with
%python-validate-pyproject < 2}
+%if %{with lite}
+BuildRequires: %{python_module ini2toml-lite = %{version}}
+%endif
+%if %{with full}
+BuildRequires: %{python_module ini2toml-full = %{version}}
+%endif
+%if %{with all}
+BuildRequires: %{python_module ini2toml-all = %{version}}
+%endif
%if %{with experimental}
-BuildRequires: %{python_module pyproject-fmt >= 0.32}
+BuildRequires: %{python_module ini2toml-experimental = %{version}}
+%endif
%endif
-# /SECTION
BuildRequires: fdupes
BuildArch: noarch
%python_subpackages
@@ -59,6 +88,7 @@
%package lite
Summary: Python ini2toml[lite] extra requirement
Requires: python-ini2toml = %{version}
+Requires: (python-importlib-metadata if python-base < 3.8)
Requires: (python-tomli-w >= 0.4.0 with python-tomli-w < 2)
%description lite
@@ -81,6 +111,8 @@
Summary: Python ini2toml[all] extra requirement
Requires: python-ini2toml = %{version}
Requires: (python-configupdater >= 3.0.1 with python-configupdater < 4)
+Requires: (python-importlib-metadata if python-base < 3.8)
+Requires: (python-tomli-w >= 0.4.0 with python-tomli-w < 2)
Requires: (python-tomlkit >= 0.10 with python-tomlkit < 2)
%description all
@@ -101,6 +133,7 @@
%setup -q -n ini2toml-%{version}
sed -i 's/--cov ini2toml --cov-report term-missing//' setup.cfg
+%if !%{with test}
%build
%python_build
@@ -108,12 +141,30 @@
%python_install
%python_clone -a %{buildroot}%{_bindir}/ini2toml
%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
+%if %{with test}
%check
-%if ! %{with experimental}
+%if %{without all} && %{without full}
+ignoretests=(
+ --ignore tests/test_examples.py
+ --ignore tests/test_transformations.py
+ --ignore tests/test_translator.py
+ --ignore tests/drivers/test_configupdater.py
+ --ignore tests/plugins/test_best_effort.py
+ --ignore tests/plugins/test_coverage.py
+ --ignore tests/drivers/test_full_toml.py
+ --ignore tests/plugins/test_isort.py
+ --ignore tests/plugins/test_mypy.py
+ --ignore tests/plugins/test_pytest.py
+ --ignore tests/plugins/test_setuptools_pep621.py
+)
+%endif
+%if %{without experimental}
donttest=(-k "not test_auto_formatting")
%endif
-%pytest "${donttest[@]}"
+%pytest "${ignoretests[@]}" "${donttest[@]}"
+%endif
%post
%python_install_alternative ini2toml
@@ -121,6 +172,7 @@
%postun
%python_uninstall_alternative ini2toml
+%if !%{with test}
%files %{python_files}
%doc AUTHORS.rst CHANGELOG.rst README.rst
%license LICENSE.txt
@@ -147,5 +199,6 @@
%files %{python_files experimental}
%license LICENSE.txt
%endif
+%endif
%changelog
++++++ _multibuild ++++++
<multibuild>
<package>test</package>
</multibuild>