-
Notifications
You must be signed in to change notification settings - Fork 25
/
setup.py
executable file
·57 lines (47 loc) · 1.85 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
53
54
55
56
57
#!/usr/bin/python
"""txpostgres
==========
A Twisted wrapper for asynchronous PostgreSQL connections.
Based on the interface exposed from the native Postgres C library by the Python
psycopg2 driver.
Can be used as a drop-in replacement for Twisted's adbapi module when working
with PostgreSQL. The only part that does not provide 100% compatibility is
connection pooling, although pooling provided by txpostgres is very similar to
the one Twisted adbapi offers.
"""
import os
import sys
from distutils.core import setup
# Make sure we import txpostgres from the current directory, not some version
# that could have been installed earlier on the system
sys.path.insert(0, os.path.dirname(__file__))
from txpostgres import __versionstr__
# Revert sys.path to the previous state
sys.path = sys.path[1:]
setup(name="txpostgres",
version=__versionstr__,
description="Twisted wrapper for asynchronous PostgreSQL connections",
long_description=__doc__,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Framework :: Twisted",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Topic :: Database",
"Topic :: Software Development :: Libraries :: Python Modules",
],
platforms=["any"],
license="MIT",
author="Jan Urbanski",
maintainer="Jan Urbanski",
author_email="[email protected]",
maintainer_email="[email protected]",
url="http://wulczer.org/",
packages=["txpostgres"])