debian: build a python3 package

This commit is contained in:
Frédéric Péters 2020-04-13 11:43:50 +02:00
parent 807757110c
commit 87308323b9
2 changed files with 12 additions and 4 deletions

9
debian/control vendored
View File

@ -2,12 +2,17 @@ Source: django-select2
Maintainer: Entr'ouvert <info@entrouvert.com>
Section: python
Priority: optional
Build-Depends: python-setuptools (>= 0.6b3), python3-setuptools, python-all (>= 2.6.6-3), python3-all, debhelper (>= 7)
Build-Depends: python-setuptools (>= 0.6b3), python3-setuptools, python-all (>= 2.6.6-3), python3-all, debhelper (>= 9)
Standards-Version: 3.9.1
X-Python-Version: >= 2.7
Package: python-django-select2
Architecture: all
Depends: ${misc:Depends}, ${python:Depends}, python-django-appconf, python-xstatic-select2, python-gadjo
Description: Select2 option fields for Django
The app includes Select2 driven Django Widgets and Form Fields.
Package: python3-django-select2
Architecture: all
Depends: ${misc:Depends}, ${python3:Depends}, python3-django-appconf, python3-xstatic-select2, python3-gadjo
Description: Select2 option fields for Django (Python 3)
The app includes Select2 driven Django Widgets and Form Fields.

7
debian/rules vendored
View File

@ -1,5 +1,8 @@
#!/usr/bin/make -f
%:
dh $@ --with python2 --buildsystem=python_distutils
export PYBUILD_NAME=django-select2
%:
dh $@ --with python2,python3 --buildsystem=pybuild
override_dh_auto_test: