Merge lp:~glatzor/software-properties/python3 into lp:software-properties

Proposed by Sebastian Heinlein
Status: Needs review
Proposed branch: lp:~glatzor/software-properties/python3
Merge into: lp:software-properties
Diff against target: 140 lines (+54/-10)
7 files modified
debian/changelog (+10/-0)
debian/control (+21/-2)
debian/python-software-properties.install (+1/-1)
debian/python3-software-properties.install (+1/-0)
debian/rules (+16/-1)
setup.cfg (+3/-0)
setup.py (+2/-6)
To merge this branch: bzr merge lp:~glatzor/software-properties/python3
Reviewer Review Type Date Requested Status
Barry Warsaw (community) Needs Fixing
Review via email: mp+105755@code.launchpad.net

Description of the change

Basic Python3 "port" to provide the depedencies of aptdaemon only.

To post a comment you must log in.
Revision history for this message
Barry Warsaw (barry) wrote :

I had to add Build-Deps for python-setuptools and python3-setuptools in order for the branch to build correctly.

Also, while I'm glad the tests are run, I'm wondering why you chose to run them during source package build, and in the .bzr-builddeb/defaults.conf file instead of the debian/rules file? What do you think about moving the tests to rules and running them at binary package build time?

Other than that, this looks pretty good. Since it's required for python3 support in aptdaemon, I'd be fine if you fixed these small issues and uploaded the new package. Thanks!

review: Needs Fixing
757. By Sebastian Heinlein

Add build dependency on setuptools

758. By Sebastian Heinlein

* debian/control:
  - Add new package python3-software-properties
  - Add build dependencies on setuptools and python3

Unmerged revisions

758. By Sebastian Heinlein

* debian/control:
  - Add new package python3-software-properties
  - Add build dependencies on setuptools and python3

757. By Sebastian Heinlein

Add build dependency on setuptools

756. By Sebastian Heinlein

Update changelog

755. By Sebastian Heinlein

Add a new python3-software-properties package (which is required by aptdaemon)

754. By Sebastian Heinlein

Update debian/rules to also make a Python3 build

753. By Sebastian Heinlein

Switch to setuptools to get 2to3

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 2012-04-25 19:47:49 +0000
3+++ debian/changelog 2012-06-02 09:47:18 +0000
4@@ -1,3 +1,13 @@
5+software-properties (0.82.7.2) UNRELEASED; urgency=low
6+
7+ [Sebastian Heinlein]
8+ * debian/rules: Build with Python 2 and 3
9+ * debian/control:
10+ - Add new package python3-software-properties
11+ - Add build dependencies on setuptools and python3
12+
13+ -- Sebastian Heinlein <glatzor@ubuntu.com> Fri, 11 May 2012 16:10:21 +0200
14+
15 software-properties (0.82.7.1) precise-proposed; urgency=low
16
17 * manually shift the policy index to work around wrong upgrade policy being
18
19=== modified file 'debian/control'
20--- debian/control 2012-03-13 18:12:53 +0000
21+++ debian/control 2012-06-02 09:47:18 +0000
22@@ -7,21 +7,40 @@
23 scrollkeeper,
24 intltool,
25 python-all (>= 2.6.6-3~),
26+ python-setuptools,
27 python-distutils-extra (>= 1.90),
28- dh-translations
29+ python3-all,
30+ python3-setuptools,
31+ python3-distutils-extra,
32+ dh-translations,
33 Standards-Version: 3.9.1
34 Vcs-Bzr: http://code.launchpad.net/~ubuntu-core-dev/software-properties/main
35
36+Package: python3-software-properties
37+Section: python
38+Architecture: all
39+Depends: ${python3:Depends}, ${misc:Depends}, python, python-apt (>=
40+ 0.6.20ubuntu16), lsb-release, python-gnupginterface,
41+ unattended-upgrades, iso-codes, python-pycurl
42+Description: manage the repositories that you install software from (Python 3)
43+ This software provides an abstraction of the used apt repositories.
44+ It allows you to easily manage your distribution and independent software
45+ vendor software sources.
46+ .
47+ This is the Python 3 version of the package.
48+
49 Package: python-software-properties
50 Section: python
51 Architecture: all
52 Depends: ${python:Depends}, ${misc:Depends}, python, python-apt (>=
53 0.6.20ubuntu16), lsb-release, python-gnupginterface,
54 unattended-upgrades, iso-codes, python-pycurl
55-Description: manage the repositories that you install software from
56+Description: manage the repositories that you install software from (Python 2)
57 This software provides an abstraction of the used apt repositories.
58 It allows you to easily manage your distribution and independent software
59 vendor software sources.
60+ .
61+ This is the Python 3 version of the package.
62
63 Package: software-properties-common
64 Architecture: all
65
66=== modified file 'debian/python-software-properties.install'
67--- debian/python-software-properties.install 2010-03-26 13:03:42 +0000
68+++ debian/python-software-properties.install 2012-06-02 09:47:18 +0000
69@@ -1,3 +1,3 @@
70-debian/tmp/usr/lib/python*/*-packages/softwareproperties/*py
71+debian/tmp/usr/lib/python2.*/*-packages/softwareproperties/*py
72 debian/tmp/usr/share/locale/*
73 debian/tmp/usr/bin/add-apt-repository
74
75=== added file 'debian/python3-software-properties.install'
76--- debian/python3-software-properties.install 1970-01-01 00:00:00 +0000
77+++ debian/python3-software-properties.install 2012-06-02 09:47:18 +0000
78@@ -0,0 +1,1 @@
79+debian/tmp/usr/lib/python3/*-packages/softwareproperties/*py
80
81=== modified file 'debian/rules'
82--- debian/rules 2011-11-21 15:47:12 +0000
83+++ debian/rules 2012-06-02 09:47:18 +0000
84@@ -1,4 +1,19 @@
85 #!/usr/bin/make -f
86
87+#DH_VERBOSE=1
88+
89+PYTHON2=$(shell pyversions -vr)
90+PYTHON3=$(shell py3versions -vr)
91+
92 %:
93- dh $@ --with python2,translations
94+ dh $@ --with=python2,python3,translations
95+
96+install-python%:
97+ python$* setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb
98+
99+override_dh_auto_install: $(PYTHON3:%=install-python%)
100+ dh_auto_install
101+
102+override_dh_auto_clean:
103+ dh_auto_clean
104+ rm -rf build *.egg-info
105
106=== modified file 'setup.cfg'
107--- setup.cfg 2011-07-11 10:48:09 +0000
108+++ setup.cfg 2012-06-02 09:47:18 +0000
109@@ -1,3 +1,6 @@
110+[build]
111+i18n=True
112+icons=True
113
114 [build_i18n]
115 domain=software-properties
116
117=== modified file 'setup.py'
118--- setup.py 2011-07-11 11:53:17 +0000
119+++ setup.py 2012-06-02 09:47:18 +0000
120@@ -1,9 +1,8 @@
121 #!/usr/bin/env python
122
123-from distutils.core import setup
124+from setuptools import setup
125 import glob
126 import os
127-from DistUtilsExtra.command import *
128
129 setup(name='software-properties',
130 version='0.60',
131@@ -35,8 +34,5 @@
132 ['software-properties-dbus', ]
133 ),
134 ],
135- cmdclass = { "build" : build_extra.build_extra,
136- "build_i18n" : build_i18n.build_i18n,
137-# "build_help" : build_help.build_help,
138- "build_icons" : build_icons.build_icons }
139+ use_2to3=True,
140 )

Subscribers

People subscribed via source and target branches

to status/vote changes: