forked from eht16/python-logstash-async
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
52 lines (45 loc) · 1.61 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
# -*- coding: utf-8 -*-
from os import path
from setuptools import setup
from shutil import rmtree
import sys
NAME = 'python-logstash-async'
VERSION = '1.0.0'
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst')) as f:
LONG_DESCRIPTION = f.read().decode('utf-8')
if 'bdist_wheel' in sys.argv:
# Remove previous build dir when creating a wheel build, since if files have been removed
# from the project, they'll still be cached in the build dir and end up as part of the
# build, which is really neat!
for directory in ('build', 'dist', 'python_logstash_async.egg-info'):
try:
rmtree(directory)
except:
pass
setup(
name=NAME,
packages=['logstash_async'],
version=VERSION,
description='Asynchronous Python logging handler for Logstash.',
long_description=LONG_DESCRIPTION,
license='MIT',
author='Koen Deschacht',
author_email='[email protected]',
url='https://github.com/koendeschacht/python-logstash-async',
keywords='logging logstash asynchronous',
install_requires=['six'],
setup_requires=['flake8'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Logging',
]
)