-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpavement.py
More file actions
128 lines (109 loc) · 3.66 KB
/
Copy pathpavement.py
File metadata and controls
128 lines (109 loc) · 3.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
try:
import paver
except ImportError:
# Ignore pavement during tests.
pass
else:
from paver.easy import *
import paver.misctasks
import paver.setuputils
from paver.setuputils import setup
from textwrap import dedent
from setuptools import Extension, find_packages
from schevodurus.release import VERSION
setup(
name='SchevoDurus',
version=VERSION,
description="Durus storage backend for Schevo",
long_description=dedent("""
SchevoDurus provides integration between the Durus_ object database
for Python and the Schevo_ DBMS.
You can also get the `latest development version
<http://github.com/gldnspud/schevodurus/zipball/master#egg=SchevoDurus-dev>`__.
SchevoDurus depends on Durus 3.9.
We maintain a `copy of Durus on github <http://github.com/gldnspud/durus/>`__
and for your convenience provide a
`Windows Python 2.5 egg
<http://www.schevo.org/eggs/Durus-3.8-py2.5-win32.egg>`__
and a
`Mac OS X 10.5 Python 2.5 i386 egg
<http://www.schevo.org/eggs/Durus-3.8-py2.5-macosx-10.5-i386.egg>`__.
.. _Schevo: http://schevo.org/
.. _Durus: http://www.mems-exchange.org/software/durus/
"""),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Database :: Database Engines/Servers',
'Topic :: Software Development :: Libraries :: '
'Application Frameworks',
],
keywords='database dbms',
author='ElevenCraft Inc.',
author_email='schevo@googlegroups.com',
url='http://www.schevo.org/',
license='MIT',
packages=find_packages(exclude=['doc', 'tests']),
include_package_data=True,
zip_safe=False,
install_requires=[
'xdserver >= 3.9',
],
# dependency_links = [
# 'http://pypi.python.org/pypi/SchevoDurus',
# 'http://www.schevo.org/eggs/',
# ],
tests_require=[
'nose >= 0.11.0',
'schevo == dev, >= 3.1.0dev-20091002',
],
test_suite='nose.collector',
entry_points = """
[schevo.backend]
durus = schevodurus.backend:DurusBackend
xdserver = schevodurus.backend:XdserverBackend
""",
)
options(
cog=Bunch(
basdir='doc/source',
includedir='doc/source',
pattern='*.txt',
beginspec='<==',
endspec='==>',
endoutput='<==end==>',
),
sphinx=Bunch(
docroot='doc',
builddir='build',
sourcedir='source',
),
)
@task
@needs(['paver.doctools.cog', 'paver.doctools.html', 'paver.doctools.uncog'])
def html():
pass
@task
@needs('html')
def docs():
import webbrowser
index_file = path('doc/build/html/index.html')
webbrowser.open('file://' + index_file.abspath())
@task
def doctests():
from paver.doctools import _get_paths
import sphinx
options.order('sphinx', add_rest=True)
paths = _get_paths()
sphinxopts = ['', '-b', 'doctest', '-d', paths.doctrees,
paths.srcdir, paths.htmldir]
ret = dry(
"sphinx-build %s" % (" ".join(sphinxopts),), sphinx.main, sphinxopts)
@task
@needs(['doctests', 'nosetests'])
def test():
pass