forked from mrocklin/chest
-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
executable file
·31 lines (28 loc) · 1.06 KB
/
setup.py
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
#!/usr/bin/env python
from os.path import exists
from setuptools import setup
import re
version_file = 'chest/_version.py'
version_raw = open(version_file).read()
version_regex = r"^__version__ = ['\"]([^'\"]*)['\"]"
version_result = re.search(version_regex, version_raw, re.M)
if version_result:
version_string = version_result.group(1)
else:
raise RuntimeError("Unable to find version in %s." % (version_file,))
setup(name='chest',
version=version_string,
description='Simple on-disk dictionary',
url='https://github.com/ContinuumIO/chest',
author=('https://raw.githubusercontent.com/' +
'ContinuumIO/chest/master/AUTHORS.md'),
maintainer='Matthew Rocklin',
maintainer_email='[email protected]',
license='BSD',
keywords='dictionary out-of-core',
install_requires=list(open('requirements.txt').read().strip()
.split('\n')),
packages=['chest'],
long_description=(open('README.rst').read() if exists('README.rst')
else ''),
zip_safe=False)