Merge ~paride/jenkins-launchpad-plugin:packaging into jenkins-launchpad-plugin:master

Proposed by Paride Legovini
Status: Merged
Merged at revision: 7688565718317943f6a652c7597506826af8a486
Proposed branch: ~paride/jenkins-launchpad-plugin:packaging
Merge into: jenkins-launchpad-plugin:master
Diff against target: 363 lines (+89/-58)
17 files modified
debian/.gitignore (+1/-0)
debian/changelog (+9/-1)
debian/clean (+3/-0)
debian/control (+47/-26)
debian/copyright (+2/-3)
debian/gbp.conf (+2/-0)
debian/jenkins-launchpad-plugin-doc.doc-base (+7/-0)
debian/jenkins-launchpad-plugin-doc.docs (+1/-0)
debian/jenkins-launchpad-plugin.docs (+0/-3)
debian/jenkins-launchpad-plugin.examples (+1/-0)
debian/jenkins-launchpad-plugin.install (+1/-0)
debian/rules (+4/-11)
debian/source/format (+1/-0)
debian/source/lintian-overrides (+2/-0)
dev/null (+0/-9)
jlp/__init__.py (+5/-3)
setup.py (+3/-2)
Reviewer Review Type Date Requested Status
Joshua Powers (community) Approve
Review via email: mp+376841@code.launchpad.net

Commit message

Update the packaging for the Py3 version

Changes:
 - Install the templates in /usr/share
 - Delete the scrips/ directory (not needed)
 - Rename the 'dput' tool to 'jlp-dput'
 - Update debian/*

To post a comment you must log in.
Revision history for this message
Joshua Powers (powersj) :
review: Approve
Revision history for this message
Paride Legovini (paride) wrote :

This will go in the same PPA where I'm putting the Tarmac test builds, as jlp has tarmac as a dependency:

  sudo add-apt-repository ppa:legovini/tarmac-test

The package is currently being built.

On the version number: I'm planning to apply the same format we decide for Tarmac (YYYYMMDD.n or a similar date based version string).

NOTE that I renamed the 'dput' tool to 'jlp-dput'. Was there a reason to chose the same name as the "real" dput tool? Thoughts?

Revision history for this message
Paride Legovini (paride) wrote :

I'd like to have a final "approve" given that I explicitly pointed out the dput rename after the approval commentl

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/.gitignore b/debian/.gitignore
2new file mode 100644
3index 0000000..4ba9e3e
4--- /dev/null
5+++ b/debian/.gitignore
6@@ -0,0 +1 @@
7+*.debhelper.log
8diff --git a/debian/changelog b/debian/changelog
9index 3896a16..6182378 100644
10--- a/debian/changelog
11+++ b/debian/changelog
12@@ -1,6 +1,14 @@
13+jenkins-launchpad-plugin (19.1-1) UNRELEASED; urgency=medium
14+
15+ * Switch to Python 3.
16+ * Refactoring of the packaging.
17+ * Rename 'dput' to 'jlp-dput' to avoid the file name clash.
18+
19+ -- Paride Legovini <paride.legovini@canonical.com> Mon, 16 Dec 2019 15:59:31 +0100
20+
21 jenkins-launchpad-plugin (0.1.1) trusty; urgency=medium
22
23- * Add support for patching URLs when reading jenkins data behind a proxy.
24+ * Add support for patching URLs when reading jenkins data behind a proxy.
25
26 -- Francis Ginther <francis.ginther@canonical.com> Mon, 14 Dec 2015 10:08:24 -0600
27
28diff --git a/debian/clean b/debian/clean
29new file mode 100644
30index 0000000..3badde7
31--- /dev/null
32+++ b/debian/clean
33@@ -0,0 +1,3 @@
34+*.egg-info/
35+docs/_static/
36+dist/
37diff --git a/debian/compat b/debian/compat
38deleted file mode 100644
39index ec63514..0000000
40--- a/debian/compat
41+++ /dev/null
42@@ -1 +0,0 @@
43-9
44diff --git a/debian/control b/debian/control
45index ea975c9..ebea72a 100644
46--- a/debian/control
47+++ b/debian/control
48@@ -2,35 +2,56 @@ Source: jenkins-launchpad-plugin
49 Section: misc
50 Priority: optional
51 Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
52-XSBC-Original-Maintainer: Martin Mrazik <martin.mrazik@canonical.com>
53-Build-Depends: debhelper (>= 9),
54- tarmac,
55- python-launchpadlib,
56- python-bzrlib,
57- python-mock,
58- python-testtools,
59- python-jenkins,
60- python-lockfile,
61- python-testscenarios,
62- python-setuptools,
63- python-junitxml,
64- python-coverage,
65- python-autopilot,
66- python-yaml,
67- python-sphinx,
68-Standards-Version: 3.9.4
69+XSBC-Original-Maintainer: Paride Legovini <paride.legovini@canonical.com>
70+Build-Depends: debhelper-compat (= 12),
71+ dh-python,
72+ python3-all,
73+ python3-autopilot,
74+ python3-breezy,
75+ python3-git,
76+ python3-jinja2,
77+ python3-launchpadlib,
78+ python3-testtools,
79+ python3-jenkins,
80+ python3-lockfile,
81+ python3-testscenarios,
82+ python3-setuptools,
83+ python3-tarmac,
84+ python3-yaml,
85+ python3-sphinx,
86+Standards-Version: 4.4.1
87 Homepage: https://launchpad.net/jenkins-launchpad-plugin
88+Rules-Requires-Root: no
89
90 Package: jenkins-launchpad-plugin
91 Architecture: all
92+Multi-Arch: foreign
93 Depends: ${misc:Depends},
94- ${python:Depends},
95- python-minimal,
96- tarmac,
97- python-jenkins,
98- python-launchpadlib,
99- python-lockfile,
100- python-bzrlib,
101- python-yaml,
102-Description: Scripts for integrating launchpad merge proposals workflow with jenkins
103+ ${python3:Depends},
104+ python3-git,
105+ python3-breezy,
106+ python3-jenkins,
107+ python3-launchpadlib,
108+ python3-lockfile,
109+ python3-tarmac,
110+ python3-yaml,
111+Suggests: jenkins-launchpad-plugin-doc,
112+ tarmac,
113+Description: Scripts for integrating Launchpad merge proposals workflow Jenkins
114+ jenkins-launchpad-plugin is a set of scripts for polling Launchpad (looking
115+ for new merge proposals) and for updating launchpad merge proposals with
116+ different messages and votes in a CI workflow based on Jenkins.
117
118+Package: jenkins-launchpad-plugin-doc
119+Section: doc
120+Architecture: all
121+Multi-Arch: foreign
122+Depends: ${misc:Depends},
123+ ${sphinxdoc:Depends},
124+Built-Using: ${sphinxdoc:Built-Using}
125+Description: Scripts for integrating Launchpad merge proposals with Jenkins (documentation)
126+ jenkins-launchpad-plugin is a set of scripts for polling Launchpad (looking
127+ for new merge proposals) and for updating launchpad merge proposals with
128+ different messages and votes in a CI workflow based on Jenkins.
129+ .
130+ This package contains the HTML documentation.
131diff --git a/debian/copyright b/debian/copyright
132index 3bc456a..a949755 100644
133--- a/debian/copyright
134+++ b/debian/copyright
135@@ -1,9 +1,9 @@
136-Format: http://dep.debian.net/deps/dep5
137+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
138 Upstream-Name: jenkins-launchpad-plugin
139 Source: https://launchpad.net/jenkins-launchpad-plugin
140
141 Files: *
142-Copyright: 2013 Canonical
143+Copyright: 2013-2019 Canonical Ltd.
144 License: GPL-3.0
145
146 License: GPL-3.0
147@@ -21,4 +21,3 @@ License: GPL-3.0
148 .
149 On Debian systems, the complete text of the GNU General
150 Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
151-
152diff --git a/debian/gbp.conf b/debian/gbp.conf
153new file mode 100644
154index 0000000..1aff5b7
155--- /dev/null
156+++ b/debian/gbp.conf
157@@ -0,0 +1,2 @@
158+[DEFAULT]
159+upstream-tree=SLOPPY
160diff --git a/debian/jenkins-launchpad-plugin-doc.doc-base b/debian/jenkins-launchpad-plugin-doc.doc-base
161new file mode 100644
162index 0000000..5f4101b
163--- /dev/null
164+++ b/debian/jenkins-launchpad-plugin-doc.doc-base
165@@ -0,0 +1,7 @@
166+Document: jenkins-launchpad-plugin-doc
167+Title: Jenkins Launchpad Plugin documentation
168+Section: Programming/Project Management
169+
170+Format: HTML
171+Index: /usr/share/doc/jenkins-launchpad-plugin/html/index.html
172+Files: /usr/share/doc/jenkins-launchpad-plugin/html/*
173diff --git a/debian/jenkins-launchpad-plugin-doc.docs b/debian/jenkins-launchpad-plugin-doc.docs
174new file mode 100644
175index 0000000..6d28621
176--- /dev/null
177+++ b/debian/jenkins-launchpad-plugin-doc.docs
178@@ -0,0 +1 @@
179+build/html
180diff --git a/debian/jenkins-launchpad-plugin.docs b/debian/jenkins-launchpad-plugin.docs
181index 39b99d0..e845566 100644
182--- a/debian/jenkins-launchpad-plugin.docs
183+++ b/debian/jenkins-launchpad-plugin.docs
184@@ -1,4 +1 @@
185-docs/_build/html
186 README
187-HACKING
188-jlp.config
189diff --git a/debian/jenkins-launchpad-plugin.examples b/debian/jenkins-launchpad-plugin.examples
190new file mode 100644
191index 0000000..db740e4
192--- /dev/null
193+++ b/debian/jenkins-launchpad-plugin.examples
194@@ -0,0 +1 @@
195+jlp.config
196diff --git a/debian/jenkins-launchpad-plugin.install b/debian/jenkins-launchpad-plugin.install
197new file mode 100644
198index 0000000..73752c9
199--- /dev/null
200+++ b/debian/jenkins-launchpad-plugin.install
201@@ -0,0 +1 @@
202+usr
203diff --git a/debian/rules b/debian/rules
204index 0b8a99b..2aabdd4 100755
205--- a/debian/rules
206+++ b/debian/rules
207@@ -1,16 +1,9 @@
208 #!/usr/bin/make -f
209+
210 %:
211- dh $@ --with python2
212+ dh $@ --with python3,sphinxdoc --buildsystem=pybuild
213
214 override_dh_auto_build:
215- sphinx-build -b html -W docs/ docs/_build/html
216 dh_auto_build
217-
218-override_dh_auto_test:
219- python -m coverage run -p /usr/bin/autopilot run -o test_results.xml -f xml tests
220- python -m coverage combine
221- python -m coverage xml --omit '/usr*,tests*'
222-
223-
224-override_dh_install:
225- dh_install --fail-missing
226+ mkdir docs/_static
227+ sphinx-build -W -b html docs/ build/html
228diff --git a/debian/source/format b/debian/source/format
229new file mode 100644
230index 0000000..163aaf8
231--- /dev/null
232+++ b/debian/source/format
233@@ -0,0 +1 @@
234+3.0 (quilt)
235diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides
236new file mode 100644
237index 0000000..2c3bf10
238--- /dev/null
239+++ b/debian/source/lintian-overrides
240@@ -0,0 +1,2 @@
241+# The pakage format switched from native to quilt.
242+jenkins-launchpad-plugin source: odd-historical-debian-changelog-version 0.1*
243diff --git a/jlp/__init__.py b/jlp/__init__.py
244index 9802aea..7dd8434 100644
245--- a/jlp/__init__.py
246+++ b/jlp/__init__.py
247@@ -8,7 +8,7 @@ jlp
248 """
249
250 __name__ = 'jlp'
251-__version__ = '3.1'
252+__version__ = '19.1'
253 __author__ = 'Martin Mrazik'
254
255 import jinja2
256@@ -87,8 +87,10 @@ def set_log_level(logger, stdout_handler):
257
258
259 def get_jinja_environment(extra_dir=None):
260- default_templates = '/'.join(__file__.split('/')[0:-2]) + '/templates'
261- templates = [default_templates]
262+ default_templates = '/usr/share/jenkins-launchpad-plugin/templates'
263+ dist_templates = '/'.join(__file__.split('/')[0:-2]) + '/templates'
264+
265+ templates = [dist_templates, default_templates]
266 if extra_dir:
267 # we load the arg templates first
268 # then add in any missing templates from the defaults
269diff --git a/scripts/autoland b/scripts/autoland
270deleted file mode 100755
271index 6279088..0000000
272--- a/scripts/autoland
273+++ /dev/null
274@@ -1,9 +0,0 @@
275-#!/usr/bin/env python3
276-import sys
277-# this is to keep backwards compatibility with deployments directly from
278-# bzr branch
279-sys.path.append('.') # add local directory
280-from jlp.commands.autoland import autoland
281-
282-if __name__ == "__main__":
283- sys.exit(autoland())
284diff --git a/scripts/dput b/scripts/dput
285deleted file mode 100755
286index 7bef560..0000000
287--- a/scripts/dput
288+++ /dev/null
289@@ -1,9 +0,0 @@
290-#!/usr/bin/env python3
291-import sys
292-# this is to keep backwards compatibility with deployments directly from
293-# bzr branch
294-sys.path.append('.') # add local directory
295-from jlp.commands.dput import dput
296-
297-if __name__ == "__main__":
298- sys.exit(dput())
299diff --git a/scripts/getMergeProposals b/scripts/getMergeProposals
300deleted file mode 100755
301index c2b072b..0000000
302--- a/scripts/getMergeProposals
303+++ /dev/null
304@@ -1,9 +0,0 @@
305-#!/usr/bin/env python3
306-import sys
307-# this is to keep backwards compatibility with deployments directly from
308-# bzr branch
309-sys.path.append('.') # add local directory
310-from jlp.commands.getMergeProposals import getMergeProposals
311-
312-if __name__ == "__main__":
313- sys.exit(getMergeProposals())
314diff --git a/scripts/launchpadTrigger b/scripts/launchpadTrigger
315deleted file mode 100755
316index 28aa2e3..0000000
317--- a/scripts/launchpadTrigger
318+++ /dev/null
319@@ -1,9 +0,0 @@
320-#!/usr/bin/env python3
321-import sys
322-# this is to keep backwards compatibility with deployments directly from
323-# bzr branch
324-sys.path.append('.') # add local directory
325-from jlp.commands.launchpadTrigger import launchpadTrigger
326-
327-if __name__ == "__main__":
328- sys.exit(launchpadTrigger())
329diff --git a/scripts/voteOnMergeProposal b/scripts/voteOnMergeProposal
330deleted file mode 100755
331index 61f099c..0000000
332--- a/scripts/voteOnMergeProposal
333+++ /dev/null
334@@ -1,9 +0,0 @@
335-#!/usr/bin/env python3
336-import sys
337-# this is to keep backwards compatibility with deployments directly from
338-# bzr branch
339-sys.path.append('.') # add local directory
340-from jlp.commands.voteOnMergeProposal import voteOnMergeProposal
341-
342-if __name__ == "__main__":
343- sys.exit(voteOnMergeProposal())
344diff --git a/setup.py b/setup.py
345index 346810d..33b744c 100644
346--- a/setup.py
347+++ b/setup.py
348@@ -8,12 +8,13 @@ setup(
349 url='https://launchpad.net/jenkins-launchpad-plugin',
350 packages=find_packages(),
351 include_package_data=True,
352- data_files=[('templates', glob.glob('templates/*.j2'))],
353+ data_files=[('share/jenkins-launchpad-plugin/templates',
354+ glob.glob('templates/*.j2'))],
355 test_suite='tests',
356 entry_points="""\
357 [console_scripts]
358 autoland = jlp.commands.autoland:autoland
359- dput = jlp.commands.dput:dput
360+ jlp-dput = jlp.commands.dput:dput
361 getMergeProposals = jlp.commands.getMergeProposals:getMergeProposals
362 launchpadTrigger = jlp.commands.launchpadTrigger:launchpadTrigger
363 voteOnMergeProposal = \

Subscribers

People subscribed via source and target branches