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