From 83e5e210d355005cd2af4e3252cdb2085a70b140 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20M=C3=BCller?= Date: Fri, 5 Jan 2024 16:42:34 +0100 Subject: [PATCH] openstacksdk: reenable testing, add platformdirs dependency Change-Id: I5c97a5a172c7e2fff2436b342a8496d2e39cae99 --- openstack/openstacksdk/openstacksdk.spec.j2 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/openstack/openstacksdk/openstacksdk.spec.j2 b/openstack/openstacksdk/openstacksdk.spec.j2 index 2962c4250..5ee4ad5e6 100644 --- a/openstack/openstacksdk/openstacksdk.spec.j2 +++ b/openstack/openstacksdk/openstacksdk.spec.j2 @@ -2,9 +2,6 @@ {% set upstream_version = upstream_version('2.0.0') %} {% set rpm_release = '1' %} {% set source = url_pypi() %} -# FIXME(jpena): unit tests require way too much memory -# and cause timeouts due to swapping. Disabling for now -%define with_tests 0 Name: {{ py2name() }} Version: {{ py2rpmversion() }} Release: {{ py2rpmrelease() }} @@ -68,6 +65,7 @@ Requires: {{ py3('keystoneauth1') }} Requires: {{ py3('munch') }} Requires: {{ py3('netifaces') }} Requires: {{ py3('os-service-types') }} +Requires: {{ py3('platformdirs') }} Requires: {{ py3('requestsexceptions') }} %if 0%{?suse_version} Obsoletes: {{ py2name(py_versions='py2') }} < 1.0.0 @@ -126,12 +124,11 @@ rm -rf doc/build/html/.{doctrees,buildinfo} %install %py3_install -%if 0%{?with_tests} %check export OS_LOG_CAPTURE=true export OS_TEST_TIMEOUT=30 +rm -v openstack/tests/unit/test_hacking.py %{openstack_stestr_run} -%endif %files -n {{ py2name(py_versions='py3') }} %license LICENSE