File: rules

package info (click to toggle)
tryton-modules-sale-stock-quantity 4.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 308 kB
  • ctags: 55
  • sloc: python: 300; xml: 18; makefile: 6
file content (17 lines) | stat: -rwxr-xr-x 497 bytes parent folder | download | duplicates (102)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

MAJOR := $(shell python setup.py --version | awk -F "." '{print $$1 "." $$2}')

# Don't run tests for Tryton modules, they possibly depend on other modules
# of the same version, that are not yet available at build time from the archive
# in case of new releases.
# For the complete test suites refer to http://tests.tryton.org/
export PYBUILD_DISABLE=test

%:
	dh $@ --with python2 --buildsystem=pybuild

override_dh_gencontrol:
	dh_gencontrol -- -Vversion:major="$(MAJOR)"