-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
43 lines (41 loc) · 1.71 KB
/
Copy pathsetup.py
File metadata and controls
43 lines (41 loc) · 1.71 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
import os
from setuptools import setup
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='dblogger',
version='1.0.0',
description='Log handler for logging to PostgreSQL Databases (async and sync)',
long_description='''
This is a log handler created to write log records to a PostgresSQL database.
It will automatically detect which version of the postgres database adapter is in
use and adapt it's logging behaviour to use either psycopg2 for synchronous logging
(which means the logger blocks until the transaction is in the DB) or it will use
asyncpg to log asynchronously (a running runloop is required).
''',
long_description_content_type='text/markdown',
url='https://github.com/anfema/python-dblogger',
author='Johannes Schriewer',
author_email='hallo@dunkelstern.de',
license='LICENSE.txt',
include_package_data=True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 3.7',
'Operating System :: OS Independent'
],
keywords='postgresql psycopg2 asyncpg logger db',
packages=['dblogger', 'dblogger.models', 'dblogger.async_models', 'dblogger.sync_models'],
scripts=[
'bin/dblogger_create_schema.py',
'bin/logtail'
],
install_requires=[
'termcolor'
],
dependency_links=[
]
)