Commit 628998cb authored by Mathias Behrle's avatar Mathias Behrle

Switch to Python3.

parent 899d549f
......@@ -6,27 +6,26 @@ Uploaders: Mathias Behrle <mathiasb@m9s.biz>
Build-Depends:
debhelper (>= 9),
dh-python,
python,
python-setuptools,
python3,
python3-setuptools,
Standards-Version: 4.0.1
Homepage: http://www.tryton.org/
Vcs-Browser: https://anonscm.debian.org/cgit/tryton/tryton-modules-account-asset.git
Vcs-Git: https://anonscm.debian.org/cgit/tryton/tryton-modules-account-asset.git
X-Python-Version: >= 2.7
Package: tryton-modules-account-asset
Architecture: all
Depends:
python-pkg-resources,
python-cached-property,
python-dateutil,
python3-pkg-resources,
python3-cached-property,
python3-dateutil,
tryton-modules-account (>= ${version:major}),
tryton-modules-account-invoice (>= ${version:major}),
tryton-modules-account-product (>= ${version:major}),
tryton-modules-product (>= ${version:major}),
tryton-server (>= ${version:major}),
${misc:Depends},
${python:Depends},
${python3:Depends},
Suggests: tryton-modules-purchase (>= ${version:major})
Description: Tryton Application Platform (Account Asset Module)
Tryton is a high-level general purpose application platform. It is the base
......
#!/usr/bin/make -f
MAJOR := $(shell python setup.py --version | awk -F "." '{print $$1 "." $$2}')
MAJOR := $(shell python3 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
......@@ -9,7 +9,7 @@ MAJOR := $(shell python setup.py --version | awk -F "." '{print $$1 "." $$2}')
export PYBUILD_DISABLE=test
%:
dh $@ --with python2 --buildsystem=pybuild
dh $@ --with python3 --buildsystem=pybuild
override_dh_gencontrol:
dh_gencontrol -- -Vversion:major="$(MAJOR)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment