Merge ~ahasenack/ubuntu/+source/shadowsocks-libev:focal-dep8-py2-explicit into ~ahasenack/ubuntu/+source/shadowsocks-libev:master

Proposed by Andreas Hasenack
Status: Merged
Approved by: Andreas Hasenack
Approved revision: 474d96e7e63ee0327a8f8117c3ab57619cfbd2f2
Merge reported by: Andreas Hasenack
Merged at revision: 474d96e7e63ee0327a8f8117c3ab57619cfbd2f2
Proposed branch: ~ahasenack/ubuntu/+source/shadowsocks-libev:focal-dep8-py2-explicit
Merge into: ~ahasenack/ubuntu/+source/shadowsocks-libev:master
Diff against target: 94 lines (+55/-2)
5 files modified
debian/changelog (+8/-0)
debian/control (+2/-1)
debian/patches/series (+1/-0)
debian/patches/use-py2-for-dep8-tests.patch (+43/-0)
debian/tests/control (+1/-1)
Reviewer Review Type Date Requested Status
Bryce Harrington (community) Approve
Canonical Server MOTU reviewers Pending
Review via email: mp+378188@code.launchpad.net

Description of the change

This package isn't in git-ubuntu, so I'm proposing this MP against my own master branch which represents the current package in focal.

This fixes the dep8 dependency on "python":
E: Package 'python' has no installation candidate

I checked upstream and there is no new release nor recent activity. I also tried running this with py3, but it failed. Porting to py3 doesn't seem to be too hard, but not worth it at the moment I believe.

This package is blocking the bind9 migration.

To post a comment you must log in.
7c891e7... by Andreas Hasenack

changelog

474d96e... by Andreas Hasenack

update-metadata

Revision history for this message
Bryce Harrington (bryce) wrote :

LGTM, +1

Verified python2 is valid package in focal; I didn't realize we could just change deps to require that.

* Changelog:
  - [?] old content and logical tag match as expected
  - [√] changelog entry correct version and targeted codename
  - [√] changelog entries correct
  - [v] update-maintainer has been run

* Actual changes:
  - [√] no upstream changes to consider
    + 3.3.4 is latest upstream release - https://github.com/shadowsocks/shadowsocks-libev/releases
  - [√] no further upstream version to consider
    + This is a build fix, so kept to just solving the issue at hand
  - [√] debian changes look safe

* Old Delta:
  - [-] dropped changes are ok to be dropped
  - [-] nothing else to drop
  - [√] changes forwarded upstream/debian (if appropriate)

* New Delta:
  - [-] patches match what was proposed upstream
  - [√] patches correctly included in debian/patches/series
  - [√] patches have correct DEP3 metadata

* Build/Test:
  - [-] build is ok
  - [-] verified PPA package installs/uninstalls
  - [-] autopkgtest against the PPA package passes
  - [-] sanity checks test fine

I didn't do build testing, I trust if there are any issues they'll become immediately apparent. Presumably this has been locally tested and/or in a PPA already.

Revision history for this message
Bryce Harrington (bryce) :
review: Approve
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Uploading 474d96e7e63ee0327a8f8117c3ab57619cfbd2f2

$ dput ubuntu ../shadowsocks-libev_3.3.4+ds-1ubuntu1_source.changes
Checking signature on .changes
gpg: ../shadowsocks-libev_3.3.4+ds-1ubuntu1_source.changes: Valid signature from AC983EB5BF6BCBA9
Checking signature on .dsc
gpg: ../shadowsocks-libev_3.3.4+ds-1ubuntu1.dsc: Valid signature from AC983EB5BF6BCBA9
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading shadowsocks-libev_3.3.4+ds-1ubuntu1.dsc: done.
  Uploading shadowsocks-libev_3.3.4+ds-1ubuntu1.debian.tar.xz: done.
  Uploading shadowsocks-libev_3.3.4+ds-1ubuntu1_source.buildinfo: done.
  Uploading shadowsocks-libev_3.3.4+ds-1ubuntu1_source.changes: done.
Successfully uploaded packages.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

This is done.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 2bf550a..cbf4808 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,11 @@
6+shadowsocks-libev (3.3.4+ds-1ubuntu1) focal; urgency=medium
7+
8+ * d/t/control: depend on python2
9+ * d/p/use-py2-for-dep8-tests.patch: be specific about the python
10+ version the tests need.
11+
12+ -- Andreas Hasenack <andreas@canonical.com> Tue, 28 Jan 2020 14:34:14 -0300
13+
14 shadowsocks-libev (3.3.4+ds-1) unstable; urgency=medium
15
16 * New upstream release: v3.3.4
17diff --git a/debian/control b/debian/control
18index 21cd8b4..73da305 100644
19--- a/debian/control
20+++ b/debian/control
21@@ -1,7 +1,8 @@
22 Source: shadowsocks-libev
23 Section: net
24 Priority: optional
25-Maintainer: Debian Bridges Team <team+bridges@tracker.debian.org>
26+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
27+XSBC-Original-Maintainer: Debian Bridges Team <team+bridges@tracker.debian.org>
28 Uploaders:
29 Max Lv <max.c.lv@gmail.com>,
30 Boyuan Yang <byang@debian.org>,
31diff --git a/debian/patches/series b/debian/patches/series
32index e69de29..419371a 100644
33--- a/debian/patches/series
34+++ b/debian/patches/series
35@@ -0,0 +1 @@
36+use-py2-for-dep8-tests.patch
37diff --git a/debian/patches/use-py2-for-dep8-tests.patch b/debian/patches/use-py2-for-dep8-tests.patch
38new file mode 100644
39index 0000000..2df506a
40--- /dev/null
41+++ b/debian/patches/use-py2-for-dep8-tests.patch
42@@ -0,0 +1,43 @@
43+Description: Be explicit about the python version the tests need
44+ Explicitly request python2 to run the dep8 tests.
45+Author: Andreas Hasenack <andreas@canonical.com>
46+Forwarded: no, unsure about the py2/py3 situation in debian at the moment
47+Last-Update: 2020-01-28
48+---
49+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
50+diff --git a/tests/test.py b/tests/test.py
51+index 0a1297b..d926f63 100755
52+--- a/tests/test.py
53++++ b/tests/test.py
54+@@ -1,4 +1,4 @@
55+-#!/usr/bin/python
56++#!/usr/bin/python2
57+ # -*- coding: utf-8 -*-
58+ #
59+ # Copyright 2015 clowwindy
60+diff --git a/tests/test.sh b/tests/test.sh
61+index b666eb1..0221f10 100755
62+--- a/tests/test.sh
63++++ b/tests/test.sh
64+@@ -32,13 +32,13 @@ if [ "$http_proxy" ]; then
65+ exit 0
66+ fi
67+
68+-run_test python tests/test.py $BIN -c tests/aes.json
69+-run_test python tests/test.py $BIN -c tests/aes-gcm.json
70+-run_test python tests/test.py $BIN -c tests/aes-ctr.json
71+-run_test python tests/test.py $BIN -c tests/rc4-md5.json
72+-run_test python tests/test.py $BIN -c tests/salsa20.json
73+-run_test python tests/test.py $BIN -c tests/chacha20.json
74+-run_test python tests/test.py $BIN -c tests/chacha20-ietf.json
75+-run_test python tests/test.py $BIN -c tests/chacha20-ietf-poly1305.json
76++run_test python2 tests/test.py $BIN -c tests/aes.json
77++run_test python2 tests/test.py $BIN -c tests/aes-gcm.json
78++run_test python2 tests/test.py $BIN -c tests/aes-ctr.json
79++run_test python2 tests/test.py $BIN -c tests/rc4-md5.json
80++run_test python2 tests/test.py $BIN -c tests/salsa20.json
81++run_test python2 tests/test.py $BIN -c tests/chacha20.json
82++run_test python2 tests/test.py $BIN -c tests/chacha20-ietf.json
83++run_test python2 tests/test.py $BIN -c tests/chacha20-ietf-poly1305.json
84+
85+ exit $result
86diff --git a/debian/tests/control b/debian/tests/control
87index 8a90408..1bf6d49 100644
88--- a/debian/tests/control
89+++ b/debian/tests/control
90@@ -1,3 +1,3 @@
91 Test-Command: bash tests/test.sh
92-Depends: @, python, curl, dnsutils
93+Depends: @, python2, curl, dnsutils
94 Restrictions: allow-stderr

Subscribers

People subscribed via source and target branches

to all changes: