From 208cad6ca68664479f9ed26b5b5ba4005e0baf44 Mon Sep 17 00:00:00 2001
From: Nicolas Dandrimont <nicolas@dandrimont.eu>
Date: Thu, 31 Mar 2022 19:29:54 +0200
Subject: [PATCH] Updated debian directory for version 0.0.1

Related to T4102
---
 debian/changelog     |  5 +++++
 debian/control       | 28 ++++++++++++++++++++++++++++
 debian/copyright     | 22 ++++++++++++++++++++++
 debian/gbp.conf      |  6 ++++++
 debian/rules         | 11 +++++++++++
 debian/source/format |  1 +
 6 files changed, 73 insertions(+)
 create mode 100644 debian/changelog
 create mode 100644 debian/control
 create mode 100644 debian/copyright
 create mode 100644 debian/gbp.conf
 create mode 100755 debian/rules
 create mode 100644 debian/source/format

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..f625b48
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+swh-scrubber (0.0.1-1~swh1) unstable-swh; urgency=medium
+
+  * Initial release
+
+ -- Nicolas Dandrimont <nicolas@dandrimont.eu>  Thu, 31 Mar 2022 19:29:54 +0200
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..5c75529
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,28 @@
+Source: swh-scrubber
+Maintainer: Software Heritage developers <swh-devel@inria.fr>
+Section: python
+Priority: optional
+Build-Depends:
+ debhelper-compat (= 13),
+ dh-python (>= 3),
+ python3-all,
+ python3-pytest (<< 7.0.0),
+ python3-pytest-mock,
+ python3-pytest-postgresql,
+ python3-setuptools,
+ python3-setuptools-scm,
+ python3-swh.core (>= 0.3),
+ python3-swh.core.db.pytestplugin,
+ python3-swh.graph.client,
+ python3-swh.journal (>= 0.9.0),
+ python3-swh.model (>= 5.0.0),
+ python3-swh.storage (>= 1.1.0),
+ python3-yaml
+Rules-Requires-Root: no
+Standards-Version: 4.6.0
+Homepage: https://forge.softwareheritage.org/source/swh-scrubber
+
+Package: python3-swh.scrubber
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends},
+Description: Software Heritage Datastore Scrubber
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..c508a06
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,22 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+
+Files: *
+Copyright: 2015-2022 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 100755
index 0000000..6ba5ab8
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,11 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME=swh.scrubber
+export PYBUILD_TEST_ARGS=-vv
+
+%:
+	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