File: rules

package info (click to toggle)
python-tempora 5.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 200 kB
  • sloc: python: 610; sh: 12; makefile: 8
file content (17 lines) | stat: -rwxr-xr-x 581 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

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

export PYBUILD_NAME=tempora

export PYBUILD_BEFORE_TEST=cp -va {dir}/pytest.ini {build_dir}; cp -va {dir}/tempora/tests {build_dir}/tempora/
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/pytest.ini {build_dir}/tempora/tests
export PYBUILD_TEST_ARGS=-k 'not tempora.get_nearest_year_for_day'

%:
	dh $@ --with python3 --buildsystem=pybuild --test-pytest

execute_after_dh_installexamples:
	# install tiny, autogenerated calc-prorate script as an example only
	rm -vrf debian/python3-tempora/usr/bin