Merge lp:~mitya57/ubuntu/raring/python3-defaults/3.3.0-3ubuntu1 into lp:ubuntu/raring/python3-defaults

Proposed by Dmitry Shachnev
Status: Merged
Merged at revision: 65
Proposed branch: lp:~mitya57/ubuntu/raring/python3-defaults/3.3.0-3ubuntu1
Merge into: lp:ubuntu/raring/python3-defaults
Diff against target: 249 lines (+88/-13)
11 files modified
debian/changelog (+48/-0)
debian/control (+1/-1)
debian/control.in (+1/-1)
debpython/build/plugin_distutils.py (+1/-2)
debpython/interpreter.py (+7/-1)
dh_python3 (+3/-2)
dh_python3.rst (+3/-0)
py3clean.rst (+3/-0)
py3compile.rst (+5/-2)
pybuild (+13/-4)
pybuild.rst (+3/-0)
To merge this branch: bzr merge lp:~mitya57/ubuntu/raring/python3-defaults/3.3.0-3ubuntu1
Reviewer Review Type Date Requested Status
Barry Warsaw Pending
Ubuntu branches Pending
Review via email: mp+154723@code.launchpad.net

Description of the change

This merges 3.3.0-3 upload from Debian. Half of changes in that upload are already applied in Ubuntu, another half is only bugfixes. That is also needed for quantal/precise pybuild backport I'm working on (lp:~mitya57/ubuntu/quantal/python3-defaults/pybuild-backport).

