forked from vimeo/graph-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
41 lines (35 loc) · 1.05 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
32
33
34
35
36
37
38
39
40
41
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
from glob import glob
import sys
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
setup_params = dict(
setup_requires=["setuptools_git >= 0.3", ],
name="graph-explorer",
description="Graph-Explorer",
packages=find_packages(),
scripts=glob("bin/*.py"),
install_requires=[
"bottle==0.11.6",
"urllib3==1.7.1", # 71f84f9ab29b9a2818a138fa000bcf75bb05812a
"elasticsearch==0.4.3", # 422d43f4f8c981a5d93b06eefc3ce8f261cfb48c
"paste==1.7.5.1",
"wtforms",
],
tests_require=[
"pytest>=2.5.2",
],
cmdclass={"test": PyTest},
include_package_data=True,
)
if __name__ == '__main__':
setup(**setup_params)