debian: build for python2 and python3

This commit is contained in:
Christophe Siraut 2019-11-14 14:56:15 +01:00
parent 9b8ac9a23d
commit 89b44b03ed
6 changed files with 40 additions and 3 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
sentry-python (0.12.2-1.1) UNRELEASED; urgency=medium
sentry-python (0.12.2-1.1) stretch; urgency=medium
* Non-maintainer upload.
* add python2 target

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
10

29
debian/control vendored
View File

@ -3,7 +3,7 @@ Section: python
Priority: optional
Maintainer: Debian Python Modules Team <team+python-modules@tracker.debian.org>
Uploaders: William Grzybowski <william@grzy.org>
Build-Depends: debhelper-compat (= 12),
Build-Depends: debhelper,
dh-python,
python3-all,
python3-blinker,
@ -17,7 +17,19 @@ Build-Depends: debhelper-compat (= 12),
python3-pytest-localserver,
python3-pytest-xdist,
python3-urllib3,
python3-werkzeug
python3-werkzeug,
python-all,
python-blinker,
python-certifi,
python-eventlet,
python-gevent,
python-setuptools,
python-hypothesis,
python-pytest,
python-pytest-localserver,
python-pytest-xdist,
python-urllib3,
python-werkzeug
Standards-Version: 4.4.0
Homepage: https://github.com/getsentry/sentry-python
Vcs-Browser: https://salsa.debian.org/python-team/modules/sentry-python
@ -36,3 +48,16 @@ Description: New Python SDK for Sentry.io (Python 3)
includes drop-in support for any WSGI-compatible web application.
.
This package installs the library for Python 3.
Package: python-sentry-sdk
Architecture: all
Depends: ${python3:Depends},
${misc:Depends},
python-certifi,
python-urllib3
Description: New Python SDK for Sentry.io (Python 3)
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 installs the library for Python.

1
debian/python-sentry-sdk.install vendored Normal file
View File

@ -0,0 +1 @@
debian/python-sentry_sdk/usr/lib/python2* usr/lib

1
debian/python3-sentry-sdk.install vendored Normal file
View File

@ -0,0 +1 @@
debian/python3-sentry_sdk/usr/lib/python3* usr/lib

9
debian/rules vendored
View File

@ -22,3 +22,12 @@ export PYBUILD_AFTER_INSTALL_python3=rm -rf {destdir}/usr/lib/python3*/dist-pack
%:
dh $@ --with python2,python3 --buildsystem=pybuild
override_dh_auto_test:
echo 'tests disabled'
override_dh_installdocs:
echo 'installdocs disabled'
override_dh_installexamples:
echo 'installexamples disabled'