11
0
forked from pool/python-apipkg
2022-11-30 12:49:29 +00:00
committed by Git OBS Bridge
parent e904574ad0
commit dd033e12e0
2 changed files with 8 additions and 2 deletions

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}