File: rules

package info (click to toggle)
qiime 2024.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,688 kB
  • sloc: python: 31,045; sh: 96; makefile: 31
file content (35 lines) | stat: -rwxr-xr-x 1,091 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export PYBUILD_NAME = qiime

include /usr/share/dpkg/default.mk

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

export PYBUILD_DISABLE=python3.12

%:
	dh $@ --buildsystem=pybuild

# FIXME: the following hack is commented out, as the tip to solve the QIIMETEST
# environment variable issue does not seem to work anymore.  No tests are run
# at build time, they are delayed to the autopkgtest step.

## For testing, we need to deploy the project in the build directory
## so that qiime2 plugins are loaded
#export PYBUILD_BEFORE_TEST=python{version} setup.py develop --install-dir {build_dir}
## Un-deploy the project and delete site.py script
#export PYBUILD_AFTER_TEST=rm -v {build_dir}/site.py; \
#	python{version} setup.py develop --uninstall --install-dir {build_dir}

override_dh_auto_test:
#ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
#	LC_ALL=C.UTF-8 dh_auto_test -- -s custom --test-args="cd {build_dir}; QIIMETEST= pytest-3"
#endif

override_dh_auto_clean:
	dh_auto_clean
	rm -rf qiime2.egg-info