Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 UPSTREAM_GIT := https://github.com/networktocode/ntc-templates/
4 include /usr/share/openstack-pkg-tools/pkgos.make
5
6 export PYBUILD_NAME=ntc-templates
7 export PYBUILD_TEST_ARGS=-v tests
8
9 %:
10 dh $@ --buildsystem=pybuild
11
12 override_dh_auto_clean:
13 rm -rf build *.egg-info .pybuild .pytest_cache
14 find . -iname '*.pyc' -delete
15 for i in $$(find . -type d -iname __pycache__) ; do rm -rf $$i ; done
16
17 execute_after_dh_fixperms:
18 chmod -x $(CURDIR)/debian/python3-ntc-templates/usr/lib/python3/dist-packages/ntc_templates/templates/cisco_ios_show_ip_flow_toptalkers.textfsm
19 chmod -x $(CURDIR)/debian/python3-ntc-templates/usr/lib/python3/dist-packages/ntc_templates/templates/cisco_nxos_show_version.textfsm