debian: remove python 2 support (#51514)

This commit is contained in:
Frédéric Péters 2021-02-28 12:44:57 +01:00
parent 7bc1b1daed
commit d53d8cc6a7
5 changed files with 2 additions and 28 deletions

22
debian/control vendored
View File

@ -2,29 +2,9 @@ Source: hobo
Maintainer: Jérôme Schneider <jschneider@entrouvert.com>
Section: python
Priority: optional
Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), python3-setuptools, python3-all, python-django, python3-django, debhelper (>= 9), dh-python, dh-systemd, sassc
Build-Depends: python3-setuptools, python3-all, python3-django, debhelper (>= 9), dh-python, dh-systemd, sassc
Standards-Version: 3.9.1
Package: python-hobo
Architecture: all
Depends: ${misc:Depends},
${python:Depends},
python3-hobo (= ${binary:Version}),
python-django (>= 1:1.11),
python-celery (>= 3.1.13),
python-requests,
python-apt,
python-memcache,
python-prometheus-client,
python-djangorestframework,
python-dnspython,
python-systemd
Recommends:
python-gadjo,
python-django-mellon (>= 1.2.22.26),
memcached
Description: Rapid Remote Deployment python module
Package: python3-hobo
Architecture: all
Depends: ${misc:Depends},

View File

@ -1 +0,0 @@
/usr/lib/hobo

View File

@ -1,2 +0,0 @@
COPYING
README

View File

@ -1 +0,0 @@
activate hobo-redeploy

4
debian/rules vendored
View File

@ -4,13 +4,11 @@
export PYBUILD_NAME := hobo
export DEB_BUILD_OPTIONS=nocheck
PYTHON_HOBO_DIR=$(CURDIR)/debian/python-hobo
PYTHON3_HOBO_DIR=$(CURDIR)/debian/python3-hobo
%:
dh $@ --with python2,python3,systemd --buildsystem=pybuild
dh $@ --with python3,systemd --buildsystem=pybuild
override_dh_install:
dh_install
mv $(PYTHON3_HOBO_DIR)/usr/bin/manage.py $(PYTHON3_HOBO_DIR)/usr/lib/hobo/manage.py
rm $(PYTHON_HOBO_DIR)/usr/bin/manage.py