[Python-modules-commits] [python-usagestats] 02/03: Initial debianisation

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Apr 18 10:44:04 UTC 2017


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository python-usagestats.

commit 9023bf4bdc5c6917776c9a7005633d768c475a0d
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Tue Apr 18 10:56:51 2017 +0100

    Initial debianisation
---
 debian/changelog            |  5 +++++
 debian/compat               |  1 +
 debian/control              | 37 +++++++++++++++++++++++++++++++++++++
 debian/copyright            | 26 ++++++++++++++++++++++++++
 debian/gbp.conf             |  7 +++++++
 debian/rules                | 17 +++++++++++++++++
 debian/source/format        |  1 +
 debian/source/local-options |  1 +
 debian/tests/control        | 11 +++++++++++
 debian/watch                |  3 +++
 10 files changed, 109 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..f1e34dd
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-usagestats (0.6-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #860530)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com>  Tue, 18 Apr 2017 10:56:33 +0100
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..73e9a21
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,37 @@
+Source: python-usagestats
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Section: python
+Priority: optional
+Build-Depends: debhelper (>= 10),
+               dh-python,
+               dpkg-dev (>= 1.17.14),
+               python3-all,
+               python3-requests <!nocheck>,
+               python3-setuptools,
+               python3-werkzeug <!nocheck>
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/git/python-modules/packages/python-usagestats.git
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/python-usagestats.git
+Homepage: https://github.com/remram44/usagestats
+X-Python3-Version: >= 3.2
+
+Package: python3-usagestats
+Architecture: all
+Depends: ${misc:Depends},
+         ${python3:Depends}
+Description: anonymous usage statistics collecter for Python
+ This package is meant to easily get usage statistics from the users of your
+ program.
+ .
+ Statistics will be collected but won't be uploaded until the user opts in. A
+ message will be printed on stderr asking the user to explicitly opt in or opt
+ out.
+ .
+ To collect the reports, any server will do; the reports are uploaded via POST
+ as a LF-separated list of key:value pairs. A simple script for mod_wsgi is
+ included; it writes each report to a separate file. Writing your own
+ implementation in your language of choice (PHP, Java) with your own backend
+ should be fairly straightforward.
+ .
+ This package provides the modules for Python 3.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..2122de3
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,26 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: usagestats
+Upstream-Contact: Remi Rampin <remirampin at gmail.com>
+Source: https://pypi.python.org/pypi/usagestats
+
+Files: *
+Copyright: 2014 Remi Rampin
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2017 Ghislain Antony Vaillant
+License: Apache-2.0
+
+License: Apache-2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+     http://www.apache.org/licenses/LICENSE-2.0
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS"BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ On Debian systems, the complete text of the Apache License,
+ Version 2.0 can be found in '/usr/share/common-licenses/Apache-2.0'.
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..f53906f
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,7 @@
+[DEFAULT]
+upstream-branch = upstream
+debian-branch = master
+upstream-tag = upstream/%(version)s
+debian-tag = debian/%(version)s
+sign-tags = True
+pristine-tar = True
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..4cc1dc8
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE = 1
+
+export PYBUILD_NAME = usagestats
+ifneq (,$(findstring nocheck,$(DEB_BUILD_PROFILES)))
+export PYBUILD_DISABLE = test
+else
+export PYBUILD_BEFORE_TEST = cp -r {dir}/wsgi {build_dir}
+export PYBUILD_AFTER_TEST = rm -rf {build_dir}/wsgi
+export http_proxy = 127.0.0.1:8000
+export https_proxy = 127.0.0.1:8000
+endif
+
+%:
+	dh $@ --with python3 --buildsystem=pybuild
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)
diff --git a/debian/source/local-options b/debian/source/local-options
new file mode 100644
index 0000000..b2b7b88
--- /dev/null
+++ b/debian/source/local-options
@@ -0,0 +1 @@
+extend-diff-ignore="^[^/]+\.egg-info/"
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..ea23ad4
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,11 @@
+Test-Command: set -e
+ ; cp -r tests wsgi "$AUTOPKGTEST_TMP"
+ ; for py in $(py3versions -r 2>/dev/null)
+ ; do cd "$AUTOPKGTEST_TMP"
+ ; echo "Testing with $py:"
+ ; $py -m pytest -v tests
+ ; done
+Depends: python3-all,
+         python3-pytest,
+         python3-usagestats,
+         python3-werkzeug
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..f8ca4e2
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/usagestats/usagestats@ANY_VERSION@@ARCHIVE_EXT@

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-usagestats.git



More information about the Python-modules-commits mailing list