forked from paulc/pgwrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
34 lines (30 loc) · 1.09 KB
/
Copy pathsetup.py
File metadata and controls
34 lines (30 loc) · 1.09 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
#!/usr/bin/env python
try:
from setuptools import setup, Command
except ImportError:
from distutils.core import Command,setup
version = "0.7"
description = 'Simple PostgreSQL database wrapper - provides wrapper over psycopg2 supporting a Python API for common sql functions'
long_description = file("README").read()
class GenerateReadme(Command):
description = "Generates README file"
user_options = []
def initialize_options(self): pass
def finalize_options(self): pass
def run(self):
import pgwrap,textwrap
long_description = textwrap.dedent(pgwrap.__doc__)
open("README","w").write(long_description)
setup(name='pgwrap',
version = version,
description = description,
long_description = long_description,
author = 'Paul Chakravarti',
author_email = 'paul.chakravarti@gmail.com',
url = 'https://github.com/paulchakravarti/pgwrap',
cmdclass = { 'readme' : GenerateReadme },
packages = ['pgwrap'],
install_requires = ['psycopg2'],
license = 'BSD',
classifiers = [ "Topic :: Database" ]
)