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
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2009 Christopher Lenz
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
from distutils.cmd import Command
import doctest
from glob import glob
import os
import sys
try:
from setuptools import setup
has_setuptools = True
except ImportError:
from distutils.core import setup
has_setuptools = False
import sys
requirements = []
if sys.version_info < (2, 6):
requirements += ['simplejson']
# Build setuptools-specific options (if installed).
if not has_setuptools:
print("WARNING: setuptools/distribute not available. Console scripts will not be installed.")
setuptools_options = {}
else:
setuptools_options = {
'install_requires': requirements,
'test_suite': 'couchdb.tests.__main__.suite',
'zip_safe': True,
}
setup(
name = 'CouchDB',
version = '0.10',
description = 'Python library for working with CouchDB',
long_description = \
"""This is a Python library for CouchDB. It provides a convenient high level
interface for the CouchDB server.""",
author = 'Christopher Lenz',
author_email = 'cmlenz@gmx.de',
license = 'BSD',
url = 'https://github.com/djc/couchdb-python/',
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Database :: Front-Ends',
'Topic :: Software Development :: Libraries :: Python Modules',
],
packages = ['couchdb', 'couchdb.tools', 'couchdb.tests'],
**setuptools_options
)
|