The ZODB package provides a set of tools for using the Zope Object Database (ZODB).
Our primary development platforms are Linux and Mac OS X. The test suite should pass without error on these platforms and, hopefully, Windows, although it can take a long time on Windows -- longer if you use ZoneAlarm.
ZODB 5 requires Python 2.7 (>= 2.7.9) or Python >= 3.3.
For developers of ZODB
Bootstrap buildout, if necessary using
Run the buildout:
The ZODB checkouts are buildouts. When working from a ZODB checkout, first run the bootstrap.py script to initialize the buildout:
% python bootstrap.py
and then use the buildout script to build ZODB and gather the dependencies:
This creates a test script:
% bin/test -v
This command will run all the tests, printing a single dot for each test. When it finishes, it will print a test summary. The exact number of tests can vary depending on platform and available third-party libraries.:
Ran 1182 tests in 241.269s OK
The test script has many more options. Use the
options to see a file list of options. The default test suite omits
several tests that depend on third-party software or that take a long
time to run. To run all the available tests use the
Running all the tests takes much longer.:
Ran 1561 tests in 1461.557s OK
cd to the doc directory and:
Almost any code change should include tests.
Any change that changes features should include documentation updates.
Several scripts are provided with the ZODB and can help for analyzing, debugging, checking for consistency, summarizing content, reporting space used by objects, doing backups, artificial load testing, etc. Look at the ZODB/script directory for more informations.
ZODB is distributed under the Zope Public License, an OSI-approved open source license. Please see the LICENSE.txt file for terms and conditions.