Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
12681840
Commit
12681840
authored
Apr 07, 2017
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PyPI improvements
parent
6d673057
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
84 additions
and
125 deletions
+84
-125
DEVELOPERS.rst
DEVELOPERS.rst
+68
-0
README.rst
README.rst
+10
-102
setup.py
setup.py
+6
-23
No files found.
DEVELOPERS.rst
0 → 100644
View file @
12681840
For developers of ZODB
======================
Building
---------
Bootstrap buildout, if necessary using ``bootstrap.py``::
python bootstrap.py
Run the buildout::
bin/buildout
Testing
-------
The ZODB checkouts are `buildouts <http://www.python.org/pypi/zc.buildout>`_.
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:
% bin/buildout
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 ``-h`` or ``--help``
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 ``--all`` option.
Running all the tests takes much longer.::
Ran 1561 tests in 1461.557s
OK
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.
Generating docs
---------------
cd to the doc directory and::
make html
Contributing
------------
Almost any code change should include tests.
Any change that changes features should include documentation updates.
README.rst
View file @
12681840
...
...
@@ -2,112 +2,20 @@
ZODB
====
Introduction
============
ZODB provides an object-oriented database for Python that provides a
high-degree of transparency.
The ZODB package provides a set of tools for using the Zope Object
Database (ZODB).
- no separate language for database operations
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.
- very little impact on your code to make objects persistent
Compatibility
=============
- no database mapper that partially hides the database.
ZODB 5 requires Python 2.7 (>= 2.7.9) or Python >= 3.3.
Using an object-relational mapping **is not** like using an
object-oriented database.
Documentation
=============
- almost no seam between code and database.
See http://zodb-docs.readthedocs.io/en/latest/
ZODB is an ACID Transactional database.
For developers of ZODB
======================
Building
---------
Bootstrap buildout, if necessary using ``bootstrap.py``::
python bootstrap.py
Run the buildout::
bin/buildout
Testing
-------
The ZODB checkouts are `buildouts <http://www.python.org/pypi/zc.buildout>`_.
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:
% bin/buildout
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 ``-h`` or ``--help``
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 ``--all`` option.
Running all the tests takes much longer.::
Ran 1561 tests in 1461.557s
OK
Generating docs
---------------
cd to the doc directory and::
make html
Contributing
------------
Almost any code change should include tests.
Any change that changes features should include documentation updates.
Maintenance scripts
-------------------
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.
License
=======
ZODB is distributed under the Zope Public License, an OSI-approved
open source license. Please see the LICENSE.txt file for terms and
conditions.
More information
================
See http://zodb.org/
.. image:: https://badges.gitter.im/zopefoundation/ZODB.svg
:alt: Join the chat at https://gitter.im/zopefoundation/ZODB
:target: https://gitter.im/zopefoundation/ZODB?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
To learn more, visit: http://www.zodb.org
setup.py
View file @
12681840
...
...
@@ -11,15 +11,6 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Zope Object Database: object database and persistence
The Zope Object Database provides an object-oriented database for
Python that provides a high-degree of transparency. Applications can
take advantage of object database features with few, if any, changes
to application logic. ZODB includes features such as a plugable storage
interface, rich transaction support, and undo.
"""
version
=
'5.2.1.dev0'
import
os
...
...
@@ -100,19 +91,11 @@ def alltests():
_unittests_only
(
suite
,
mod
.
test_suite
())
return
suite
doclines
=
__doc__
.
split
(
"
\
n
"
)
def
read_file
(
*
path
):
base_dir
=
os
.
path
.
dirname
(
__file__
)
file_path
=
(
base_dir
,
)
+
tuple
(
path
)
with
open
(
os
.
path
.
join
(
*
file_path
),
'rb'
)
as
file
:
return
file
.
read
()
long_description
=
str
(
(
"
\
n
"
.
join
(
doclines
[
2
:])
+
"
\
n
\
n
"
+
".. contents::
\
n
\
n
"
+
read_file
(
"README.rst"
).
decode
(
'latin-1'
)
+
"
\
n
\
n
"
+
read_file
(
"CHANGES.rst"
).
decode
(
'latin-1'
)))
long_description
=
(
open
(
"README.rst"
).
read
()
+
"
\
n
\
n
"
+
open
(
"CHANGES.rst"
).
read
()
)
tests_require
=
[
'zope.testing'
,
'manuel'
]
...
...
@@ -128,7 +111,7 @@ setup(name="ZODB",
url
=
'http://www.zodb.org/'
,
license
=
"ZPL 2.1"
,
platforms
=
[
"any"
],
description
=
doclines
[
0
],
description
=
long_description
[
1
],
classifiers
=
list
(
filter
(
None
,
classifiers
.
split
(
"
\
n
"
))),
long_description
=
long_description
,
test_suite
=
"__main__.alltests"
,
# to support "setup.py test"
...
...
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