Changes that are in 3.3.0-3 but not yet in Ubuntu:

 [ Piotr Ożarowski ]
 * pybuild:
   - distutils plugin: do not skip build in install target
     (ugly workaround for yet another distutils "feature",
     closes: #701137)
   - do not run tests if DEB_BUILD_OPTIONS contains "nocheck"
 * dh_python3:
   - no longer sensitive to trailing slash in private dir names
     (closes: #701215)
 * Bump minimum required dpkg-dev build dependency to 1.16.1~
   (due to architecture.mk in debian/rules)

 [ Dmitry Shachnev ]
 * Added missing docinfo to man pages, to fix a lintian warning
   (Closes: #702777).

 [ Matthias Klose ]
 * dh_python3: Use the multiarch tuple for the host (if DEB_HOST_MULTIARCH
   is set in the environment).

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2013-03-06 18:33:16 +0000
3+++ debian/changelog 2013-03-21 15:07:21 +0000
4@@ -1,3 +1,51 @@
5+python3-defaults (3.3.0-3ubuntu1) UNRELEASED; urgency=low
6+
7+ * Merge with Debian experimental, remaining changes:
8+ - Drop python3.2 as a supported python3 version.
9+ - Make python3-{all,all-dev,all-dbg} Multi-Arch: allowed.
10+ - Move debiandoc-sgml and lsb-release from Build-Depends-Indep to
11+ Build-Depends.
12+ - Build libpython3-all-{dev,dbg} and libpython3-stdlib packages.
13+ - Build-depend on python:any instead of python.
14+
15+ -- Dmitry Shachnev <mitya57@ubuntu.com> Thu, 21 Mar 2013 18:51:30 +0400
16+
17+python3-defaults (3.3.0-3) experimental; urgency=low
18+
19+ [ Piotr Ożarowski ]
20+ * pybuild:
21+ - add --ext-dest-dir (PYBUILD_EXT_DESTDIR) and --ext-pattern
22+ (PYBUILD_EXT_PATTERN) options to move files after install step
23+ - save before/after command logs if quiet mode is on
24+ - do not warn about limiting versions if there's only one
25+ - distutils plugin: do not skip build in install target
26+ (ugly workaround for yet another distutils "feature",
27+ closes: #701137)
28+ - do not run tests if DEB_BUILD_OPTIONS contains "nocheck"
29+ * dh_python3:
30+ - add version range to py3compile in maintainer scripts
31+ - no longer sensitive to trailing slash in private dir names
32+ (closes: #701215)
33+ * Bump minimum required dpkg-dev build dependency to 1.16.1~
34+ (due to architecture.mk in debian/rules)
35+
36+ [ Dmitry Shachnev ]
37+ * Include architecture.mk in debian/rules instead of defining
38+ DEB_HOST_* manually.
39+ * tests/t1: Build-depend on python3-all instead of python-all.
40+ * Make tests work without python-support installed.
41+ * debian/tests/control: Add a dependency on libjs-jquery (test1 contains
42+ a symlink to /usr/share/javascript/jquery/jquery.js).
43+ * Added missing docinfo to man pages, to fix a lintian warning
44+ (Closes: #702777).
45+
46+ [ Matthias Klose ]
47+ * dh_python3: Use the multiarch tuple for the host (if DEB_HOST_MULTIARCH
48+ is set in the environment).
49+ * Add a libpython3-stdlib package (not yet built).
50+
51+ -- Piotr Ożarowski <piotr@debian.org> Sun, 17 Mar 2013 13:47:29 +0100
52+
53 python3-defaults (3.3.0-2ubuntu9) raring; urgency=low
54
55 * Build-depend on python:any instead of python.
56
57=== modified file 'debian/control'
58--- debian/control 2013-03-06 18:33:16 +0000
59+++ debian/control 2013-03-21 15:07:21 +0000
60@@ -4,7 +4,7 @@
61 Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
62 XSBC-Original-Maintainer: Matthias Klose <doko@debian.org>
63 Uploaders: Piotr Ożarowski <piotr@debian.org>, Scott Kitterman <scott@kitterman.com>
64-Build-Depends: debhelper (>= 7.0.50~), python:any, debiandoc-sgml, python-docutils, lsb-release
65+Build-Depends: debhelper (>= 7.0.50~), python:any, debiandoc-sgml, python-docutils, lsb-release, dpkg-dev (>= 1.16.1~)
66 Build-Depends-Indep: libhtml-tree-perl
67 Standards-Version: 3.9.3
68 Homepage: http://www.python.org/
69
70=== modified file 'debian/control.in'
71--- debian/control.in 2013-03-06 18:33:16 +0000
72+++ debian/control.in 2013-03-21 15:07:21 +0000
73@@ -3,7 +3,7 @@
74 Priority: optional
75 Maintainer: Matthias Klose <doko@debian.org>
76 Uploaders: Piotr Ożarowski <piotr@debian.org>, Scott Kitterman <scott@kitterman.com>
77-Build-Depends: debhelper (>= 7.0.50~), python:any, debiandoc-sgml, python-docutils, lsb-release
78+Build-Depends: debhelper (>= 7.0.50~), python:any, debiandoc-sgml, python-docutils, lsb-release, dpkg-dev (>= 1.16.1~)
79 Build-Depends-Indep: libhtml-tree-perl
80 Standards-Version: 3.9.3
81 Homepage: http://www.python.org/
82
83=== modified file 'debpython/build/plugin_distutils.py'
84--- debpython/build/plugin_distutils.py 2013-01-24 15:48:55 +0000
85+++ debpython/build/plugin_distutils.py 2013-03-21 15:07:21 +0000
86@@ -48,8 +48,7 @@
87 '[install]\n',
88 'install-layout=deb\n',
89 'install-lib={}\n'.format(args['install_dir']),
90- 'root={}\n'.format(args['destdir']),
91- 'skip-build=1\n'])
92+ 'root={}\n'.format(args['destdir'])])
93 context['ENV']['HOME'] = args['home_dir']
94 return func(self, context, args, *oargs, **kwargs)
95
96
97=== modified file 'debpython/interpreter.py'
98--- debpython/interpreter.py 2013-01-24 15:48:55 +0000
99+++ debpython/interpreter.py 2013-03-21 15:07:21 +0000
100@@ -19,6 +19,7 @@
101 # THE SOFTWARE.
102
103 import logging
104+import os
105 import re
106 from os.path import join, split
107 from debpython.version import Version
108@@ -339,7 +340,12 @@
109 cmd = 'from distutils import sysconfig as s;'
110 cmd += 'print("__SEP__".join(i or "" ' \
111 'for i in s.get_config_vars("SOABI", "MULTIARCH")))'
112- return self._execute(cmd, version).split('__SEP__')
113+ conf_vars = self._execute(cmd, version).split('__SEP__')
114+ try:
115+ conf_vars[1] = os.environ['DEB_HOST_MULTIARCH']
116+ except KeyError:
117+ pass
118+ return conf_vars
119
120 def _execute(self, command, version=None, cache=True):
121 version = Version(version or self.version)
122
123=== modified file 'dh_python3'
124--- dh_python3 2013-01-24 15:48:55 +0000
125+++ dh_python3 2013-03-21 15:07:21 +0000
126@@ -156,8 +156,9 @@
127 'usr/share/%s', 'usr/share/games/%s')]
128 else:
129 # scan private directory *only*
130- proot = join('debian', package, dname.strip('/'))
131- private_to_check = [dname[1:]]
132+ dname = dname.strip('/')
133+ proot = join('debian', package, dname)
134+ private_to_check = [dname]
135
136 for root, dirs, file_names in os.walk(proot):
137 # ignore Python 2.X locations
138
139=== modified file 'dh_python3.rst'
140--- dh_python3.rst 2013-01-24 15:48:55 +0000
141+++ dh_python3.rst 2013-03-21 15:07:21 +0000
142@@ -6,6 +6,9 @@
143 calculates Python dependencies, adds maintainer scripts to byte compile files, etc.
144 -----------------------------------------------------------------------------------
145
146+:Manual section: 1
147+:Author: Piotr Ożarowski, 2012-2013
148+
149 SYNOPSIS
150 ========
151 dh_python3 -p PACKAGE [-V [X.Y][-][A.B]] DIR [-X REGEXPR]
152
153=== modified file 'py3clean.rst'
154--- py3clean.rst 2012-11-26 09:20:46 +0000
155+++ py3clean.rst 2013-03-21 15:07:21 +0000
156@@ -6,6 +6,9 @@
157 removes .pyc and .pyo files
158 ---------------------------
159
160+:Manual section: 1
161+:Author: Piotr Ożarowski, 2012-2013
162+
163 SYNOPSIS
164 ========
165 py3clean [-V VERSION] [-p PACKAGE] [DIR_OR_FILE]
166
167=== modified file 'py3compile.rst'
168--- py3compile.rst 2012-11-26 09:20:46 +0000
169+++ py3compile.rst 2013-03-21 15:07:21 +0000
170@@ -1,11 +1,14 @@
171-===========
172+============
173 py3compile
174-===========
175+============
176
177 ----------------------------------
178 byte compile Python 3 source files
179 ----------------------------------
180
181+:Manual section: 1
182+:Author: Piotr Ożarowski, 2012-2013
183+
184 SYNOPSIS
185 ========
186 py3compile [-V [X.Y][-][A.B]] DIR_OR_FILE [-X REGEXPR]
187
188=== modified file 'pybuild'
189--- pybuild 2013-01-24 15:48:55 +0000
190+++ pybuild 2013-03-21 15:07:21 +0000
191@@ -46,6 +46,10 @@
192 print(name, '\t', Plugin.DESCRIPTION)
193 exit(0)
194
195+ nocheck = False
196+ if 'DEB_BUILD_OPTIONS' in environ:
197+ nocheck = 'nocheck' in environ['DEB_BUILD_OPTIONS']
198+
199 if cfg.system:
200 certainty = 99
201 Plugin = build.plugins.get(cfg.system)
202@@ -63,9 +67,12 @@
203 log.warn('cannot initialize %s plugin: %s', Plugin.NAME,
204 err, exc_info=cfg.verbose)
205 continue
206- tmp_context = {'ENV': environ.copy(), 'args': {}, 'dir': cfg.dir}
207- tmp_context['ENV'].update({'LC_ALL': 'C',
208- 'http_proxy': 'http://127.0.0.1:9/'})
209+ env = environ.copy()
210+ if 'LC_ALL' not in env:
211+ env['LC_ALL'] = 'C'
212+ if 'http_proxy' not in env:
213+ env['http_proxy'] = 'http://127.0.0.1:9/'
214+ tmp_context = {'ENV': env, 'args': {}, 'dir': cfg.dir}
215 tmp_certainty = tmp_plugin.detect(tmp_context)
216 if tmp_certainty and tmp_certainty > certainty:
217 plugin, certainty, context = tmp_plugin, tmp_certainty, tmp_context
218@@ -217,6 +224,8 @@
219 ### one function for each interpreter at a time mode ###
220 if func:
221 step = func.__func__.__name__
222+ if step == 'test' and nocheck:
223+ exit(0)
224 for interpreter in cfg.interpreter:
225 iversions = versions
226 if '{version}' not in interpreter and len(versions) > 1:
227@@ -273,7 +282,7 @@
228 if ext_destdir:
229 move_matching_files(c['destdir'], ext_destdir,
230 get_option('ext_pattern', i, version))
231- if not is_disabled('test', i, version):
232+ if not nocheck and not is_disabled('test', i, version):
233 run(plugin.test, i, version, c)
234 except Exception as err:
235 log.error('plugin %s failed: %s', plugin.NAME, err,
236
237=== modified file 'pybuild.rst'
238--- pybuild.rst 2013-01-24 15:48:55 +0000
239+++ pybuild.rst 2013-03-21 15:07:21 +0000
240@@ -6,6 +6,9 @@
241 invokes various build systems for requested Python versions in order to build modules and extensions
242 ----------------------------------------------------------------------------------------------------
243
244+:Manual section: 1
245+:Author: Piotr Ożarowski, 2012-2013
246+
247 SYNOPSIS
248 ========
249 pybuild [ACTION] [BUILD SYSTEM ARGUMENTS] [DIRECTORIES] [OPTIONS]

Subscribers

People subscribed via source and target branches