From: Cedric Hombourger Date: Sun, 27 Sep 2020 07:41:26 +0000 (-0400) Subject: debian: no longer build for Python2 and use recent Debian standards X-Git-Tag: v2.1.0~4^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6aea383201de8b69b9f3d5f4036993a3660567a0;p=ceph-deploy.git debian: no longer build for Python2 and use recent Debian standards Build this package only for Python3 (Python2 will be EOL'ed soon and no longer supported in distributions. Refresh the meta-data to use recent versions of Debian Standards (debhelper >= 10 and policy >= 4.2.1) Signed-off-by: Cedric Hombourger --- diff --git a/debian/compat b/debian/compat index 7f8f011..f599e28 100644 --- a/debian/compat +++ b/debian/compat @@ -1 +1 @@ -7 +10 diff --git a/debian/control b/debian/control index 5168290..30a323b 100644 --- a/debian/control +++ b/debian/control @@ -3,22 +3,26 @@ Maintainer: Sage Weil Uploaders: Sage Weil Section: admin Priority: optional -Build-Depends: debhelper (>= 7), python-setuptools, git -X-Python-Version: >= 2.6 -Standards-Version: 3.9.2 +Build-Depends: debhelper (>= 10), + dh-python, + python3, + python3-mock, + python3-remoto +X-Python-Version: >= 3.7 +Standards-Version: 4.2.1 Homepage: http://ceph.com/ Vcs-Git: git://github.com/ceph/ceph-deploy.git Vcs-Browser: https://github.com/ceph/ceph-deploy Package: ceph-deploy Architecture: all -Depends: python, - python-argparse, - python-configparser, - python-setuptools, - python-remoto, +Depends: python3, + python3-argparse, + python3-configparser, + python3-setuptools, + python3-remoto, ${misc:Depends}, - ${python:Depends} + ${python3:Depends} Description: Ceph-deploy is an easy to use configuration tool for the Ceph distributed storage system. . diff --git a/debian/rules b/debian/rules index 3b877fa..6e81be8 100755 --- a/debian/rules +++ b/debian/rules @@ -1,11 +1,11 @@ #!/usr/bin/make -f -# Uncomment this to turn on verbose mode. -export DH_VERBOSE=1 -export DEB_PYTHON_INSTALL_ARGS_ALL += --install-lib=/usr/share/ceph-deploy +#export DH_VERBOSE=1 +export PYBUILD_NAME=ceph-deploy +export PYBUILD_INSTALL_ARGS_python3=--install-lib=/usr/share/ceph-deploy %: - dh $@ --buildsystem python_distutils --with python2 + dh $@ --buildsystem pybuild --with python3 override_dh_clean: rm -rf ceph_deploy/lib/remoto