- 11 Jan, 2019 2 commits
-
-
Tres Seaver authored
-
Tres Seaver authored
Garden changelog since 2.3.1.
-
- 22 Nov, 2018 1 commit
-
-
Tres Seaver authored
Annual housecleaning
-
- 20 Nov, 2018 1 commit
-
-
Steve Piercy authored
-
- 19 Nov, 2018 1 commit
-
-
Tres Seaver authored
Fix PendingDeprecationWarning about cgi.parse_qsl
-
- 02 Oct, 2018 10 commits
-
-
Steve Piercy authored
-
Steve Piercy authored
-
Steve Piercy authored
- Do not use smart quotes
-
Steve Piercy authored
- Perpetual year in copyright - Current version - Clean up imports and calls
-
Steve Piercy authored
-
Steve Piercy authored
-
Steve Piercy authored
-
Steve Piercy authored
-
Steve Piercy authored
-
Kirill Smelkov authored
I was running py.test based tests on a project which uses zodburi and got many warnings: .../python2.7/site-packages/zodburi/resolvers.py:86: PendingDeprecationWarning: cgi.parse_qsl is deprecated, use urlparse.parse_qsl instead kw = dict(parse_qsl(query)) Since for Python2 cig.parse_qsl was migrated to urlparse.parse_qsl in 2008: https://github.com/python/cpython/commit/c585df9476 it is safe to change to urlparse.parse_qsl unconditionally.
-
- 17 Oct, 2017 7 commits
-
-
Tres Seaver authored
-
Tres Seaver authored
-
Tres Seaver authored
-
Tres Seaver authored
Fix typo in Trove classifiers.
-
Tres Seaver authored
zeo: Fix parsing URI with IPv6 address
-
Kirill Smelkov authored
-
Kirill Smelkov authored
The code was crashing this way: ---- 8< ---- ====================================================================== ERROR: test_call_ipv6 (zodburi.tests.test_resolvers.TestClientStorageURIResolver) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kirr/src/wendelin/venv/z-dev/local/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched return func(*args, **keywargs) File "/home/kirr/src/wendelin/z/zodburi/zodburi/tests/test_resolvers.py", line 265, in test_call_ipv6 factory, dbkw = resolver('zeo://[::1]:9090?debug=true') File "/home/kirr/src/wendelin/z/zodburi/zodburi/resolvers.py", line 141, in __call__ host, port = netloc.split(':') ValueError: too many values to unpack ====================================================================== ERROR: test_call_ipv6_no_port (zodburi.tests.test_resolvers.TestClientStorageURIResolver) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kirr/src/wendelin/venv/z-dev/local/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched return func(*args, **keywargs) File "/home/kirr/src/wendelin/z/zodburi/zodburi/tests/test_resolvers.py", line 258, in test_call_ipv6_no_port factory, dbkw = resolver('zeo://[::1]?debug=true') File "/home/kirr/src/wendelin/z/zodburi/zodburi/resolvers.py", line 141, in __call__ host, port = netloc.split(':') ValueError: too many values to unpack ---- 8< ---- Fix it by leveraging the fact that urlparse.urlsplit return() tuple-like object with additional .hostname and .port attributes which already parse IPv6 correctly: In [2]: u = urlsplit('http://[::1]:5553') In [3]: u Out[3]: SplitResult(scheme='http', netloc='[::1]:5553', path='', query='', fragment='') In [4]: u.netloc Out[4]: '[::1]:5553' In [5]: u.hostname Out[5]: '::1' In [6]: u.port Out[6]: 5553 In [7]: u = urlsplit('http://[::1]') In [8]: u.hostname Out[8]: '::1' In [9]: u.port In [10]: repr(u.port) Out[10]: 'None'
-
- 06 Oct, 2017 4 commits
-
-
Tres Seaver authored
-
Tres Seaver authored
-
Tres Seaver authored
-
Tres Seaver authored
-
- 05 May, 2017 3 commits
-
-
Tres Seaver authored
-
Tres Seaver authored
-
Tres Seaver authored
-
- 19 Apr, 2017 2 commits
-
-
Tres Seaver authored
setup: Fix thinko for test_require
-
Kirill Smelkov authored
It is test_require who should list all packages needed for testing, but because of thinko in 3833be7e (Convert db resolvers to storage resolvers.) it was the other way. This resulted in zodburi install always pulling in mock. Fix it.
-
- 18 Apr, 2017 6 commits
-
-
Jim Fulton authored
-
Jim Fulton authored
-
Jim Fulton authored
Fixed: changes in 2.2 broke the zconfig resolver.
-
Steve Piercy authored
testing whether RTD will now build with latest ZEO
-
Steve Piercy authored
-
Jim Fulton authored
-
- 17 Apr, 2017 3 commits
-
-
Jim Fulton authored
-
Jim Fulton authored
-
Jim Fulton authored
I hate forking.
-