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: ...@@ -6,12 +6,6 @@ Build-Depends:
debhelper (>= 9), debhelper (>= 9),
dh-python, dh-python,
python3-all, python3-all,
python3-gpstime,
python3-gwdatafind,
python3-ligo-segments,
python3-lscsoft-glue (>= 3.0.1),
python3-pyrxp,
python3-pytest,
python3-setuptools, python3-setuptools,
Standards-Version: 3.9.1 Standards-Version: 3.9.1
X-Python-Version: >= 3.6 X-Python-Version: >= 3.6
......
#!/usr/bin/make -f #!/usr/bin/make -f
export PYBUILD_TEST_PYTEST = 1 export PYBUILD_DISABLE = test
%: %:
dh $@ --with python3 --buildsystem=pybuild dh $@ --with python3 --buildsystem=pybuild
...@@ -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