From 725574a675757b53c834bdd5e2e007e2332caa7c Mon Sep 17 00:00:00 2001 From: John Franklin Date: Mon, 25 Sep 2023 14:31:38 -0400 Subject: [PATCH 1/3] #86: Add support for Debian packaging. --- .gitignore | 1 + debian/.gitignore | 9 +++++++++ debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 13 +++++++++++++ debian/rules | 15 +++++++++++++++ 6 files changed, 44 insertions(+) create mode 100644 debian/.gitignore create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100755 debian/rules diff --git a/.gitignore b/.gitignore index 9afd57b..4f523c0 100644 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,7 @@ wheels/ *.egg-info/ .installed.cfg *.egg +.pybuild/ # PyInstaller # Usually these files are written by a python script from a template diff --git a/debian/.gitignore b/debian/.gitignore new file mode 100644 index 0000000..81424ee --- /dev/null +++ b/debian/.gitignore @@ -0,0 +1,9 @@ +# Debian dpkg-buildpackage generated bits. +*.debhelper +*.debhelper.log +*.substvars +.debhelper/ +debhelper-build-stamp +files +# Package directories +/python3-acapi2 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..59c3e5f --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +python3-acapi2 (2.1.3) stable; urgency=medium + + * Initial release. + + -- John Franklin Mon, 25 Sep 2023 11:51:44 -0400 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..46f8e34 --- /dev/null +++ b/debian/control @@ -0,0 +1,13 @@ +Source: python3-acapi2 +Section: web +Priority: optional +Maintainer: John Franklin +Build-Depends: debhelper (>=9), dh-exec, dh-python, python3-all, python3-setuptools, python3-backoff +Standards-Version: 3.9.8 +Homepage: https://github.com/pmatias/python-acquia-cloud-2 + +Package: python3-acapi2 +Architecture: all +Depends: ${python3:Depends} ${misc:Depends} +Description: Acquia Cloud API V2 python bindings + Python Client library to communicate with the Acquia Cloud API V2. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..e075fe1 --- /dev/null +++ b/debian/rules @@ -0,0 +1,15 @@ +#!/usr/bin/make -f +# You must remove unused comment lines for the released package. +#export DH_VERBOSE = 1 +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + +export PYBUILD_NAME = acapi2 + + +%: + dh $@ --with python3 --buildsystem=pybuild + +# Skip running the tests until they work in the build environment. +override_dh_auto_test: From cd3a16a43dbbbd89437e70b3ba9902ba23df54bc Mon Sep 17 00:00:00 2001 From: John Franklin Date: Wed, 3 Dec 2025 18:26:02 -0500 Subject: [PATCH 2/3] Add debian/gpb.conf --- debian/gbp.conf | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 debian/gbp.conf diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..5adc5e5 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,2 @@ +[dch] +git-author=true From 2d7167a56f188c1f113a232f08a31b7163425a93 Mon Sep 17 00:00:00 2001 From: John Franklin Date: Wed, 3 Dec 2025 19:07:48 -0500 Subject: [PATCH 3/3] Add a copyright file and fix a lintian issue. --- debian/control | 2 +- debian/copyright | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 debian/copyright diff --git a/debian/control b/debian/control index 46f8e34..e6ae80f 100644 --- a/debian/control +++ b/debian/control @@ -10,4 +10,4 @@ Package: python3-acapi2 Architecture: all Depends: ${python3:Depends} ${misc:Depends} Description: Acquia Cloud API V2 python bindings - Python Client library to communicate with the Acquia Cloud API V2. + Python Client library to communicate with the Acquia Cloud API V2. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..9091269 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,10 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: https://github.com/sentaidigital/onedrive_tray_deb +Upstream-Name: Acquia Cloud API +Upstream-Contact: John Franklin + +Files: + * +License: MIT +Copyright: 2021-2023 Matthais Katz + 2017-2020 Pablo Fabregat