forked from getslash/slash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
48 lines (41 loc) · 1.31 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
42
43
44
45
46
47
48
from setuptools import setup, find_packages
import functools
import os
import platform
_PYTHON_VERSION = platform.python_version()
_in_same_dir = functools.partial(os.path.join, os.path.dirname(__file__))
with open(_in_same_dir("slash", "__version__.py")) as version_file:
exec(version_file.read()) # pylint: disable=W0122
install_requires = [
"colorama",
"confetti>=2.0.0",
"emport==1.0.0",
"logbook>=0.4.2",
"requests>=1.1.0",
"raven",
]
if _PYTHON_VERSION < "2.7":
install_requires.append("argparse")
install_requires.append("ordereddict")
if _PYTHON_VERSION < "3.3":
install_requires.append("contextlib2")
setup(name="slash",
classifiers = [
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
],
description="A Testing Framework",
license="BSD",
author="Rotem Yaari",
author_email="vmalloc@gmail.com",
url="http://vmalloc.github.io/slash",
version=__version__, # pylint: disable=E0602
packages=find_packages(exclude=["tests"]),
install_requires=install_requires,
entry_points = dict(
console_scripts = [
"slash = slash.frontend.main:main_entry_point",
]
),
)