From d720cffab05c306752757cae6ddec06d78846cf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20M=C3=BCller?= Date: Mon, 22 Jan 2024 23:23:08 +0100 Subject: [PATCH] cursive: switch to stestr, remove external mock Change-Id: I0f71fae6a12fc069b10cff901339d3d9306410f1 --- {openstack => x}/cursive/cursive.spec.j2 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) rename {openstack => x}/cursive/cursive.spec.j2 (91%) diff --git a/openstack/cursive/cursive.spec.j2 b/x/cursive/cursive.spec.j2 similarity index 91% rename from openstack/cursive/cursive.spec.j2 rename to x/cursive/cursive.spec.j2 index f3a81d912..0a465a056 100644 --- a/openstack/cursive/cursive.spec.j2 +++ b/x/cursive/cursive.spec.j2 @@ -10,6 +10,8 @@ License: {{ license('Apache-2.0') }} Group: Development/Languages/Python URL: https://opendev.org/x/{{ pypi_name }} Source0: {{ source }} +# https://review.opendev.org/c/x/cursive/+/906321 +Patch1: 0001-Remove-use-of-external-mock.patch BuildRequires: openstack-macros BuildRequires: {{ py3('Sphinx') }} BuildRequires: {{ py3('castellan') }} @@ -22,7 +24,7 @@ BuildRequires: {{ py3('oslotest') }} BuildRequires: {{ py3('pbr') }} BuildRequires: {{ py3('python-subunit') }} BuildRequires: {{ py3('reno') }} -BuildRequires: {{ py3('testrepository') }} +BuildRequires: {{ py3('stestr') }} BuildRequires: {{ py3('testscenarios') }} BuildRequires: {{ py3('testtools') }} BuildArch: noarch @@ -52,7 +54,7 @@ projects for verifying digital signatures. Additional capabilities will be added to this project in support of various security features. %prep -%autosetup -n {{ pypi_name }}-{{ upstream_version }} +%autosetup -p1 -n {{ pypi_name }}-{{ upstream_version }} %py_req_cleanup %build @@ -62,7 +64,7 @@ added to this project in support of various security features. %py3_install %check -PYTHON=python3 python3 setup.py testr +%{openstack_stestr_run} %files -n {{ py2name(py_versions='py3') }} %license LICENSE