From a36f19c7efa750e0a2954951a13ca8f92e9f150cbdf257f49769fa366ce9eb7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 4 May 2021 13:57:17 +0000 Subject: [PATCH] Accepting request 890320 from home:bnavigator:branches:devel:languages:python - Update runtime and build requirements - Skip a failing test, which is marked xfail anyway but too late - Exclude docs install into sitelib directory OBS-URL: https://build.opensuse.org/request/show/890320 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiosmtpd?expand=0&rev=10 --- python-aiosmtpd.changes | 7 +++++++ python-aiosmtpd.spec | 21 ++++++++++++++++++--- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/python-aiosmtpd.changes b/python-aiosmtpd.changes index 836c5c1..19b2c48 100644 --- a/python-aiosmtpd.changes +++ b/python-aiosmtpd.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue May 4 10:15:40 UTC 2021 - Ben Greiner + +- Update runtime and build requirements +- Skip a failing test, which is marked xfail anyway but too late +- Exclude docs install into sitelib directory + ------------------------------------------------------------------- Mon Mar 22 08:44:16 UTC 2021 - Michael Ströder diff --git a/python-aiosmtpd.spec b/python-aiosmtpd.spec index 21b5ba0..1be5d73 100644 --- a/python-aiosmtpd.spec +++ b/python-aiosmtpd.spec @@ -16,7 +16,7 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-aiosmtpd Version: 1.4.2 @@ -32,14 +32,25 @@ BuildRequires: fdupes BuildRequires: git-core BuildRequires: python-rpm-macros Requires: python-atpublic +Requires: python-attrs +%if 0%{python_version_nodots} < 38 +Requires: python-typing_extensions +%endif Requires: user(nobody) Requires(post): update-alternatives Requires(postun):update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module atpublic} +BuildRequires: %{python_module attrs} BuildRequires: %{python_module pytest-mock} BuildRequires: %{python_module pytest} +# this package is used in projects which do not support boolean python_module BuildRequires yet :( +%if 0%{?suse_version} >= 1550 +BuildRequires: python36-typing_extensions +%else +BuildRequires: python3-typing_extensions +%endif BuildRequires: user(nobody) # /SECTION %python_subpackages @@ -60,7 +71,9 @@ cp %{SOURCE1} . %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest +# https://github.com/aio-libs/aiosmtpd/issues/268 +donttest="(test_byclient and login and False)" +%pytest -k "not ($donttest)" %post %python_install_alternative aiosmtpd @@ -72,6 +85,8 @@ cp %{SOURCE1} . %doc README.rst %license LICENSE-2.0.txt %python_alternative %{_bindir}/aiosmtpd -%{python_sitelib}/* +%{python_sitelib}/aiosmtpd +%{python_sitelib}/aiosmtpd-%{version}*-info +%exclude %{python_sitelib}/aiosmtpd/docs %changelog