Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zodburi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
zodburi
Commits
250d9ed7
Commit
250d9ed7
authored
Feb 15, 2023
by
Éloi Rivard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop support for ZODB4
parent
592fea46
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
74 deletions
+35
-74
CHANGES.rst
CHANGES.rst
+2
-2
docs/index.rst
docs/index.rst
+1
-1
tox.ini
tox.ini
+3
-7
zodburi/tests/test_resolvers.py
zodburi/tests/test_resolvers.py
+29
-64
No files found.
CHANGES.rst
View file @
250d9ed7
...
@@ -3,10 +3,10 @@
...
@@ -3,10 +3,10 @@
Change Log
Change Log
----------
----------
2.
5.1
(unreleased)
2.
6.0
(unreleased)
~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~
-
Nothing changed yet.
-
Stop support for ZODB4
2.5.0 (2021-05-12)
2.5.0 (2021-05-12)
...
...
docs/index.rst
View file @
250d9ed7
...
@@ -7,7 +7,7 @@ Overview
...
@@ -7,7 +7,7 @@ Overview
A library which parses URIs and converts them to ZODB storage objects and
A library which parses URIs and converts them to ZODB storage objects and
database arguments.
database arguments.
It will run under CPython 2.7, 3.5 to 3.8, pypy and pypy3. It will not run under Jython. It requires ZODB >=
3.1
0.0.
It will run under CPython 2.7, 3.5 to 3.8, pypy and pypy3. It will not run under Jython. It requires ZODB >=
5.
0.0.
Installation
Installation
------------
------------
...
...
tox.ini
View file @
250d9ed7
[tox]
[tox]
envlist
=
envlist
=
{py27,py35,py36,pypy,pypy3}-{zodb4,zodb5},
py27,py35,py36,py37,py38,pypy,pypy3,cover,docs,lint
{py37,py38}-zodb5,
cover,docs,lint
[testenv]
[testenv]
commands
=
commands
=
python
setup.py
-q
test
-q
python
setup.py
-q
test
-q
deps
=
deps
=
mock
mock
zodb4:
ZODB
=
=4.*
ZODB
=
=5.*
zodb5:
ZODB
=
=5.*
ZEO
=
=5.*
zodb4:
ZEO
=
=4.*
zodb5:
ZEO
=
=5.*
[testenv:cover]
[testenv:cover]
basepython
=
basepython
=
...
...
zodburi/tests/test_resolvers.py
View file @
250d9ed7
...
@@ -3,9 +3,6 @@ import pkg_resources
...
@@ -3,9 +3,6 @@ import pkg_resources
import
unittest
import
unittest
ZODB_VERSION
=
tuple
(
map
(
int
,
pkg_resources
.
get_distribution
(
"ZODB"
).
version
.
split
(
'.'
)))
class
Base
:
class
Base
:
def
test_interpret_kwargs_noargs
(
self
):
def
test_interpret_kwargs_noargs
(
self
):
...
@@ -442,16 +439,6 @@ class TestZConfigURIResolver(unittest.TestCase):
...
@@ -442,16 +439,6 @@ class TestZConfigURIResolver(unittest.TestCase):
storage
=
factory
()
storage
=
factory
()
from
ZODB.MappingStorage
import
MappingStorage
from
ZODB.MappingStorage
import
MappingStorage
self
.
assertTrue
(
isinstance
(
storage
,
MappingStorage
))
self
.
assertTrue
(
isinstance
(
storage
,
MappingStorage
))
if
ZODB_VERSION
[
0
]
<
5
:
self
.
assertEqual
(
dbkw
,
{
'connection_cache_size'
:
5000
,
'connection_cache_size_bytes'
:
0
,
'connection_historical_cache_size'
:
1000
,
'connection_historical_cache_size_bytes'
:
0
,
'connection_historical_pool_size'
:
3
,
'connection_historical_timeout'
:
300
,
'connection_pool_size'
:
7
})
else
:
self
.
assertEqual
(
dbkw
,
self
.
assertEqual
(
dbkw
,
{
'connection_cache_size'
:
5000
,
{
'connection_cache_size'
:
5000
,
'connection_cache_size_bytes'
:
0
,
'connection_cache_size_bytes'
:
0
,
...
@@ -479,17 +466,6 @@ class TestZConfigURIResolver(unittest.TestCase):
...
@@ -479,17 +466,6 @@ class TestZConfigURIResolver(unittest.TestCase):
storage
=
factory
()
storage
=
factory
()
from
ZODB.MappingStorage
import
MappingStorage
from
ZODB.MappingStorage
import
MappingStorage
self
.
assertTrue
(
isinstance
(
storage
,
MappingStorage
))
self
.
assertTrue
(
isinstance
(
storage
,
MappingStorage
))
if
ZODB_VERSION
[
0
]
<
5
:
self
.
assertEqual
(
dbkw
,
{
'connection_cache_size'
:
20000
,
'connection_cache_size_bytes'
:
0
,
'connection_historical_cache_size'
:
1000
,
'connection_historical_cache_size_bytes'
:
0
,
'connection_historical_pool_size'
:
3
,
'connection_historical_timeout'
:
300
,
'connection_pool_size'
:
5
,
'database_name'
:
'foo'
})
else
:
self
.
assertEqual
(
dbkw
,
self
.
assertEqual
(
dbkw
,
{
'connection_cache_size'
:
20000
,
{
'connection_cache_size'
:
20000
,
'connection_cache_size_bytes'
:
0
,
'connection_cache_size_bytes'
:
0
,
...
@@ -546,17 +522,6 @@ class TestZConfigURIResolver(unittest.TestCase):
...
@@ -546,17 +522,6 @@ class TestZConfigURIResolver(unittest.TestCase):
storage
=
factory
()
storage
=
factory
()
from
ZODB.MappingStorage
import
MappingStorage
from
ZODB.MappingStorage
import
MappingStorage
self
.
assertTrue
(
isinstance
(
storage
,
MappingStorage
))
self
.
assertTrue
(
isinstance
(
storage
,
MappingStorage
))
if
ZODB_VERSION
[
0
]
<
5
:
self
.
assertEqual
(
dbkw
,
{
'cache_size'
:
5000
,
'cache_size_bytes'
:
0
,
'historical_cache_size'
:
1000
,
'historical_cache_size_bytes'
:
0
,
'historical_pool_size'
:
3
,
'historical_timeout'
:
300
,
'pool_size'
:
7
,
'database_name'
:
'unnamed'
})
else
:
self
.
assertEqual
(
dbkw
,
self
.
assertEqual
(
dbkw
,
{
'cache_size'
:
5000
,
{
'cache_size'
:
5000
,
'cache_size_bytes'
:
0
,
'cache_size_bytes'
:
0
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment