[Python-modules-commits] [raven] 03/06: add initial Debian packaging
Vincent Bernat
bernat at moszumanska.debian.org
Tue Feb 28 10:45:58 UTC 2017
This is an automated email from the git hooks/post-receive script.
bernat pushed a commit to branch master
in repository raven.
commit 1acb9638e31a0b22fcc8870c9a2d71d0e6b55060
Author: Vincent Bernat <vincent at bernat.im>
Date: Tue Feb 28 09:36:21 2017 +0100
add initial Debian packaging
---
debian/.git-dpm | 5 +++-
debian/changelog | 5 ++++
debian/compat | 1 +
debian/control | 65 +++++++++++++++++++++++++++++++++++++++++++++++
debian/copyright | 41 ++++++++++++++++++++++++++++++
debian/python-raven.docs | 1 +
debian/python3-raven.docs | 1 +
debian/rules | 15 +++++++++++
debian/source/options | 1 +
debian/watch | 4 +++
10 files changed, 138 insertions(+), 1 deletion(-)
diff --git a/debian/.git-dpm b/debian/.git-dpm
index 0bee844..8aedc86 100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@ -3,6 +3,9 @@ fe509920c25ec8033dd060de3e9c8ba1e493dde4
fe509920c25ec8033dd060de3e9c8ba1e493dde4
fe509920c25ec8033dd060de3e9c8ba1e493dde4
fe509920c25ec8033dd060de3e9c8ba1e493dde4
-raven_6.0.0.orig.tar.xz
+python-raven_6.0.0.orig.tar.xz
f8439bbc21ddf19d1dc789ad5c5e26cd1f5d5474
238840
+debianTag="debian/%e%v"
+patchedTag="patched/%e%v"
+upstreamTag="upstream/%e%u"
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..90ab427
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-raven (6.0.0-1) unstable; urgency=low
+
+ * Initial release (closes: #791550)
+
+ -- Vincent Bernat <bernat at debian.org> Tue, 28 Feb 2017 09:48:32 +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..66badb6
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,65 @@
+Source: python-raven
+Section: python
+Priority: optional
+Maintainer: Vincent Bernat <bernat at debian.org>
+Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Build-Depends: debhelper (>= 9), dh-python,
+ python-all,
+ python-setuptools,
+ python3-all,
+ python3-setuptools,
+ python-contextlib2,
+ python-flask, python3-flask,
+ python-blinker, python3-blinker,
+# For tests:
+ python3-flask-login,
+ python-paste, python3-paste,
+ python-webpy,
+ python-unittest2,
+ python-bottle, python3-bottle,
+ python-celery, python3-celery,
+ python-exam, python3-exam,
+ python-flake8, python3-flake8,
+ python-logbook, python3-logbook,
+ python-mock, python3-mock,
+ python-nose, python3-nose,
+ python-pycodestyle, python3-pycodestyle,
+ python-tz, python3-tz,
+ python-pytest, python3-pytest,
+ python-pytest-timeout, python3-pytest-timeout,
+ python-requests, python3-requests,
+ python-tornado, python3-tornado,
+ python-webob, python3-webob,
+ python-webtest, python3-webtest,
+ python-anyjson, python3-anyjson,
+ python-gevent, python3-gevent
+Standards-Version: 3.9.8
+Homepage: https://github.com/getsentry/raven-python
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/raven.git
+Vcs-Browser: https://anonscm.debian.org/git/python-modules/packages/raven.git
+
+Package: python-raven
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends},
+Recommends: ${python:Recommends}
+Suggests: ${python:Suggests}
+Description: client for Sentry - Python 2.X
+ Raven is a Python client for Sentry. It provides full out-of-the-box
+ support for many of the popular frameworks, including Django, and
+ Flask. Raven also includes drop-in support for any WSGI-compatible web
+ application.
+ .
+ This package contains the module for Python 2.
+
+Package: python3-raven
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends},
+Recommends: ${python3:Recommends}
+Suggests: ${python3:Suggests}
+Description: client for Sentry - Python 3.X
+ Raven is a Python client for Sentry. It provides full out-of-the-box
+ support for many of the popular frameworks, including Django, and
+ Flask. Raven also includes drop-in support for any WSGI-compatible web
+ application.
+ .
+ This package contains the module for Python 3.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..ec8e929
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,41 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: raven
+Upstream-Contact: Sentry <hello at getsentry.com>
+Source: https://github.com/getsentry/raven-python
+
+Files: *
+Copyright: (c) 2015 Functional Software, Inc and individual contributors.
+License: BSD-3-clause
+
+Files: debian/*
+Copyright: 2017 © Vincent Bernat <bernat at debian.org>
+License: BSD-3-clause
+
+License: BSD-3-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ .
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ .
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ .
+ 3. Neither the name of the Raven nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
+ WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
diff --git a/debian/python-raven.docs b/debian/python-raven.docs
new file mode 100644
index 0000000..a1320b1
--- /dev/null
+++ b/debian/python-raven.docs
@@ -0,0 +1 @@
+README.rst
diff --git a/debian/python3-raven.docs b/debian/python3-raven.docs
new file mode 100644
index 0000000..a1320b1
--- /dev/null
+++ b/debian/python3-raven.docs
@@ -0,0 +1 @@
+README.rst
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..aaec5a5
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,15 @@
+#! /usr/bin/make -f
+
+export PYBUILD_NAME=raven
+export PYBUILD_AFTER_INSTALL_python2=rm -rf {destdir}/usr/bin/
+
+# Django tests need a missing conftest.py. Tornado contrib tests seems
+# to need network. Versioning tests need an installed version of the
+# package to run. Flask tests cannot be run with Python 2.x as we are
+# missing flask.ext.login. Web.py doesn't exist in Python 3.
+export PYBUILD_TEST_ARGS=--ignore=tests/contrib/django --ignore=tests/contrib/tornado --ignore=tests/versioning/tests.py
+export PYBUILD_TEST_ARGS_python2=--ignore=tests/contrib/flask $(PYBUILD_TEST_ARGS)
+export PYBUILD_TEST_ARGS_python3=--ignore=tests/contrib/webpy $(PYBUILD_TEST_ARGS)
+
+%:
+ dh $@ --with python3,python2 --buildsystem=pybuild
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..d81db3f
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1 @@
+extend-diff-ignore="^[^/]+.egg-info/"
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..ef486ff
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+# try also https://pypi.debian.net/raven/watch
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/raven/raven-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/raven.git
More information about the Python-modules-commits
mailing list