From 52ec168a7630a9597ed54a77d6c8339f40061af2 Mon Sep 17 00:00:00 2001 From: Joohwan Oh Date: Wed, 9 May 2018 10:00:44 -0700 Subject: [PATCH] Update setup.py, MANIFEST.in and docs/conf.py --- MANIFEST.in | 3 ++- arango/version.py | 2 +- docs/conf.py | 13 +++++-------- setup.py | 10 ++++++++-- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 05ac65be..95dea499 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1,2 @@ -include README.rst LICENSE \ No newline at end of file +include README.rst LICENSE +prune tests diff --git a/arango/version.py b/arango/version.py index d6497a81..1a3bef53 100644 --- a/arango/version.py +++ b/arango/version.py @@ -1 +1 @@ -__version__ = '4.0.0' +__version__ = '4.0.1' diff --git a/docs/conf.py b/docs/conf.py index 40a248dd..cc41bdde 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -17,13 +17,10 @@ # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # -import os -import sys - -from arango.version import __version__ - -sys.path.insert(0, os.path.abspath('../arango')) +_version = {} +with open("../arango/version.py") as fp: + exec(fp.read(), _version) # -- General configuration ------------------------------------------------ @@ -64,9 +61,9 @@ # built documents. # # The short X.Y version. -version = __version__ +version = _version['__version__'] # The full version, including alpha/beta/rc tags. -release = __version__ +release = _version['__version__'] # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/setup.py b/setup.py index 42ef808d..29e40588 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,17 @@ from setuptools import setup, find_packages -from arango import version +version = {} +with open("./arango/version.py") as fp: + exec(fp.read(), version) + +with open('./README.rst') as fp: + description = fp.read() setup( name='python-arango', description='Python Driver for ArangoDB', - version=version.__version__, + long_description=description, + version=version['__version__'], author='Joohwan Oh', author_email='joohwan.oh@outlook.com', url='https://github.com/joowani/python-arango',