This repository was archived by the owner on Sep 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
62 lines (52 loc) · 1.45 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
from datetime import datetime
from subprocess import check_output, CalledProcessError
from setuptools import setup, find_packages
from warnings import warn
def version():
date_string = datetime.now().strftime("1.%Y%m%d.%H%M%S")
try:
git_sha = check_output(["git", "describe", "--always", "--dirty=dirty", "--match=NOTHING"]).strip().decode()
return "{}+{}".format(date_string, git_sha)
except (CalledProcessError, OSError) as e:
warn("Error calling git: {}".format(e))
return date_string
GENERIC_REQ = [
"Flask==0.12.4",
"flask-talisman==0.5.1",
"boto3==1.5.24",
"prometheus_client == 0.3.1",
"gevent == 1.3.7",
]
CODE_QUALITY_REQ = [
'prospector',
]
TESTS_REQ = [
'pytest-html',
'pytest-cov',
'pytest-helpers-namespace',
'pytest >= 3.0',
"moto==1.2.0",
]
CI_REQ = [
"tox==2.9.1",
"tox-travis",
]
setup(
name="fiaas-ais",
url="https://github.com/fiaas/ais",
author="FIAAS developers",
author_email="[email protected]",
version=version(),
packages=find_packages(exclude=("tests",)),
zip_safe=True,
# Requirements
install_requires=GENERIC_REQ,
setup_requires=['pytest-runner', 'wheel', 'setuptools_scm'],
extras_require={
"dev": TESTS_REQ + CODE_QUALITY_REQ + CI_REQ,
"ci": CI_REQ,
"codacy": ["codacy-coverage"],
},
tests_require=TESTS_REQ,
entry_points={"console_scripts": ['ais=fiaas_ais:main']},
)