Daniel Garcia 2022-11-30 12:49:29 +00:00 committed by Git OBS Bridge
parent a370ab8b97
commit 62a4aa49d1
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Nov 30 12:49:07 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
- Remove python-py dependency
-------------------------------------------------------------------
Tue Nov 29 16:53:46 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>

View File

@ -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}