Merge lp:~coreygoldberg/uci-tests/ucitests-py3-packaging into lp:~canonical-ci-engineering/uci-tests/trunk

Proposed by Corey Goldberg
Status: Needs review
Proposed branch: lp:~coreygoldberg/uci-tests/ucitests-py3-packaging
Merge into: lp:~canonical-ci-engineering/uci-tests/trunk
Diff against target: 130 lines (+62/-8)
7 files modified
NEWS.rst (+1/-0)
debian/changelog (+6/-0)
debian/control (+40/-6)
debian/python-uci-tests.install (+1/-0)
debian/python3-uci-tests.install (+1/-0)
debian/rules (+12/-2)
debian/uci-tests-cli.install (+1/-0)
To merge this branch: bzr merge lp:~coreygoldberg/uci-tests/ucitests-py3-packaging
Reviewer Review Type Date Requested Status
Corey Goldberg (community) Needs Resubmitting
Vincent Ladeuil (community) Needs Fixing
Barry Warsaw (community) Needs Fixing
Review via email: mp+234996@code.launchpad.net

Commit message

updates to packaging to support Python 3

Description of the change

updates to packaging to support Python 3.

To post a comment you must log in.
Revision history for this message
Corey Goldberg (coreygoldberg) wrote :

Notes:

I am getting some warnings during build. Should I be concerned with these?:

* dpkg-gencontrol: warning: Depends field of package python-uci-tests: unknown substitution variable ${python:Depends}
* dpkg-gencontrol: warning: Depends field of package python3-uci-tests: unknown substitution variable ${python:Depends}
* dpkg-deb: warning: 'debian/python-uci-tests/DEBIAN/control' contains user-defined field 'Original-Maintainer'
* dpkg-deb: warning: 'debian/python3-uci-tests/DEBIAN/control' contains user-defined field 'Original-Maintainer'

and I get the following errors/warnings when it runs lintian:

W: uci-tests source: out-of-date-standards-version 3.9.4 (current is 3.9.5)
E: python-uci-tests: copyright-should-refer-to-common-license-file-for-gpl
E: python-uci-tests: extended-description-is-empty
W: python-uci-tests: empty-binary-package
E: python3-uci-tests: copyright-should-refer-to-common-license-file-for-gpl
E: python3-uci-tests: extended-description-is-empty
W: python3-uci-tests: empty-binary-package

Revision history for this message
Vincent Ladeuil (vila) wrote :

> I am getting some warnings during build. Should I be concerned with these?:

No idea ;) But since they are the same for both versions I think it's ok. Someone with more packaging-fu than me will have to tell us ;)

> and I get the following errors/warnings when it runs lintian:

No idea here either but fixes highly welcome ;)

Some more comments inline, the most important one is that trunk wasn't up-to-date and should merge with it first thing.

review: Needs Fixing
140. By Corey Goldberg

updated build rules for py3

141. By Corey Goldberg

merged trunk and fixed conflicts

142. By Corey Goldberg

make unc-run-tests3 script for py3

143. By Corey Goldberg

update packaging

Revision history for this message
Corey Goldberg (coreygoldberg) wrote :

fixed build errors I was getting. I was missing *.install files for packaging a 2/3 bilingual package.
packaging should be good to go... though it obviously fails on py3 auto_tests tests since I am just getting to porting that code (in followup MPs).

144. By Corey Goldberg

update to packaging, remove shebang from console script

145. By Corey Goldberg

packaing updates

146. By Corey Goldberg

packaging updates

147. By Corey Goldberg

typo

Revision history for this message
Barry Warsaw (barry) wrote :

Generally don't worry about the warnings, but do worry about the lintian errors.

Revision history for this message
Barry Warsaw (barry) wrote :

I think 3.9.5 is the expected version for Ubuntu, though Debian now has 3.9.6. You probably won't have any problems, but do review the checklist before bumping: https://www.debian.org/doc/packaging-manuals/upgrading-checklist.txt

You probably want to adopt DEP-5: http://dep.debian.net/deps/dep5/

empty-binary-package is probably the biggest problem, and that indicates packaging bugs. I'll look more closely and try a local build.

Revision history for this message
Barry Warsaw (barry) wrote :

