[py3k] make python3 package available in sid (closes: #82256)

authorSylvain Thénault <sylvain.thenault@logilab.fr>
changeseta447bd42fa33
branchdefault
phasepublic
hiddenno
parent revision#690a4d13f0a3 pkginfo: use setup.py from logilab.common
child revision#b4bafd3e63d6 [fti] simplify postgres configuration (closes: #76944)
files modified by this revision
debian.sid/compat
debian.sid/control
debian.sid/rules
debian.sid/source/format
# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1320659373 -3600
# Mon Nov 07 10:49:33 2011 +0100
# Node ID a447bd42fa33c5f6057e0ddf8e765d702ec4d6be
# Parent 690a4d13f0a362cac20e6137fbbe414174904bf0
[py3k] make python3 package available in sid (closes: #82256)

diff --git a/debian.sid/compat b/debian.sid/compat
@@ -0,0 +1,1 @@
1 +7
diff --git a/debian.sid/control b/debian.sid/control
@@ -0,0 +1,39 @@
2 +Source: logilab-database
3 +Section: python
4 +Priority: optional
5 +Maintainer: Logilab S.A. <contact@logilab.fr>
6 +Uploaders: Alexandre Fayolle <afayolle@debian.org>
7 +Build-Depends: debhelper (>= 7.0.50~), python-all, python3-all
8 +Build-Depends-Indep: python-support, python-epydoc, graphviz
9 +Standards-Version: 3.9.2
10 +Homepage: http://www.logilab.org/project/logilab-database
11 +Vcs-Hg: http://hg.logilab.org/logilab/database
12 +Vcs-Browser: http://hg.logilab.org/logilab/database
13 +
14 +Package: python-logilab-database
15 +Architecture: all
16 +Provides: ${python:Provides}
17 +Depends: ${python:Depends}, ${misc:Depends}, python-logilab-common (>= 0.55.2)
18 +Conflicts: cubicweb-server (< 3.9.0)
19 +Description: true unified databases access
20 + logilab-database provides some classes to make unified access
21 + to different RDBMS possible:
22 + .
23 +  * actually compatible db-api from different drivers
24 +  * extensions functions for common tasks such as creating database, index,
25 +    users, dump and restore, etc...
26 +  * additional api for full text search
27 +
28 +Package: python3-logilab-database
29 +Architecture: all
30 +Provides: ${python:Provides}
31 +Depends: ${python:Depends}, ${misc:Depends}, python3-logilab-common
32 +Description: true unified databases access
33 + logilab-database provides some classes to make unified access
34 + to different RDBMS possible:
35 + .
36 +  * actually compatible db-api from different drivers
37 +  * extensions functions for common tasks such as creating database, index,
38 +    users, dump and restore, etc...
39 +  * additional api for full text search
40 +
diff --git a/debian.sid/rules b/debian.sid/rules
@@ -0,0 +1,42 @@
41 +#!/usr/bin/make -f
42 +# -*- makefile -*-
43 +#
44 +# Copyright (c) 2003-2011 LOGILAB S.A. (Paris, FRANCE).
45 +# http://www.logilab.fr/ -- mailto:contact@logilab.fr
46 +
47 +# Uncomment this to turn on verbose mode.
48 +#export DH_VERBOSE=1
49 +
50 +include /usr/share/python/python.mk
51 +
52 +PYLIB:=$(call py_libdir,$(shell pyversions -d))
53 +PACKAGE:=$(call py_pkgname,python-logilab-database,python)
54 +PYLIB3:=$(call py_libdir,python3.)
55 +PACKAGE3:=$(call py_pkgname,python-logilab-database,python3.)
56 +
57 +%:
58 +	dh $@ --with python2,python3
59 +
60 +override_dh_auto_install:
61 +	NO_SETUPTOOLS=1 python setup.py -q install --no-compile \
62 +					--root=$(CURDIR)/debian/$(PACKAGE)/ \
63 +					${py_setup_install_args}
64 +	NO_SETUPTOOLS=1 python3 setup.py -q install --no-compile \
65 +					--root=$(CURDIR)/debian/$(PACKAGE3)/ \
66 +					${py_setup_install_args}
67 +	# remove sub-package __init__ file
68 +	rm $(CURDIR)/debian/$(PACKAGE)/$(PYLIB)/logilab/__init__.py
69 +	rm $(CURDIR)/debian/$(PACKAGE3)/$(PYLIB3)/logilab/__init__.py
70 +	# remove test directory
71 +	rm -r $(CURDIR)/debian/$(PACKAGE)/$(PYLIB)/logilab/database/test
72 +	rm -r $(CURDIR)/debian/$(PACKAGE3)/$(PYLIB3)/logilab/database/test
73 +
74 +override_dh_auto_test:
75 +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
76 +	# PYTHON 2.X + PYTHON 3.2
77 +endif
78 +
79 +override_dh_installdocs:
80 +	dh_installchangelogs -A -i ChangeLog
81 +	dh_installdocs -A -i README*
82 +
diff --git a/debian.sid/source/format b/debian.sid/source/format
@@ -0,0 +1,1 @@
83 +3.0 (quilt)