File: rules

package info (click to toggle)
python-libcst 1.4.0-1.2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 5,928 kB
  • sloc: python: 76,235; makefile: 10; sh: 2
file content (16 lines) | stat: -rwxr-xr-x 603 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

export CARGO_HOME=$(shell pwd)/debian/cargo
# Ignore fuzz test that requires hypotesmith (not yet packaged)
export PYBUILD_TEST_ARGS=--ignore=libcst/tests/test_fuzz.py --ignore=libcst/metadata/tests/test_type_inference_provider.py --ignore=libcst/codegen/tests/test_codegen_clean.py --ignore=libcst/codemod/tests/test_codemod_cli.py

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_clean:
	if test -f native/Cargo.lock.saved; then mv native/Cargo.lock.saved native/Cargo.lock; fi
	dh_auto_clean

override_dh_auto_build:
	mv native/Cargo.lock native/Cargo.lock.saved
	dh_auto_build