A few reviewy comments.

Revision history for this message
Barry Warsaw (barry) :
Revision history for this message
Barry Warsaw (barry) wrote :

Looks like you also need explicit B-D on python-setuptools and python3-setuptools

Revision history for this message
Barry Warsaw (barry) wrote :

Tests fail:

Traceback (most recent call last):
  File "uci-run-tests", line 24, in <module>
    sys.exit(runners.cli_run())
  File "/«PKGBUILDDIR»/ucitests/runners.py", line 114, in cli_run
    modules=ns.modules)
  File "/«PKGBUILDDIR»/ucitests/runners.py", line 139, in load_tests
    loader = loaders.Loader()
  File "/«PKGBUILDDIR»/ucitests/loaders.py", line 86, in __init__
    root = kwargs.pop('root', os.getcwdu())
AttributeError: 'module' object has no attribute 'getcwdu'

Where does getcwdu() come from?

review: Needs Fixing
148. By Corey Goldberg

added dh_python for using pybuild

149. By Corey Goldberg

disable py3 tests

150. By Corey Goldberg

fix d/rules

151. By Corey Goldberg

fixed packaging

152. By Corey Goldberg

readded d/install files

153. By Corey Goldberg

fixed package installs

154. By Corey Goldberg

re-added shebang

155. By Corey Goldberg

shortened descriptions in d/control

156. By Corey Goldberg

shortened descriptions in d/control again

157. By Corey Goldberg

fixed lintian errors in d/control

158. By Corey Goldberg

fixed d/control description

159. By Corey Goldberg

fix lintian errors in packaging

160. By Corey Goldberg

fix whitespace in d/control

Revision history for this message
Vincent Ladeuil (vila) wrote :

Thanks for the hard work !

A few comments inline, this is going in the right direction but I have few remarks.

Also, thanks a ton for your attention to details regarding the typos but can you make a separate MP for that so we keep the focus here on the packaging ?

review: Needs Fixing
161. By Corey Goldberg

updated changelog comment

162. By Corey Goldberg

revert typos

163. By Corey Goldberg

revert typo

164. By Corey Goldberg

revert whitespace

165. By Corey Goldberg

revert whitespace again

166. By Corey Goldberg

revert whitespace again

Revision history for this message
Corey Goldberg (coreygoldberg) wrote :

removed extra whitespace and typo fixes to concentrate on packaging

167. By Corey Goldberg

added run-uci-tests2 for migration path

168. By Corey Goldberg

added current path

169. By Corey Goldberg

py3 fix

170. By Corey Goldberg

fix install

171. By Corey Goldberg

missing comma in B-D

172. By Corey Goldberg

fix dh_auto_test

Revision history for this message
Corey Goldberg (coreygoldberg) wrote :

now creating a python2 version of named run-uci-tests2, as a migration path for current CI... per conversation with vila.

review: Needs Resubmitting

Unmerged revisions

172. By Corey Goldberg

fix dh_auto_test

171. By Corey Goldberg

missing comma in B-D

170. By Corey Goldberg

fix install

169. By Corey Goldberg

py3 fix

168. By Corey Goldberg

added current path

167. By Corey Goldberg

added run-uci-tests2 for migration path

166. By Corey Goldberg

revert whitespace again

165. By Corey Goldberg

revert whitespace again

164. By Corey Goldberg

revert whitespace

163. By Corey Goldberg

