Merge ~pappacena/turnip:upgrade-python-openid2 into turnip:master

Proposed by Thiago F. Pappacena
Status: Merged
Approved by: Thiago F. Pappacena
Approved revision: 0bafe9c4d8910539157e419ff8a95092efe4af67
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~pappacena/turnip:upgrade-python-openid2
Merge into: turnip:master
Diff against target: 76 lines (+9/-9)
3 files modified
requirements.txt (+6/-8)
setup.py (+1/-1)
system-dependencies.txt (+2/-0)
Reviewer Review Type Date Requested Status
Colin Watson (community) Approve
Review via email: mp+384936@code.launchpad.net

Commit message

Upgrading python-openid to python-openid2

To post a comment you must log in.
Revision history for this message
Thiago F. Pappacena (pappacena) wrote :
Revision history for this message
Colin Watson (cjwatson) wrote :

Your changes themselves look OK, and python-openid2 is probably the best choice of Python-3-compatible replacements for python-openid. However, when I tried to convert Launchpad itself to it, I found that it has normalisation problems that specifically affect the OpenID identity URLs used by SSO. turnip's test suite doesn't currently exercise its OpenID handling very much (if at all?), but Launchpad's test suite picks this up, and I *think* it will affect attempting to log into turnip using SSO. I'd advise holding off on this until python-openid2 is fixed, and then upgrading to a fixed version before landing this.

See my upstream PR for more details:

  https://github.com/ziima/python-openid/pull/41

review: Needs Fixing
Revision history for this message
Colin Watson (cjwatson) wrote :

I believe you should be able to bump this to python-openid2 3.2 now, and then it should be fine.

Revision history for this message
Thiago F. Pappacena (pappacena) wrote :

Added the corresponding packages dependencies in a new MP: https://code.launchpad.net/~pappacena/turnip/+git/turnip-dependencies/+merge/389135.

Revision history for this message
Colin Watson (cjwatson) :
review: Approve
Revision history for this message
Thiago F. Pappacena (pappacena) :
Revision history for this message
Otto Co-Pilot (otto-copilot) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/requirements.txt b/requirements.txt
2index 4c5f050..6761175 100644
3--- a/requirements.txt
4+++ b/requirements.txt
5@@ -7,14 +7,14 @@ bcrypt==3.1.7
6 beautifulsoup4==4.6.3
7 billiard==3.6.3.0
8 celery==4.4.6
9-cffi==1.14.0
10+cffi==1.14.1
11 configparser==4.0.2
12 constantly==15.1.0
13 contextlib2==0.6.0.post1
14 cornice==3.6.1
15-cryptography==2.8
16+cryptography==3.0
17 docutils==0.14
18-enum34==1.1.9
19+enum34==1.1.10
20 envdir==0.7
21 extras==1.0.0
22 fixtures==3.0.0
23@@ -32,6 +32,7 @@ ipaddress==1.0.23
24 kombu==4.6.11
25 lazr.sshserver==0.1.8
26 linecache2==1.0.0
27+lxml==4.5.2
28 m2r==0.1.14
29 mccabe==0.3
30 mistune==0.8.3
31@@ -49,17 +50,14 @@ pyflakes==0.8.1
32 pygit2==0.27.4
33 pyramid==1.10.4
34 python-mimeparse==1.6.0
35-# XXX: deryck 2012-08-10
36-# See lp:~deryck/python-openid/python-openid-fix1034376 which
37-# reapplied a patch from wgrant to get codehosting going again.
38-python-openid==2.2.5-fix1034376
39+python-openid2==3.2
40 pytz==2020.1
41 PyYAML==5.3
42 repoze.lru==0.6
43 scandir==1.10.0
44 setuptools-scm==1.17.0
45 simplejson==3.6.5
46-six==1.14.0
47+six==1.15.0
48 testscenarios-0.5.0
49 testtools==2.4.0
50 traceback2==1.4.0
51diff --git a/setup.py b/setup.py
52index 44507da..5cfae76 100755
53--- a/setup.py
54+++ b/setup.py
55@@ -26,7 +26,7 @@ requires = [
56 'lazr.sshserver>=0.1.7',
57 'Paste',
58 'pygit2>=0.27.4,<0.28.0',
59- 'python-openid',
60+ 'python-openid2',
61 'PyYAML',
62 'Twisted[conch]',
63 'waitress',
64diff --git a/system-dependencies.txt b/system-dependencies.txt
65index 8c668f0..6cee8e7 100644
66--- a/system-dependencies.txt
67+++ b/system-dependencies.txt
68@@ -4,6 +4,8 @@ git
69 libffi-dev
70 libgit2-27
71 libssl-dev
72+libxml2-dev
73+libxslt1-dev
74 python-dev
75 rabbitmq-server
76 virtualenv

Subscribers

People subscribed via source and target branches