Accepting request 1158311 from devel:languages:python

- Clean up the SPEC file

OBS-URL: https://build.opensuse.org/request/show/1158311
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=74
This commit is contained in:
Ana Guerrero 2024-03-18 15:43:56 +00:00 committed by Git OBS Bridge
commit 6ad4d3784b
2 changed files with 20 additions and 15 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Mar 15 17:17:55 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Clean up the SPEC file
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Feb 22 12:42:26 UTC 2024 - Markéta Machová <mmachova@suse.com> Thu Feb 22 12:42:26 UTC 2024 - Markéta Machová <mmachova@suse.com>

View File

@ -1,5 +1,5 @@
# #
# spec file # spec file for package python-hypothesis
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
@ -16,8 +16,13 @@
# #
%bcond_with ringdisabled
%global flavor @BUILD_FLAVOR@%{nil} %global flavor @BUILD_FLAVOR@%{nil}
%if 0%{?suse_version} <= 1550
%bcond_with complete_tests
%else
%bcond_without complete_tests
%endif
%bcond_with ringdisabled
%if "%{flavor}" == "test" %if "%{flavor}" == "test"
%define psuffix -test %define psuffix -test
%bcond_without test %bcond_without test
@ -30,11 +35,6 @@ ExclusiveArch: do_not_build
%define psuffix %{nil} %define psuffix %{nil}
%bcond_with test %bcond_with test
%endif %endif
%if 0%{?suse_version} <= 1550
%bcond_with complete_tests
%else
%bcond_without complete_tests
%endif
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-hypothesis%{psuffix} Name: python-hypothesis%{psuffix}
Version: 6.98.9 Version: 6.98.9
@ -57,8 +57,10 @@ Requires: python-attrs >= 19.2.0
Requires: (python-exceptiongroup >= 1.0.0 if python-base < 3.11) Requires: (python-exceptiongroup >= 1.0.0 if python-base < 3.11)
Requires: (python-sortedcontainers >= 2.1.0 with python-sortedcontainers < 3.0) Requires: (python-sortedcontainers >= 2.1.0 with python-sortedcontainers < 3.0)
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun):update-alternatives Requires(preun): update-alternatives
BuildArch: noarch
# SECTION requires_extra # SECTION requires_extra
Recommends: (python-importlib_metadata >= 3.6 if python-base < 3.8)
# consuming packages need to declare these optional dependencies explicitly # consuming packages need to declare these optional dependencies explicitly
Recommends: python-Django >= 3.2 Recommends: python-Django >= 3.2
Recommends: python-black >= 19.10 Recommends: python-black >= 19.10
@ -73,17 +75,10 @@ Recommends: python-python-dateutil >= 1.4
Recommends: python-pytz >= 2014.1 Recommends: python-pytz >= 2014.1
Recommends: python-redis >= 3.0.0 Recommends: python-redis >= 3.0.0
Recommends: python-rich >= 9.0 Recommends: python-rich >= 9.0
Recommends: (python-importlib_metadata >= 3.6 if python-base < 3.8)
# /SECTION # /SECTION
BuildArch: noarch
%if %{with test} %if %{with test}
BuildRequires: %{python_module hypothesis = %{version}} BuildRequires: %{python_module hypothesis = %{version}}
# SECTION test requirements # SECTION test requirements
%if %{with complete_tests}
BuildRequires: %{python_module Django >= 3.2}
BuildRequires: %{python_module fakeredis}
BuildRequires: %{python_module pandas >= 1.1}
%endif
BuildRequires: %{python_module backports.zoneinfo >= 0.2.1 if %python-base < 3.9} BuildRequires: %{python_module backports.zoneinfo >= 0.2.1 if %python-base < 3.9}
BuildRequires: %{python_module black >= 19.10} BuildRequires: %{python_module black >= 19.10}
BuildRequires: %{python_module click} BuildRequires: %{python_module click}
@ -97,6 +92,11 @@ BuildRequires: %{python_module pytest >= 4.6}
BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module python-dateutil >= 1.4} BuildRequires: %{python_module python-dateutil >= 1.4}
BuildRequires: %{python_module typing_extensions} BuildRequires: %{python_module typing_extensions}
%if %{with complete_tests}
BuildRequires: %{python_module Django >= 3.2}
BuildRequires: %{python_module fakeredis}
BuildRequires: %{python_module pandas >= 1.1}
%endif
# /SECTION # /SECTION
%endif %endif
%python_subpackages %python_subpackages