From a58c55c0d6c1101a4a5e463119516fd82a4f60b9 Mon Sep 17 00:00:00 2001 From: "Antoine R. Dumont (@ardumont)" <ardumont@softwareheritage.org> Date: Thu, 4 Mar 2021 12:31:59 +0100 Subject: [PATCH] Add debian packaging tree Related to T3079 --- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 18 ++++++++++++++++++ debian/copyright | 22 ++++++++++++++++++++++ debian/gbp.conf | 6 ++++++ debian/rules | 10 ++++++++++ debian/source/format | 1 + 7 files changed, 63 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/gbp.conf create mode 100644 debian/rules create mode 100644 debian/source/format diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..49f7d1e --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +swh-auth (0.0.1-1~swh1) unstable-swh; urgency=medium + + * Initial release + + -- Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Thu, 04 Mar 2021 13:58:13 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..1459d6c --- /dev/null +++ b/debian/control @@ -0,0 +1,18 @@ +Source: swh-auth +Maintainer: Software Heritage developers <swh-devel@inria.fr> +Section: python +Priority: optional +Build-Depends: debhelper (>= 9), + dh-python (>= 2), + python3-all, + python3-keycloak, + python3-click, + python3-pytest, +Standards-Version: 3.9.6 +Homepage: https://forge.softwareheritage.org/source/swh-auth + +Package: python3-swh.auth +Architecture: all +Depends: ${misc:Depends}, + ${python3:Depends} +Description: Software Heritage Authentication library diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..3f9a830 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,22 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ + +Files: * +Copyright: 2021 The Software Heritage developers +License: GPL-3+ + +License: GPL-3+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + . + On Debian systems, the complete text of the GNU General Public + License version 3 can be found in `/usr/share/common-licenses/GPL-3'. diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..7576206 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,6 @@ +[DEFAULT] +upstream-branch=debian/upstream +upstream-tag=debian/upstream/%(version)s +upstream-vcs-tag=v%(version)s +debian-branch=debian/unstable-swh +pristine-tar=True diff --git a/debian/rules b/debian/rules new file mode 100644 index 0000000..4c45e93 --- /dev/null +++ b/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f + +export PYBUILD_NAME=swh.auth + +%: + dh $@ --with python3 --buildsystem=pybuild + +override_dh_install: + dh_install + rm -v $(CURDIR)/debian/python3-*/usr/lib/python*/dist-packages/swh/__init__.py diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) -- GitLab