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 ...@@ -21,10 +21,6 @@ BuildRequires: python%{python3_pkgversion}-pip
BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-wheel BuildRequires: python%{python3_pkgversion}-wheel
# test requirements
BuildRequires: python%{python3_pkgversion}-pyOpenSSL >= 0.14
BuildRequires: python%{python3_pkgversion}-pytest
# -- src.rpm # -- src.rpm
%description %description
...@@ -76,10 +72,9 @@ sed -i '/lalsuite/d' setup.py ...@@ -76,10 +72,9 @@ sed -i '/lalsuite/d' setup.py
%py3_install_wheel %{srcname}-%{version}-*.whl %py3_install_wheel %{srcname}-%{version}-*.whl
%check %check
cd %{_builddir} # move out of the source tree # print the metadata
export PYTHONPATH="%{buildroot}%{python3_sitelib}" PATH="%{buildroot}%{_bindir}:${PATH}" \
export PATH="%{buildroot}%{_bindir}:${PATH}" %{__python3} -m pip show dqsegdb
%{__python3} -m pytest -ra -v --pyargs dqsegdb
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
...@@ -97,7 +92,6 @@ rm -rf $RPM_BUILD_ROOT ...@@ -97,7 +92,6 @@ rm -rf $RPM_BUILD_ROOT
%license LICENSE %license LICENSE
%doc README.md %doc README.md
%{python3_sitelib}/* %{python3_sitelib}/*
%exclude %{python3_sitelib}/dqsegdb/tests/__pycache__/*-PYTEST.pyc
# -- changelog # -- 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