-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
29 lines (25 loc) · 855 Bytes
/
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
from setuptools import setup, find_packages
import sys
import os
import platform
sys.path.insert(0, '.')
from ln import __version__
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
install_requires = ['flask', 'requests', 'sqlalchemy', 'python-dateutil']
# Trick lifted from tox setup.py
version = sys.version_info[:2]
if version < (2,7) or (3,0) <= version <= (3,1):
install_requires.append('argparse')
if platform.python_implementation() != 'PyPy':
install_requires.append('numpy')
setup(
name = "ln",
version = __version__,
description = ("Natural Log is a time-series database with a REST API."),
url = "http://github.com/seibert/ln",
long_description = read('README.md'),
packages = find_packages(),
scripts = ['bin/ln-server'],
install_requires = install_requires
)