From 62a4aa49d1d255900c897eaf06903cd78c3ec9788b652f722f3ccf8161130cf2 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Wed, 30 Nov 2022 12:49:29 +0000 Subject: [PATCH] - Remove python-py dependency OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-apipkg?expand=0&rev=13 --- python-apipkg.changes | 5 +++++ python-apipkg.spec | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/python-apipkg.changes b/python-apipkg.changes index e8592c1..f5e068c 100644 --- a/python-apipkg.changes +++ b/python-apipkg.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Nov 30 12:49:07 UTC 2022 - Daniel Garcia + +- Remove python-py dependency + ------------------------------------------------------------------- Tue Nov 29 16:53:46 UTC 2022 - Daniel Garcia diff --git a/python-apipkg.spec b/python-apipkg.spec index f2e0d3c..b684dc8 100644 --- a/python-apipkg.spec +++ b/python-apipkg.spec @@ -35,7 +35,6 @@ Source: https://files.pythonhosted.org/packages/source/a/apipkg/apipkg-% %if %{with test} BuildRequires: %{python_module apipkg = %{version}} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module py} %endif BuildRequires: %{python_module hatch-vcs} BuildRequires: %{python_module hatchling} @@ -74,7 +73,9 @@ sed -i ':a;N;$!ba;s/dynamic = \[[^]]*\]/version = "%{version}"/g' pyproject.toml %check %if %{with test} -%pytest +# Do not test distribution version, it's broken because pytest doesn't require +# python-py anymore +%pytest -k 'not test_get_distribution_version' %endif %if ! %{with test}