Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-mautrix for openSUSE:Factory checked in at 2022-06-23 10:23:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-mautrix (Old) and /work/SRC/openSUSE:Factory/.python-mautrix.new.1548 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-mautrix" Thu Jun 23 10:23:28 2022 rev:7 rq:984223 version:0.16.8 Changes: -------- --- /work/SRC/openSUSE:Factory/python-mautrix/python-mautrix.changes 2022-06-21 16:33:01.923865732 +0200 +++ /work/SRC/openSUSE:Factory/.python-mautrix.new.1548/python-mautrix.changes 2022-06-23 10:23:49.223710651 +0200 @@ -1,0 +2,7 @@ +Tue Jun 21 09:43:58 UTC 2022 - Ben Greiner <c...@bnavigator.de> + +- Enable test suite for TW. The do have one. + * Update test requirements. + * Skip tests on Leap, async packages not available. + +------------------------------------------------------------------- Old: ---- mautrix-0.16.8.tar.gz New: ---- mautrix-python-0.16.8-gh.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-mautrix.spec ++++++ --- /var/tmp/diff_new_pack.OrtWB2/_old 2022-06-23 10:23:49.703711173 +0200 +++ /var/tmp/diff_new_pack.OrtWB2/_new 2022-06-23 10:23:49.711711181 +0200 @@ -16,14 +16,23 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%if 0%{?suse_version} >= 1550 +%bcond_without test +%else +# Leap 15.x: Ignore that upstream doesn't support Python < 3.8 and does not have the test requirements +%define skip_python2 1 +%bcond_with test +%endif + Name: python-mautrix Version: 0.16.8 Release: 0 Summary: A Python 3 asyncio Matrix framework License: MPL-2.0 -URL: https://github.com/tulir/mautrix-python -Source: https://files.pythonhosted.org/packages/source/m/mautrix/mautrix-%{version}.tar.gz +URL: https://github.com/mautrix/python +# The GitHub Archive has json data required for the test suite +Source: https://github.com/mautrix/python/archive/refs/tags/v0.16.8.tar.gz#/mautrix-python-%{version}-gh.tar.gz +BuildRequires: %{python_module base} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -32,23 +41,26 @@ Requires: python-yarl >= 1 Suggests: python-python-magic >= 0.4.15 BuildArch: noarch -# SECTION test requirements BuildRequires: %{python_module aiohttp >= 3.0.1} BuildRequires: %{python_module attrs >= 18.1.0} -BuildRequires: %{python_module commonmark} -BuildRequires: %{python_module lxml} -BuildRequires: %{python_module pytest} +BuildRequires: %{python_module yarl >= 1} +# SECTION optional requirements BuildRequires: %{python_module python-magic >= 0.4.15} -BuildRequires: %{python_module ruamel.yaml} +# /SECTION optional requirements +%if %{with test} +BuildRequires: %{python_module pytest-asyncio} +BuildRequires: %{python_module asyncpg} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module aiosqlite} BuildRequires: %{python_module sqlalchemy} -BuildRequires: %{python_module yarl >= 1} +%endif %python_subpackages %description A Python 3 asyncio Matrix framework. %prep -%setup -q -n mautrix-%{version} +%setup -q -n python-%{version} %build %python_build @@ -57,13 +69,15 @@ %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%if %{with test} %check -# Yes, they don't have a test suite. At all. +%pytest +%endif %files %{python_files} %doc README.rst CHANGELOG.md %license LICENSE -%{python_sitelib}/mautrix* +%{python_sitelib}/mautrix %{python_sitelib}/mautrix-%{version}*-info %changelog