Merge ~cjwatson/launchpad:ztk-20210121 into launchpad:master

Proposed by Colin Watson
Status: Merged
Approved by: Colin Watson
Approved revision: 36a43ac0c6c53be4db8204d528b4193e9d548426
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~cjwatson/launchpad:ztk-20210121
Merge into: launchpad:master
Diff against target: 228 lines (+46/-40)
3 files modified
lib/lp/code/model/gitref.py (+5/-0)
requirements/launchpad.txt (+3/-5)
requirements/ztk-versions.cfg (+38/-35)
Reviewer Review Type Date Requested Status
Cristian Gonzalez (community) Approve
Review via email: mp+397226@code.launchpad.net

Commit message

Upgrade to ZTK 9cb420f598 (2021-01-21)

Description of the change

This is mainly straightforward, as we'd already taken most of the substantial changes that affect us individually, but we do need a couple of new workarounds:

 * We have to pin bcrypt to 3.1.7; ztk-versions.cfg now prefers 3.2.0 on Python 3, but that drops support for Python 3.5 and hence Python 3 on xenial. This may become more of an issue in future, but for now it's tolerable.

 * zope.interface 5.1.0 caused new failures in two tests related to GitRefDatabaseBackedMixin, I think because of some bare except statements being narrowed to catch only AttributeError. Fixed by explicitly defining __conform__ so that it doesn't fall through to __getattr__ and try to fetch rows from the database while adapting to ITraversable.

Dependencies MP: https://code.launchpad.net/~cjwatson/lp-source-dependencies/+git/lp-source-dependencies/+merge/397225

To post a comment you must log in.
Revision history for this message
Cristian Gonzalez (cristiangsp) wrote :

Looks good!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/lib/lp/code/model/gitref.py b/lib/lp/code/model/gitref.py
index 6d5559e..14ef25b 100644
--- a/lib/lp/code/model/gitref.py
+++ b/lib/lp/code/model/gitref.py
@@ -688,6 +688,11 @@ class GitRefDatabaseBackedMixin(GitRefMixin):
688 def __hash__(self):688 def __hash__(self):
689 return hash(self.repository) ^ hash(self.path) ^ hash(self.commit_sha1)689 return hash(self.repository) ^ hash(self.path) ^ hash(self.commit_sha1)
690690
691 # zope.interface tries to use this during adaptation (e.g. to
692 # ITraversable), and we don't want that to attempt a database lookup via
693 # __getattr__.
694 __conform__ = None
695
691696
692@implementer(IGitRef)697@implementer(IGitRef)
693class GitRefDefault(GitRefDatabaseBackedMixin):698class GitRefDefault(GitRefDatabaseBackedMixin):
diff --git a/requirements/launchpad.txt b/requirements/launchpad.txt
index 287664c..1317a65 100644
--- a/requirements/launchpad.txt
+++ b/requirements/launchpad.txt
@@ -14,6 +14,9 @@ attrs==19.1.0
14Automat==0.6.014Automat==0.6.0
15backports.functools-lru-cache==1.515backports.functools-lru-cache==1.5
16backports.lzma==0.0.316backports.lzma==0.0.3
17# ztk-versions.cfg uses 3.2.0 on Python 3, but that drops support for Python
18# 3.5. Pin to 3.1.7 until we no longer care about xenial.
19bcrypt==3.1.7
17beautifulsoup4==4.7.120beautifulsoup4==4.7.1
18billiard==3.5.0.521billiard==3.5.0.5
19bleach==3.1.022bleach==3.1.0
@@ -85,7 +88,6 @@ mistune==0.8.3
85mock==1.0.188mock==1.0.1
86mocker==1.1.189mocker==1.1.1
87monotonic==1.590monotonic==1.5
88multipart==0.1.1; python_version < "3"
89multipart==0.2.4; python_version >= "3"91multipart==0.2.4; python_version >= "3"
90netaddr==0.7.1992netaddr==0.7.19
91oauth==1.093oauth==1.0
@@ -141,7 +143,6 @@ setuptools-scm==3.4.3
141simplejson==3.8.2143simplejson==3.8.2
142SimpleTAL==4.3; python_version < "3"144SimpleTAL==4.3; python_version < "3"
143SimpleTAL==5.2; python_version >= "3"145SimpleTAL==5.2; python_version >= "3"
144six==1.15.0
145soupmatchers==0.4146soupmatchers==0.4
146soupsieve==1.9147soupsieve==1.9
147statsd==3.3.0148statsd==3.3.0
@@ -181,13 +182,10 @@ zope.app.publication==4.3.1
181zope.app.publisher==4.2.0182zope.app.publisher==4.2.0
182zope.app.server==4.0.0183zope.app.server==4.0.0
183zope.app.wsgi==4.3.0184zope.app.wsgi==4.3.0
184zope.publisher==6.0.0
185zope.sendmail==5.1
186zope.server==4.0.2185zope.server==4.0.2
187# lp:~launchpad-committers/zope.session:launchpad186# lp:~launchpad-committers/zope.session:launchpad
188zope.session==4.3.0+lp1187zope.session==4.3.0+lp1
189zope.testbrowser==5.5.1188zope.testbrowser==5.5.1
190zope.testing==4.8
191# lp:~launchpad-committers/zope.testrunner:launchpad189# lp:~launchpad-committers/zope.testrunner:launchpad
192zope.testrunner==5.2+lp1190zope.testrunner==5.2+lp1
193zope.vocabularyregistry==1.1.1191zope.vocabularyregistry==1.1.1
diff --git a/requirements/ztk-versions.cfg b/requirements/ztk-versions.cfg
index 37a3cfd..f484e39 100644
--- a/requirements/ztk-versions.cfg
+++ b/requirements/ztk-versions.cfg
@@ -9,7 +9,7 @@ zope.browserpage = 4.4.0
9zope.browserresource = 4.49zope.browserresource = 4.4
10zope.cachedescriptors = 4.3.110zope.cachedescriptors = 4.3.1
11zope.catalog = 4.2.111zope.catalog = 4.2.1
12zope.component = 4.6.112zope.component = 4.6.2
13zope.componentvocabulary = 2.2.013zope.componentvocabulary = 2.2.0
14zope.configuration = 4.4.014zope.configuration = 4.4.0
15zope.container = 4.4.015zope.container = 4.4.0
@@ -23,15 +23,15 @@ zope.deprecation = 4.4.0
23zope.dottedname = 4.323zope.dottedname = 4.3
24zope.dublincore = 4.2.024zope.dublincore = 4.2.0
25zope.error = 4.5.025zope.error = 4.5.0
26zope.event = 4.426zope.event = 4.5.0
27zope.exceptions = 4.327zope.exceptions = 4.4
28zope.filerepresentation = 5.0.028zope.filerepresentation = 5.0.0
29zope.formlib = 4.7.129zope.formlib = 4.7.1
30zope.hookable = 5.0.130zope.hookable = 5.0.1
31zope.i18n = 4.7.031zope.i18n = 4.7.0
32zope.i18nmessageid = 5.0.132zope.i18nmessageid = 5.0.1
33zope.index = 5.0.033zope.index = 5.0.0
34zope.interface = 5.0.234zope.interface = 5.1.0
35zope.intid = 4.3.035zope.intid = 4.3.0
36zope.keyreference = 4.2.036zope.keyreference = 4.2.0
37zope.lifecycleevent = 4.337zope.lifecycleevent = 4.3
@@ -47,35 +47,36 @@ zope.principalregistry = 4.2.0
47zope.processlifetime = 2.3.047zope.processlifetime = 2.3.0
48zope.proxy = 4.3.548zope.proxy = 4.3.5
49zope.ptresource = 4.2.049zope.ptresource = 4.2.0
50zope.publisher = 5.2.050zope.publisher = 6.0.0
51zope.ramcache = 2.351zope.ramcache = 2.3
52zope.schema = 6.0.052zope.schema = 6.0.0
53zope.security = 5.1.153zope.security = 5.1.1
54zope.securitypolicy = 4.3.154zope.securitypolicy = 4.3.1
55zope.sendmail = 5.055zope.sendmail = 5.1
56zope.session = 4.3.056zope.session = 4.3.0
57zope.site = 4.3.057zope.site = 4.4.0
58zope.size = 4.358zope.size = 4.3
59zope.structuredtext = 4.359zope.structuredtext = 4.3
60zope.tal = 4.460zope.tal = 4.4
61zope.tales = 5.0.261zope.tales = 5.1
62zope.testing = 4.762zope.testing = 4.9
63zope.testrunner = 5.163zope.testrunner = 5.2
64zope.traversing = 4.4.164zope.traversing = 4.4.1
65zope.viewlet = 4.2.165zope.viewlet = 4.2.1
6666
67# Direct dependencies67# Direct dependencies
68BTrees = 4.7.168BTrees = 4.7.2
69multipart = 0.2.3
69persistent = 4.6.470persistent = 4.6.4
70python-gettext = 4.071python-gettext = 4.0
71pytz = 2019.372pytz = 2020.1
72setuptools = 46.1.373setuptools = 50.3.0
73six = 1.14.074six = 1.15.0
74transaction = 3.0.075transaction = 3.0.0
7576
76# zope.password needs these77# zope.password needs these
77bcrypt = 3.1.778bcrypt = 3.2.0
78cffi = 1.14.079cffi = 1.14.3
79pycparser = 2.2080pycparser = 2.20
8081
81# Python2-only82# Python2-only
@@ -85,15 +86,15 @@ RestrictedPython = 3.6.0
8586
86# Testing dependencies87# Testing dependencies
87ZConfig = 3.5.088ZConfig = 3.5.0
88ZODB = 5.5.189ZODB = 5.6.0
89argparse = 1.4.090argparse = 1.4.0
90colorama = 0.4.391colorama = 0.4.3
91extras = 1.0.092extras = 1.0.0
92fixtures = 3.0.093fixtures = 3.0.0
93linecache2 = 1.0.094linecache2 = 1.0.0
94manuel = 1.10.195manuel = 1.10.1
95pbr = 5.4.496pbr = 5.5.0
96pyparsing = 2.4.697pyparsing = 2.4.7
97python-mimeparse = 1.6.098python-mimeparse = 1.6.0
98python-subunit = 1.4.099python-subunit = 1.4.0
99testtools = 2.4.0100testtools = 2.4.0
@@ -105,25 +106,25 @@ zodbpickle = 2.0.0
105106
106107
107# Testing tools108# Testing tools
108coverage = 5.0.4109coverage = 5.3
109nose = 1.3.7110nose = 1.3.7
110111
111# Documentation dependencies112# Documentation dependencies
112Sphinx = 2.4.4113Sphinx = 3.2.1
113docutils = 0.16114docutils = 0.16
114imagesize = 1.2.0115imagesize = 1.2.0
115alabaster = 0.7.12116alabaster = 0.7.12
116babel = 2.8.0117babel = 2.8.0
117Jinja2 = 2.11.1118Jinja2 = 2.11.2
118MarkupSafe = 1.1.1119MarkupSafe = 1.1.1
119Pygments = 2.6.1120Pygments = 2.7.1
120snowballstemmer = 2.0.0121snowballstemmer = 2.0.0
121lxml = 4.5.0122lxml = 4.5.2
122repoze.sphinx.autointerface = 0.8123repoze.sphinx.autointerface = 0.8
123requests = 2.23.0124requests = 2.24.0
124certifi = 2019.11.28125certifi = 2020.6.20
125urllib3 = 1.25.8126urllib3 = 1.25.10
126idna = 2.9127idna = 2.10
127chardet = 3.0.4128chardet = 3.0.4
128sphinxcontrib-applehelp = 1.0.2129sphinxcontrib-applehelp = 1.0.2
129sphinxcontrib-devhelp = 1.0.2130sphinxcontrib-devhelp = 1.0.2
@@ -132,17 +133,17 @@ sphinxcontrib-jsmath = 1.0.1
132sphinxcontrib-programoutput = 0.16133sphinxcontrib-programoutput = 0.16
133sphinxcontrib-qthelp = 1.0.3134sphinxcontrib-qthelp = 1.0.3
134sphinxcontrib-serializinghtml = 1.1.4135sphinxcontrib-serializinghtml = 1.1.4
135sphinxcontrib-websupport = 1.2.1136sphinxcontrib-websupport = 1.2.4
136sphinx-rtd-theme = 0.4.3137sphinx-rtd-theme = 0.5.0
137packaging = 20.3138packaging = 20.4
138typing = 3.7.4.1139typing = 3.7.4.3
139z3c.recipe.sphinxdoc = 1.1.0140z3c.recipe.sphinxdoc = 1.1.0
140141
141# ZTK buildout dependencies142# ZTK buildout dependencies
142collective.recipe.cmd = 0.11143collective.recipe.cmd = 0.11
143mr.developer = 2.0.0144mr.developer = 2.0.1
144z3c.checkversions = 1.1145z3c.checkversions = 1.2
145z3c.recipe.compattest = 1.0146z3c.recipe.compattest = 1.1.0
146zc.buildout = 2.13.3147zc.buildout = 2.13.3
147zc.recipe.egg = 2.0.7148zc.recipe.egg = 2.0.7
148zc.recipe.testrunner = 2.1149zc.recipe.testrunner = 2.1
@@ -150,5 +151,7 @@ zc.recipe.testrunner = 2.1
150[versions:python27]151[versions:python27]
151Pygments = 2.5.2152Pygments = 2.5.2
152Sphinx = 1.8.5153Sphinx = 1.8.5
154bcrypt = 3.1.7
155multipart = 0.1.1
153setuptools = 44.0.0156setuptools = 44.0.0
154sphinxcontrib-websupport = 1.1.2157sphinxcontrib-websupport = 1.1.2

Subscribers

People subscribed via source and target branches

to status/vote changes: