Skip to content
Snippets Groups Projects
Unverified Commit 673c1740 authored by Duncan Macleod's avatar Duncan Macleod
Browse files

rpm: don't run pytest during build

it just makes things heavy
parent 9f1a7d72
No related branches found
No related tags found
1 merge request!121Disable pytest during RPM/Deb builds
......@@ -21,10 +21,6 @@ BuildRequires: python%{python3_pkgversion}-pip
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-wheel
# test requirements
BuildRequires: python%{python3_pkgversion}-pyOpenSSL >= 0.14
BuildRequires: python%{python3_pkgversion}-pytest
# -- src.rpm
%description
......@@ -76,10 +72,9 @@ sed -i '/lalsuite/d' setup.py
%py3_install_wheel %{srcname}-%{version}-*.whl
%check
cd %{_builddir} # move out of the source tree
export PYTHONPATH="%{buildroot}%{python3_sitelib}"
export PATH="%{buildroot}%{_bindir}:${PATH}"
%{__python3} -m pytest -ra -v --pyargs dqsegdb
# print the metadata
PATH="%{buildroot}%{_bindir}:${PATH}" \
%{__python3} -m pip show dqsegdb
%clean
rm -rf $RPM_BUILD_ROOT
......@@ -97,7 +92,6 @@ rm -rf $RPM_BUILD_ROOT
%license LICENSE
%doc README.md
%{python3_sitelib}/*
%exclude %{python3_sitelib}/dqsegdb/tests/__pycache__/*-PYTEST.pyc
# -- changelog
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment