diff --git a/micropipenv.spec b/micropipenv.spec index dec6c98..c8bc63d 100644 --- a/micropipenv.spec +++ b/micropipenv.spec @@ -1,6 +1,8 @@ +%bcond_with check + Name: micropipenv Version: 1.0.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A simple wrapper around pip to support Pipenv and Poetry files License: LGPLv3+ @@ -12,11 +14,14 @@ BuildRequires: python3-devel BuildRequires: python3dist(pip) BuildRequires: python3dist(setuptools) BuildRequires: python3dist(toml) +%if %{with check} # For testing +# Most of the test dependencies are not packaged in RHEL but can be pip-installed BuildRequires: python3dist(flexmock) BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-timeout) BuildRequires: python3dist(pytest-venv) +%endif %{?python_provide:%python_provide python3-%{name}} @@ -40,8 +45,14 @@ sed -i '1{\@^#!/usr/bin/env python@d}' %{name}.py %py3_install %check -# skipped tests requires internet or checks pip version +%if %{with check} +# - skipped tests requires internet +# - skipped check of pip version - micropipenv is coupled with pip and checks +# if it's using the latest version, but it's being tested upstream with old +# RHEL versions as well, and if the rest of the test suite is passing, there +# should not be issues %pytest -m "not online" -k "not test_check_pip_version" +%endif %files %doc README.rst @@ -51,6 +62,10 @@ sed -i '1{\@^#!/usr/bin/env python@d}' %{name}.py %{python3_sitelib}/%{name}-%{version}-py*.egg-info/ %changelog +* Mon Mar 01 2021 Charalampos Stratakis - 1.0.2-3 +- Disable the test run under RHEL due to missing dependencies +Resolves: rhbz#1932454 + * Tue Jan 26 2021 Fedora Release Engineering - 1.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild