Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-passlib for openSUSE:Factory checked in at 2021-01-28 21:29:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-passlib (Old) and /work/SRC/openSUSE:Factory/.python-passlib.new.28504 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-passlib" Thu Jan 28 21:29:16 2021 rev:24 rq:867499 version:1.7.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-passlib/python-passlib.changes 2020-11-23 18:59:51.349932071 +0100 +++ /work/SRC/openSUSE:Factory/.python-passlib.new.28504/python-passlib.changes 2021-01-28 21:29:17.280272517 +0100 @@ -1,0 +2,13 @@ +Thu Jan 28 13:47:51 UTC 2021 - Matej Cepl <[email protected]> + +- OpenLeap is not SLE + +------------------------------------------------------------------- +Thu Jan 28 08:50:11 UTC 2021 - Antonio Larrosa <[email protected]> + +- Use _multibuild to only have the test dependencies as + buildrequires of the test build. +- Have optional test dependencies (Django and scrypt) that are not + available in SLE only be buildrequired in TW. + +------------------------------------------------------------------- New: ---- _multibuild ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-passlib.spec ++++++ --- /var/tmp/diff_new_pack.4ka76s/_old 2021-01-28 21:29:17.788273281 +0100 +++ /var/tmp/diff_new_pack.4ka76s/_new 2021-01-28 21:29:17.792273287 +0100 @@ -1,7 +1,7 @@ # -# spec file for package python-passlib +# spec file for package python-passlib-test # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,8 +16,18 @@ # +%define skip_python2 1 +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif + %{?!python_module:%define python_module() python-%{**} python3-%{**}} -Name: python-passlib +Name: python-passlib%{psuffix} Version: 1.7.4 Release: 0 Summary: Password hashing framework supporting over 20 schemes @@ -25,16 +35,20 @@ Group: Development/Languages/Python URL: https://foss.heptapod.net/python-libs/passlib Source: https://files.pythonhosted.org/packages/source/p/passlib/passlib-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +%if %{with test} BuildRequires: %{python_module argon2_cffi} BuildRequires: %{python_module bcrypt} BuildRequires: %{python_module cryptography} -BuildRequires: %{python_module Django} BuildRequires: %{python_module pytest} +%if 0%{?suse_version} >= 1550 || 0%{?is_opensuse} +BuildRequires: %{python_module Django} BuildRequires: %{python_module scrypt} -BuildRequires: %{python_module setuptools} +%endif BuildRequires: apache2-utils -BuildRequires: fdupes -BuildRequires: python-rpm-macros +%endif Recommends: python-argon2_cffi Recommends: python-bcrypt Recommends: python-cryptography @@ -56,16 +70,22 @@ %python_build %install +%if !%{with test} %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif %check +%if %{with test} %pytest -rs +%endif +%if !%{with test} %files %{python_files} %license LICENSE %doc README %{python_sitelib}/passlib %{python_sitelib}/passlib-%{version}-py%{python_version}.egg-info +%endif %changelog ++++++ _multibuild ++++++ <multibuild> <package>test</package> </multibuild>
