Add python3-subvertpy package.

parent 9fc86443
subvertpy (0.10.0-2) UNRELEASED; urgency=medium
* Bump standards version to 4.0.0 (no changes).
* Add python3-subvertpy package.
* Migrate python-subvertpy-dbg package to python-subvertpy-dbgsym.
-- Jelmer Vernooij <jelmer@debian.org> Mon, 17 Jul 2017 23:40:27 +0000
......
......@@ -3,17 +3,20 @@ Section: python
Priority: optional
Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Uploaders: Jelmer Vernooij <jelmer@debian.org>
Homepage: http://samba.org/~jelmer/subvertpy
Build-Depends: debhelper (>= 8.1.0),
Homepage: https://www.jelmer.uk/subvertpy
Build-Depends: debhelper (>= 9),
libsvn-dev,
python (>= 2.6.6-3),
python-all-dbg (>= 2.6.6-3),
python-all-dev (>= 2.6.6-3),
python3-all-dev,
python3-all-dbg,
python-docutils,
python-pydoctor (>= 0.5+git20151204-1),
python-testtools
Standards-Version: 4.0.0
X-Python-Version: >= 2.4
X-Python-Version: >= 2.7
X-Python3-Version: >= 3.3
Vcs-Git: git://anonscm.debian.org/python-modules/packages/subvertpy.git
XS-Testsuite: autopkgtest
......@@ -22,29 +25,26 @@ Architecture: any
Conflicts: bzr-svn (<< 0.5.0~rc2~)
Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends}
Provides: ${python:Provides}
Suggests: python-subvertpy-dbg
Description: Alternative Python bindings for Subversion
Description: Alternative Python bindings for Subversion - Python 2
Python bindings for the Subversion version control system. The aim of
these bindings is to be fast, complete and to provide an API that feels native
to Python programmers.
.
This also includes an experimental server-side implementation of the
Subversion protocol.
.
This package contains the Python 2 version.
Package: python-subvertpy-dbg
Package: python3-subvertpy
Architecture: any
Conflicts: bzr-svn (<< 0.5.0~rc2~)
Priority: extra
Section: debug
Recommends: libapr1-dbg, libaprutil1-dbg, python-dbg
Provides: ${python:Provides}
Depends: python-subvertpy (= ${binary:Version}),
${misc:Depends},
${python:Depends},
${shlibs:Depends}
Description: Alternative Python bindings for Subversion - Debugging Symbols
Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends}
Provides: ${python3:Provides}
Description: Alternative Python bindings for Subversion - Python 3
Python bindings for the Subversion version control system. The aim of
these bindings is to be fast, complete and to provide an API that feels native
to Python programmers.
.
This package contains the debug extension.
This also includes an experimental server-side implementation of the
Subversion protocol.
.
This package contains the Python 3 version.
......@@ -9,18 +9,16 @@ LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
# Get the supported Python versions
PYVERS = $(shell pyversions -r -v)
# Get the default Python version
PYVERSION = $(shell pyversions -d -v)
PY3VERS = $(shell py3versions -r -v)
# Callable functions to determine the correct PYTHONPATH
pythonpath = $$(ls -d $(CURDIR)/build/lib.*-$(1))
pythonpath_dbg = $$(ls -d $(CURDIR)/build/lib_d.*-$(1) 2>/dev/null || ls -d $(CURDIR)/build/lib.*$(1)-pydebug)
export HOME=$(CURDIR)/nonexistent
%:
CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \
LDFLAGS="$(LDFLAGS)" dh --with python2 --buildsystem=python_distutils $*
LDFLAGS="$(LDFLAGS)" dh --with python2,python3 --buildsystem=python_distutils $*
override_dh_auto_build:
dh_auto_build
......@@ -28,26 +26,24 @@ override_dh_auto_build:
override_dh_auto_install:
dh_auto_install --destdir=debian/tmp
set -ex; for python in $(shell py3versions -r); do \
$$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
done;
# Install everything excluding the *_d.so debug extensions to python-subvertpy
dh_install -X"*_d.so" "debian/tmp/*" -p python-subvertpy
# Install the debug extensions to python-subvertpy-dbg
dh_install "debian/tmp/usr/lib/python*/*-packages/subvertpy/*_d.so" -p python-subvertpy-dbg
mkdir -p debian/python-subvertpy/usr/share/doc/python-subvertpy
mv apidocs debian/python-subvertpy/usr/share/doc/python-subvertpy/api
override_dh_installdocs:
dh_installdocs --link-doc=python-subvertpy
dh_install -X"*_d.so" "debian/tmp/usr/lib/python2*/*-packages" -p python-subvertpy
dh_install -X"*_d.so" "debian/tmp/usr/lib/python3*/*-packages" -p python3-subvertpy
mkdir -p debian/python{,3}-subvertpy/usr/share/doc/python-subvertpy
cp -a apidocs debian/python-subvertpy/usr/share/doc/python-subvertpy/api
cp -a apidocs debian/python3-subvertpy/usr/share/doc/python3-subvertpy/api
override_dh_auto_test:
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
set -e -x; \
for py in $(PYVERS); do \
for py in $(PYVERS) $(PY3VERS); do \
cd $(call pythonpath,$$py); python$$py -m testtools.run subvertpy.tests.test_suite ;\
cd $(call pythonpath_dbg,$$py); python$$py-dbg -m testtools.run subvertpy.tests.test_suite ;\
done
endif
override_dh_strip:
ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
dh_strip --dbg-package=python-subvertpy-dbg
endif
dh_strip -p python-subvertpy --dbgsym-migration='python-subvertpy-dbg (<< 0.9.3-1)'
dh_strip -p python3-subvertpy
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment