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
diff --git a/debian/changelog b/debian/changelog
index 2bf550a..cbf4808 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
1shadowsocks-libev (3.3.4+ds-1ubuntu1) focal; urgency=medium
2
3 * d/t/control: depend on python2
4 * d/p/use-py2-for-dep8-tests.patch: be specific about the python
5 version the tests need.
6
7 -- Andreas Hasenack <andreas@canonical.com> Tue, 28 Jan 2020 14:34:14 -0300
8
1shadowsocks-libev (3.3.4+ds-1) unstable; urgency=medium9shadowsocks-libev (3.3.4+ds-1) unstable; urgency=medium
210
3 * New upstream release: v3.3.411 * New upstream release: v3.3.4
diff --git a/debian/control b/debian/control
index 21cd8b4..73da305 100644
--- a/debian/control
+++ b/debian/control
@@ -1,7 +1,8 @@
1Source: shadowsocks-libev1Source: shadowsocks-libev
2Section: net2Section: net
3Priority: optional3Priority: optional
4Maintainer: Debian Bridges Team <team+bridges@tracker.debian.org>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5XSBC-Original-Maintainer: Debian Bridges Team <team+bridges@tracker.debian.org>
5Uploaders:6Uploaders:
6 Max Lv <max.c.lv@gmail.com>,7 Max Lv <max.c.lv@gmail.com>,
7 Boyuan Yang <byang@debian.org>,8 Boyuan Yang <byang@debian.org>,
diff --git a/debian/patches/series b/debian/patches/series
index e69de29..419371a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -0,0 +1 @@
1use-py2-for-dep8-tests.patch
diff --git a/debian/patches/use-py2-for-dep8-tests.patch b/debian/patches/use-py2-for-dep8-tests.patch
0new file mode 1006442new file mode 100644
index 0000000..2df506a
--- /dev/null
+++ b/debian/patches/use-py2-for-dep8-tests.patch
@@ -0,0 +1,43 @@
1Description: Be explicit about the python version the tests need
2 Explicitly request python2 to run the dep8 tests.
3Author: Andreas Hasenack <andreas@canonical.com>
4Forwarded: no, unsure about the py2/py3 situation in debian at the moment
5Last-Update: 2020-01-28
6---
7This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
8diff --git a/tests/test.py b/tests/test.py
9index 0a1297b..d926f63 100755
10--- a/tests/test.py
11+++ b/tests/test.py
12@@ -1,4 +1,4 @@
13-#!/usr/bin/python
14+#!/usr/bin/python2
15 # -*- coding: utf-8 -*-
16 #
17 # Copyright 2015 clowwindy
18diff --git a/tests/test.sh b/tests/test.sh
19index b666eb1..0221f10 100755
20--- a/tests/test.sh
21+++ b/tests/test.sh
22@@ -32,13 +32,13 @@ if [ "$http_proxy" ]; then
23 exit 0
24 fi
25
26-run_test python tests/test.py $BIN -c tests/aes.json
27-run_test python tests/test.py $BIN -c tests/aes-gcm.json
28-run_test python tests/test.py $BIN -c tests/aes-ctr.json
29-run_test python tests/test.py $BIN -c tests/rc4-md5.json
30-run_test python tests/test.py $BIN -c tests/salsa20.json
31-run_test python tests/test.py $BIN -c tests/chacha20.json
32-run_test python tests/test.py $BIN -c tests/chacha20-ietf.json
33-run_test python tests/test.py $BIN -c tests/chacha20-ietf-poly1305.json
34+run_test python2 tests/test.py $BIN -c tests/aes.json
35+run_test python2 tests/test.py $BIN -c tests/aes-gcm.json
36+run_test python2 tests/test.py $BIN -c tests/aes-ctr.json
37+run_test python2 tests/test.py $BIN -c tests/rc4-md5.json
38+run_test python2 tests/test.py $BIN -c tests/salsa20.json
39+run_test python2 tests/test.py $BIN -c tests/chacha20.json
40+run_test python2 tests/test.py $BIN -c tests/chacha20-ietf.json
41+run_test python2 tests/test.py $BIN -c tests/chacha20-ietf-poly1305.json
42
43 exit $result
diff --git a/debian/tests/control b/debian/tests/control
index 8a90408..1bf6d49 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,3 +1,3 @@
1Test-Command: bash tests/test.sh1Test-Command: bash tests/test.sh
2Depends: @, python, curl, dnsutils2Depends: @, python2, curl, dnsutils
3Restrictions: allow-stderr3Restrictions: allow-stderr

Subscribers

People subscribed via source and target branches

to all changes: