Accepting request 1184799 from home:mcalabkova:branches:devel:languages:python:mailman

- Re-download pytest.ini and fix multiflavor packaging

OBS-URL: https://build.opensuse.org/request/show/1184799
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-django-mailman3?expand=0&rev=36
This commit is contained in:
Markéta Machová 2024-07-02 09:18:11 +00:00 committed by Git OBS Bridge
parent bdee20f7d2
commit d5efc48cce
3 changed files with 12 additions and 7 deletions

View File

@ -1,3 +1,3 @@
[pytest]
addopts = --tb=short --create-db --reuse-db --ds=django_mailman3.tests.settings_test -s
pythonpath = .
pythonpath = .

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jul 2 08:51:37 UTC 2024 - Markéta Machová <mmachova@suse.com>
- Re-download pytest.ini and fix multiflavor packaging
-------------------------------------------------------------------
Sun Jun 23 13:13:56 UTC 2024 - Andreas Schneider <asn@cryptomilk.org>

View File

@ -43,7 +43,6 @@ BuildRequires: python-rpm-macros
Requires: python-django-allauth >= %{django_allauth_min_version}
Requires: python-django-gravatar2 >= %{django_gravatar2_min_version}
Requires: python-mailmanclient >= %{mailmanclient_min_version}
Requires: python-pytz
Requires: (python-Django >= %{django_min_version} with python-Django < %{django_max_version})
BuildArch: noarch
# SECTION test requirements
@ -55,7 +54,6 @@ BuildRequires: %{python_module mailmanclient >= %{mailmanclient_min_version}}
BuildRequires: %{python_module pdm-backend}
BuildRequires: %{python_module pytest-django}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytz}
# /SECTION
%python_subpackages
@ -73,10 +71,12 @@ cp %{SOURCE3} pytest.ini
%install
%pyproject_install
rm -f %{buildroot}%{python_sitelib}/COPYING.txt
rm -f %{buildroot}%{python_sitelib}/README.rst
rm -f %{buildroot}%{python_sitelib}/pytest.ini
rm -f %{buildroot}%{python_sitelib}/tox.ini
%{python_expand # remove for each python flavor
rm -f %{buildroot}%{$python_sitelib}/COPYING.txt
rm -f %{buildroot}%{$python_sitelib}/README.rst
rm -f %{buildroot}%{$python_sitelib}/pytest.ini
rm -f %{buildroot}%{$python_sitelib}/tox.ini
}
%python_expand %fdupes %{buildroot}%{$python_sitelib}