-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathsetup.py
More file actions
53 lines (47 loc) · 1.27 KB
/
setup.py
File metadata and controls
53 lines (47 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
48
49
50
51
52
53
import os
try:
import multiprocessing # NOQA: F401
except ImportError:
pass
# nose requires multiprocessing and logging to be initialized before the setup
# call, or we'll get a spurious crash on exit.
from setuptools import setup, find_packages
# figure out what the install will need
INSTALL_REQUIRES = [
"boto3",
"python-json-logger",
"retrying",
]
TESTS_REQUIRE = [
"mock",
"moto",
"pytest",
]
SETUP_REQUIRES = [
"pytest-runner",
]
def read_text_file(fname):
'''Utility function to read the README file.'''
content = None
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
content = f.read()
return content
setup(
name="sqs-log-handler",
version="1.1.1",
author="Wei Liu",
author_email="weil@zillowgroup.com",
description="a python log handler that pushes logs into AWS sqs",
license=read_text_file('LICENSE'),
keywords="zillow",
url="http://github.com/zillow/python-sqs-logging-handler",
packages=find_packages(),
long_description=read_text_file('README.md'),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Topic :: Utilities",
],
install_requires=INSTALL_REQUIRES,
tests_require=TESTS_REQUIRE,
setup_requires=SETUP_REQUIRES,
)