-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·56 lines (51 loc) · 1.75 KB
/
setup.py
File metadata and controls
executable file
·56 lines (51 loc) · 1.75 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
48
49
50
51
52
53
54
55
56
#!/usr/bin/env python
import setuptools
import re
import ast
with open("README.md", "r") as fh:
long_description = fh.read()
try:
from pypandoc import convert
read_md = lambda f: convert(f, 'rst') # noqa
except ImportError:
print('warning: pypandoc module not found, could not convert Markdown to RST')
read_md = lambda f: open(f).read() # noqa
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))
setuptools.setup(
name='stackify-api-python',
version=version,
author='Stackify',
author_email='support@stackify.com',
packages=setuptools.find_packages(exclude=("tests", "*tests", "tests*",)),
url='https://github.com/stackify/stackify-api-python',
description='Stackify API for Python',
long_description=long_description,
long_description_content_type="text/markdown",
keywords=['logging', 'stackify', 'exception'],
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Operating System :: OS Independent",
],
install_requires=[
'protobuf>=3.9.1',
'retrying>=1.2.3',
'requests>=2.4.1',
'requests-unixsocket>=0.2.0'
],
test_suite='tests',
tests_requires=[
'mock>=1.0.1',
'nose==1.3.4'
]
)