forked from stackify/stackify-api-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·42 lines (37 loc) · 1.17 KB
/
setup.py
File metadata and controls
executable file
·42 lines (37 loc) · 1.17 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
#!/usr/bin/env python
from setuptools import setup
import re
import ast
try:
from pypandoc import convert
read_md = lambda f: convert(f, 'rst')
except ImportError:
print('warning: pypandoc module not found, could not convert Markdown to RST')
read_md = lambda f: open(f).read()
version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('stackify/__init__.py') as f:
f = f.read()
version = ast.literal_eval(version_re.search(f).group(1))
setup(
name = 'stackify',
version = version,
author = 'Matthew Thompson',
author_email = '[email protected]',
packages = ['stackify'],
url = 'https://github.com/stackify/stackify-api-python',
license = open('LICENSE.txt').readline(),
description = 'Stackify API for Python',
long_description = read_md('README.md'),
download_url = 'https://github.com/stackify/stackify-api-python/tarball/0.0.1',
keywords = ['logging', 'stackify', 'exception'],
classifiers=["Programming Language :: Python"],
install_requires = [
'retrying>=1.2.3',
'requests>=2.4.1'
],
test_suite = 'tests',
tests_requires = [
'mock>=1.0.1',
'nose==1.3.4'
]
)