Skip to content
Snippets Groups Projects
Commit 2e34d3ac authored by Robert Bruntz's avatar Robert Bruntz
Browse files

Merge branch 'rpm-deb-no-pytest' into 'master'

Disable pytest during RPM/Deb builds

See merge request !121
parents e14a33cc 673c1740
No related branches found
No related tags found
1 merge request!121Disable pytest during RPM/Deb builds
Pipeline #592972 passed
......@@ -6,12 +6,6 @@ Build-Depends:
debhelper (>= 9),
dh-python,
python3-all,
python3-gpstime,
python3-gwdatafind,
python3-ligo-segments,
python3-lscsoft-glue (>= 3.0.1),
python3-pyrxp,
python3-pytest,
python3-setuptools,
Standards-Version: 3.9.1
X-Python-Version: >= 3.6
......
#!/usr/bin/make -f
export PYBUILD_TEST_PYTEST = 1
export PYBUILD_DISABLE = test
%:
dh $@ --with python3 --buildsystem=pybuild
......@@ -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