Hello community,
here is the log from the commit of package python-mailman for
openSUSE:Leap:15.2 checked in at 2020-03-16 12:20:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-mailman (Old)
and /work/SRC/openSUSE:Leap:15.2/.python-mailman.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-mailman"
Mon Mar 16 12:20:37 2020 rev:1 rq:766851 version:3.3.0
Changes:
--------
New Changes file:
--- /dev/null 2020-03-10 18:28:06.918142398 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.python-mailman.new.3160/python-mailman.changes
2020-03-16 12:20:38.447704428 +0100
@@ -0,0 +1,42 @@
+-------------------------------------------------------------------
+Thu Jan 23 15:04:12 UTC 2020 - [email protected]
+
+- do not require python-cffi, it will be required by
+ python-PyNaCl
+
+-------------------------------------------------------------------
+Tue Jan 14 12:55:34 UTC 2020 - [email protected]
+
+- be able to run test on 15
+
+-------------------------------------------------------------------
+Tue Dec 10 16:56:29 UTC 2019 - [email protected]
+
+- disable src/mailman/commands/tests/test_cli_create.py
+ https://gitlab.com/mailman/mailman/issues/654
+
+-------------------------------------------------------------------
+Mon Dec 2 10:47:14 UTC 2019 - [email protected]
+
+- call spec-cleaner
+
+-------------------------------------------------------------------
+Mon Dec 2 09:19:40 UTC 2019 - [email protected]
+
+- requires setuptools
+
+-------------------------------------------------------------------
+Wed Nov 20 16:06:34 UTC 2019 - [email protected]
+
+- /usr/sbin instead of /sbin in mailman.cfg
+
+-------------------------------------------------------------------
+Tue Nov 5 19:05:56 UTC 2019 - [email protected]
+
+- run the testsuite
+
+-------------------------------------------------------------------
+Tue Sep 24 13:44:55 UTC 2019 - [email protected]
+
+- initial version 3.3.0 [SLE-7686]
+
New:
----
_multibuild
mailman-3.3.0.tar.gz
python-mailman-test_interact_default_banner.patch
python-mailman.changes
python-mailman.spec
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-mailman.spec ++++++
#
# spec file for package python-mailman
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%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-%{**}}
%define skip_python2 1
Name: python-mailman%{psuffix}
Version: 3.3.0
Release: 0
Summary: Mailman -- the GNU mailing list manager
License: GPL-3.0-only
URL: https://www.list.org
Source:
https://files.pythonhosted.org/packages/source/m/mailman/mailman-%{version}.tar.gz
# whitespace fix
Patch0: python-mailman-test_interact_default_banner.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-aiosmtpd >= 1.1
Requires: python-alembic
Requires: python-atpublic
Requires: python-authheaders >= 0.9.2
Requires: python-authres >= 1.0.1
Requires: python-click >= 7.0
Requires: python-dnspython >= 1.14.0
Requires: python-falcon > 1.0.0
Requires: python-flufl.bounce
Requires: python-flufl.i18n >= 2.0
Requires: python-flufl.lock >= 3.1
Requires: python-gunicorn
Requires: python-lazr.config
Requires: python-passlib
Requires: python-python-dateutil >= 2.0
Requires: python-requests
Requires: python-setuptools
Requires: python-sqlalchemy >= 1.2.3
Requires: python-zope.component
Requires: python-zope.configuration
Requires: python-zope.event
Requires: python-zope.interface
%if 0%{?suse_version} <= 1500
Requires: python-importlib_resources
%endif
Provides: mailman = %{version}
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module aiosmtpd >= 1.1}
BuildRequires: %{python_module alembic}
BuildRequires: %{python_module atpublic}
BuildRequires: %{python_module authheaders >= 0.9.2}
BuildRequires: %{python_module authres >= 1.0.1}
BuildRequires: %{python_module click >= 7.0}
BuildRequires: %{python_module dnspython >= 1.14.0}
BuildRequires: %{python_module falcon > 1.0.0}
BuildRequires: %{python_module flufl.bounce}
BuildRequires: %{python_module flufl.i18n >= 2.0}
BuildRequires: %{python_module flufl.lock >= 3.1}
BuildRequires: %{python_module flufl.testing}
BuildRequires: %{python_module gunicorn}
BuildRequires: %{python_module lazr.config}
BuildRequires: %{python_module mailman >= %{version}}
BuildRequires: %{python_module nose2}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module passlib}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-dateutil >= 2.0}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module sqlalchemy >= 1.2.3}
BuildRequires: %{python_module zope.component}
BuildRequires: %{python_module zope.configuration}
BuildRequires: %{python_module zope.event}
BuildRequires: %{python_module zope.interface}
%if 0%{?suse_version} <= 1500
BuildRequires: %{python_module importlib_resources}
%endif
%endif
%python_subpackages
%description
Mailman -- the GNU mailing list manager
%prep
%setup -q -n mailman-%{version}
%patch0 -p1
%build
sed -i 's:/sbin:%{_prefix}/bin:' src/mailman/config/mailman.cfg
%if 0%{?suse_version} > 1500
pushd src/mailman
for i in $(grep -r '^from importlib_resources' | sed 's/\(.*\.py\):.*/\1/'); do
line=$(grep '^from importlib_resources' $i)
what_import=$(echo $line | sed 's:.* import ::')
sed -i "s@^\(from importlib_resources.*\)@try:\n from importlib.resources
import $what_import\nexcept ImportError:\n \1\n@" $i;
done
popd
sed '/importlib_resources/d' -i src/mailman.egg-info/requires.txt setup.py
%endif
%python_build
%install
%if !%{with test}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%check
%if %{with test}
export LANG=C.UTF-8
%if 0%{?suse_version} <= 1500
# mailman.rest.tests.test_wsgiapp.TestSupportedContentType
# AssertionError: 'application/json; charset=UTF-8' != 'application/json'
rm src/mailman/rest/tests/test_wsgiapp.py
%endif
# doctest fails miserably
find -name '*.rst' -exec rm {} \;
# used to have ports 902{4,5}
rm src/mailman/mta/tests/test_aliases.py
# PermissionError: [Errno 13] Permission denied: '/usr/bin/master'
rm src/mailman/core/tests/test_logging.py
# PermissionError: [Errno 13] Permission denied: '/usr/bin/master'
rm src/mailman/commands/tests/test_cli_control.py
# https://gitlab.com/mailman/mailman/issues/654
rm src/mailman/commands/tests/test_cli_create.py
# do not use well known ports 9024 and 9025
sed -i "s:\(902\):4\1:" src/mailman/testing/testing.cfg
#
%python_exec -m nose2 -v
%endif
%if !%{with test}
%files %{python_files}
%doc README.rst
%license COPYING
%python3_only %{_bindir}/runner
%python3_only %{_bindir}/mailman
%python3_only %{_bindir}/master
%{python_sitelib}/*
%endif
%changelog
++++++ _multibuild ++++++
<multibuild>
<package>test</package>
</multibuild>
++++++ python-mailman-test_interact_default_banner.patch ++++++
Index: mailman-3.3.0/src/mailman/utilities/tests/test_interact.py
===================================================================
--- mailman-3.3.0.orig/src/mailman/utilities/tests/test_interact.py
2019-04-25 07:07:47.000000000 +0200
+++ mailman-3.3.0/src/mailman/utilities/tests/test_interact.py 2019-09-30
16:27:50.460382346 +0200
@@ -67,7 +67,7 @@ class TestInteract(unittest.TestCase):
self._enter(hackenv('PYTHONSTARTUP', None))
interact()
stderr = self._stderr.getvalue().splitlines()
- banner = 'Python {} on {} '.format(sys.version, sys.platform)
+ banner = 'Python {} on {}'.format(sys.version, sys.platform)
self.assertEqual(stderr[0], banner.splitlines()[0])
def test_interact_custom_banner(self):