forked from log4mongo/log4mongo-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
48 lines (44 loc) · 1.67 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
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import log4mongo
import os
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname),
encoding='utf-8').read()
except TypeError: # encoding is only Python3
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='log4mongo',
version=log4mongo.__version__,
description='mongo database handler for python logging',
long_description=read('README.rst'),
author=u'Vladimír Gorej',
author_email='[email protected]',
url='http://log4mongo.org/display/PUB/Log4mongo+for+Python',
download_url='http://github.com/log4mongo/log4mongo-python/tarball/master',
license='BSD',
keywords="mongodb mongo logging handler",
install_requires=['pymongo'],
setup_requires=['pytest-runner'],
tests_require=['pytest'],
packages=find_packages(exclude=['tests']),
platforms='any',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities',
'Topic :: System :: Logging',
'Topic :: System :: Monitoring'
],
)