File: rules

package info (click to toggle)
python-ntc-templates 3.5.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,096 kB
  • sloc: python: 735; makefile: 13; sh: 2
file content (19 lines) | stat: -rwxr-xr-x 719 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

UPSTREAM_GIT := https://github.com/networktocode/ntc-templates/
include /usr/share/openstack-pkg-tools/pkgos.make

export PYBUILD_NAME=ntc-templates
export PYBUILD_TEST_ARGS=-v tests

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_clean:
	rm -rf build *.egg-info .pybuild .pytest_cache
	find . -iname '*.pyc' -delete
	for i in $$(find . -type d -iname __pycache__) ; do rm -rf $$i ; done

execute_after_dh_fixperms:
	chmod -x $(CURDIR)/debian/python3-ntc-templates/usr/lib/python3/dist-packages/ntc_templates/templates/cisco_ios_show_ip_flow_toptalkers.textfsm
	chmod -x $(CURDIR)/debian/python3-ntc-templates/usr/lib/python3/dist-packages/ntc_templates/templates/cisco_nxos_show_version.textfsm