-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
46 lines (40 loc) · 1.51 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
from setuptools import setup, find_packages
import os
setup_dir = os.path.dirname(__file__)
readme_path = os.path.join(setup_dir, 'README.rst')
version_path = os.path.join(setup_dir, 'logbeam/version.py')
requirements_path = os.path.join(setup_dir, "requirements.txt")
requirements_dev_path = os.path.join(setup_dir, "requirements-dev.txt")
__version__ = None
with open(version_path) as f:
code = compile(f.read(), version_path, 'exec')
exec(code)
with open(readme_path) as readme_file:
readme = readme_file.read()
with open(requirements_path) as req_file:
requirements = req_file.read().splitlines()
with open(requirements_dev_path) as req_file:
requirements_dev = req_file.read().splitlines()
setup(
name='logbeam',
version=__version__,
author='Nicholas Robinson-Wall',
author_email='[email protected]',
packages=find_packages(),
url='https://github.com/osperlabs/logbeam',
description='CloudWatch Logs - Python logging handler',
long_description=readme,
install_requires=requirements,
tests_require=requirements_dev,
package_data={'logbeam': ['requirements.txt', 'requirements-dev.txt']},
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Intended Audience :: System Administrators',
'Intended Audience :: Developers',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: System :: Logging',
],
)