File: rules

package info (click to toggle)
python-ml-collections 1.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 584 kB
  • sloc: python: 5,456; makefile: 26
file content (23 lines) | stat: -rwxr-xr-x 623 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
#!/usr/bin/make -f

DH_VERBOSE := 1
export LC_ALL=C.UTF-8

export PYBUILD_NAME := python-ml-collections
export PYBUILD_TEST_ARGS := \
	-n auto ml_collections/ \
	--ignore=ml_collections/config_dict/examples/examples_test.py
ifeq ($(PYBUILD_AUTOPKGTEST),1)
# The tests really don't like running from a different directory.
export PYBUILD_TEST_CUSTOM := 1
PYBUILD_TEST_ARGS := \
	cd /usr/lib/python3/dist-packages && \
	{interpreter} -m pytest $(PYBUILD_TEST_ARGS)
endif

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_clean:
	dh_auto_clean
	rm -f ml_collections.egg-info/SOURCES.txt ml_collections.egg-info/top_level.txt