Skip to content

Commit 52ec168

Browse files
committed
Update setup.py, MANIFEST.in and docs/conf.py
1 parent d04f3db commit 52ec168

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

MANIFEST.in

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
include README.rst LICENSE
1+
include README.rst LICENSE
2+
prune tests

arango/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '4.0.0'
1+
__version__ = '4.0.1'

docs/conf.py

+5-8
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,10 @@
1717
# add these directories to sys.path here. If the directory is relative to the
1818
# documentation root, use os.path.abspath to make it absolute, like shown here.
1919
#
20-
import os
21-
import sys
22-
23-
from arango.version import __version__
24-
25-
sys.path.insert(0, os.path.abspath('../arango'))
2620

21+
_version = {}
22+
with open("../arango/version.py") as fp:
23+
exec(fp.read(), _version)
2724

2825
# -- General configuration ------------------------------------------------
2926

@@ -64,9 +61,9 @@
6461
# built documents.
6562
#
6663
# The short X.Y version.
67-
version = __version__
64+
version = _version['__version__']
6865
# The full version, including alpha/beta/rc tags.
69-
release = __version__
66+
release = _version['__version__']
7067

7168
# The language for content autogenerated by Sphinx. Refer to documentation
7269
# for a list of supported languages.

setup.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
from setuptools import setup, find_packages
22

3-
from arango import version
3+
version = {}
4+
with open("./arango/version.py") as fp:
5+
exec(fp.read(), version)
6+
7+
with open('./README.rst') as fp:
8+
description = fp.read()
49

510
setup(
611
name='python-arango',
712
description='Python Driver for ArangoDB',
8-
version=version.__version__,
13+
long_description=description,
14+
version=version['__version__'],
915
author='Joohwan Oh',
1016
author_email='joohwan.oh@outlook.com',
1117
url='https://github.com/joowani/python-arango',

0 commit comments

Comments
 (0)