forked from vimeo/graph-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
47 lines (41 loc) · 1.27 KB
/
setup.py
File metadata and controls
47 lines (41 loc) · 1.27 KB
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
42
43
44
45
46
47
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(
author='Dieter Plaetinck',
author_email='dieter@plaetinck.be',
version='1.95',
license='apache2',
setup_requires=["setuptools_git >= 0.3", ],
url='http://vimeo.github.io/graph-explorer/',
description='A graphite dashboard powered by structured metrics',
name="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",
"argparse"
],
tests_require=[
"pytest>=2.5.2",
],
cmdclass={"test": PyTest},
include_package_data=True,
)
if __name__ == '__main__':
setup(**setup_params)