revert typo

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'NEWS.rst'
--- NEWS.rst 2014-09-17 16:12:18 +0000
+++ NEWS.rst 2014-09-30 15:58:14 +0000
@@ -7,6 +7,7 @@
7dev7dev
8===8===
99
10* Add packaging for Python3.
1011
110.1.4120.1.4
12=====13=====
1314
=== modified file 'debian/changelog'
--- debian/changelog 2014-07-31 09:39:27 +0000
+++ debian/changelog 2014-09-30 15:58:14 +0000
@@ -1,3 +1,9 @@
1uci-tests (0.1.5) UNRELEASED; urgency=medium
2
3 * Added packaging code for Python 3.x.
4
5 -- Corey Goldberg <corey.goldberg@canonical.com> Tue, 16 Sep 2014 17:38:11 -0400
6
1uci-tests (0.1.4) precise; urgency=medium7uci-tests (0.1.4) precise; urgency=medium
28
3 * Flush all output from the test result.9 * Flush all output from the test result.
410
=== modified file 'debian/control'
--- debian/control 2014-04-20 11:26:43 +0000
+++ debian/control 2014-09-30 15:58:14 +0000
@@ -3,13 +3,21 @@
3Priority: optional3Priority: optional
4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5XSBC-Original-Maintainer: Vincent Ladeuil <vila+ci@canonical.com>5XSBC-Original-Maintainer: Vincent Ladeuil <vila+ci@canonical.com>
6Build-Depends: pep8,6Build-Depends: debhelper (>= 9),
7 dh-python,
8 pep8,
7 pyflakes,9 pyflakes,
10 python-all,
11 python-setuptools,
8 python-subunit,12 python-subunit,
9 python-testtools, 13 python-testtools,
10 python-all,14 python3-all,
11 debhelper (>= 9)15 python3-setuptools,
12Standards-Version: 3.9.416 python3-subunit,
17 python3-testtools
18Standards-Version: 3.9.5
19X-Python-Version: >= 2.7
20X-Python3-Version: >= 3.2
13XS-Testsuite: autopkgtest21XS-Testsuite: autopkgtest
1422
15Package: python-uci-tests23Package: python-uci-tests
@@ -20,4 +28,30 @@
20 python-testtools,28 python-testtools,
21 ${misc:Depends},29 ${misc:Depends},
22 ${python:Depends}30 ${python:Depends}
23Description: Ubuntu Continuous Integration test tools.31Description: Ubuntu Continuous Integration test tools for Python.
32 This is the Python 2 version.
33
34Package: python3-uci-tests
35Architecture: all
36Depends: pep8,
37 pyflakes,
38 python3-subunit,
39 python3-testtools,
40 ${misc:Depends},
41 ${python3:Depends}
42Description: Ubuntu Continuous Integration test tools for Python.
43 This is the Python 3 version.
44
45Package: uci-tests-cli
46Architecture: all
47Depends: pep8,
48 pyflakes,
49 python-subunit,
50 python-testtools,
51 python3-subunit,
52 python3-testtools,
53 ${misc:Depends},
54 ${python:Depends},
55 ${python3:Depends}
56Description: Ubuntu Continuous Integration test tools
57 This provides the ``uci-run-tests`` command-line interface.
2458
=== added file 'debian/python-uci-tests.install'
--- debian/python-uci-tests.install 1970-01-01 00:00:00 +0000
+++ debian/python-uci-tests.install 2014-09-30 15:58:14 +0000
@@ -0,0 +1,1 @@
1usr/lib/python2*
02
=== added file 'debian/python3-uci-tests.install'
--- debian/python3-uci-tests.install 1970-01-01 00:00:00 +0000
+++ debian/python3-uci-tests.install 2014-09-30 15:58:14 +0000
@@ -0,0 +1,1 @@
1usr/lib/python3*
02
=== modified file 'debian/rules'
--- debian/rules 2014-01-28 15:14:15 +0000
+++ debian/rules 2014-09-30 15:58:14 +0000
@@ -2,7 +2,17 @@
2#export DH_VERBOSE=12#export DH_VERBOSE=1
33
4%:4%:
5 dh "$@" --with python25 dh $@ --with python2,python3 --buildsystem=pybuild
66
7override_dh_auto_test:7override_dh_auto_test:
8 ./uci-run-tests8 python uci-run-tests
9 # TODO: add py3 tests once code is ported:
10 # python3 uci-run-tests
11
12override_dh_install:
13 dh_install
14 cp debian/uci-tests-cli/usr/bin/uci-run-tests debian/uci-tests-cli/usr/bin/uci-run-tests2
15
16override_dh_python3:
17 dh_python3 --shebang /usr/bin/python3
18
919
=== added file 'debian/uci-tests-cli.install'
--- debian/uci-tests-cli.install 1970-01-01 00:00:00 +0000
+++ debian/uci-tests-cli.install 2014-09-30 15:58:14 +0000
@@ -0,0 +1,1 @@
1usr/bin/uci-run-tests

Subscribers

People subscribed via source and target branches