14
0

Accepting request 1081520 from home:dirkmueller:acdc:as_python3_module

SR for python stack proposal

OBS-URL: https://build.opensuse.org/request/show/1081520
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip-run?expand=0&rev=7
This commit is contained in:
2023-04-21 21:24:02 +00:00
committed by Git OBS Bridge
parent 92f04455de
commit bc28b0273c
2 changed files with 25 additions and 2 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Fri Apr 21 12:29:22 UTC 2023 - Dirk Müller <dmueller@suse.com>
- add sle15_python_module_pythons (jsc#PED-68)
-------------------------------------------------------------------
Tue Apr 18 23:00:49 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Switch to single spec version build for PSP
-------------------------------------------------------------------
Tue Dec 6 04:22:58 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>

View File

@@ -16,6 +16,7 @@
#
%{?sle15_python_module_pythons}
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
@@ -27,6 +28,10 @@
# Disables installing nbformat for tests in Ring1 (see also Patch1)
%bcond_with ringdisabled
%if 0%{?suse_version} == 1500 && 0%{?sle_version} >= 150400
%bcond_without ringdisabled
%endif
Name: python-pip-run%{psuffix}
Version: 8.8.2
Release: 0
@@ -60,7 +65,7 @@ BuildRequires: %{python_module Pygments}
BuildRequires: %{python_module pip-run = %{version}}
BuildRequires: %{python_module pytest >= 6}
BuildRequires: ca-certificates
%if !%{with ringdisabled}
%if %{without ringdisabled}
BuildRequires: %{python_module nbformat}
%endif
%endif
@@ -85,6 +90,10 @@ readily address the on-demand needs.
%prep
%autosetup -p1 -n pip-run-%{version}
%if 0%{?suse_version} == 1500 && 0%{?sle_version} >= 150400
sed -i -e '/nbformat/d' setup.cfg
%endif
%if !%{with test}
%build
%pyproject_wheel
@@ -100,7 +109,11 @@ readily address the on-demand needs.
mkdir -p wheels
cp %{SOURCE10} %{SOURCE11} wheels/
export PIP_FIND_LINKS=$PWD/wheels/
%pytest -x
dont_test=""
%if 0%{?suse_version} == 1500 && 0%{?sle_version} >= 150400
dont_test+=""
%endif
%pytest -k "$dont_test"
%endif
%post