setup.py 856 Bytes
Newer Older
Lukáš Lalinský's avatar
Lukáš Lalinský committed
1
from setuptools import setup, find_packages
Lukáš Lalinský's avatar
Lukáš Lalinský committed
2 3 4 5 6 7 8 9 10

cmdclass = {}

try:
    from sphinx.setup_command import BuildDoc
    cmdclass['build_sphinx'] = BuildDoc
except ImportError:
    pass

Lukáš Lalinský's avatar
Lukáš Lalinský committed
11 12 13 14
def readme():
    with open('README.rst') as f:
        return f.read()

Lukáš Lalinský's avatar
Lukáš Lalinský committed
15
version = "0.5"
Lukáš Lalinský's avatar
Lukáš Lalinský committed
16 17 18 19

setup(
    name="phoenixdb",
    version=version,
20
    description="Phoenix database adapter for Python",
Lukáš Lalinský's avatar
Lukáš Lalinský committed
21
    long_description=readme(),
Lukáš Lalinský's avatar
Lukáš Lalinský committed
22 23
    author="Lukas Lalinsky",
    author_email="lukas@oxygene.sk",
Lukáš Lalinský's avatar
Lukáš Lalinský committed
24 25 26 27 28
    url="https://bitbucket.org/lalinsky/python-phoenixdb",
    license="Apache 2",
    packages=find_packages(),
    include_package_data=True,
    cmdclass=cmdclass,
Lukáš Lalinský's avatar
Lukáš Lalinský committed
29 30 31 32 33 34
    command_options={
        'build_sphinx': {
            'version': ('setup.py', version),
            'release': ('setup.py', version),
        },
    },
35 36 37
    install_requires=[
        'protobuf>=3.0.0',
    ]
Lukáš Lalinský's avatar
Lukáš Lalinský committed
38
)