Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tag: v0.1.4
Fetching contributors…

Cannot retrieve contributors at this time

50 lines (37 sloc) 1.137 kB
#!/usr/bin/env python
from __future__ import with_statement
from distutils.core import setup
import re
def read(filename):
with open(filename, 'r') as fh:
return fh.read()
def get_metadata(module_path):
"""Extract the metadata from a module file."""
matches = re.finditer(
r"^__(\w+?)__ *= *'(.*?)'$",
read(module_path),
re.MULTILINE)
return dict(
(match.group(1), match.group(2).decode('unicode_escape'))
for match in matches)
META = get_metadata('dbkit.py')
setup(
name='dbkit',
version=META['version'],
description='DB-API made easier',
long_description=read('README'),
url='https://github.com/kgaughan/dbkit/',
license='MIT',
py_modules=['dbkit'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Other Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Database',
],
author=META['author'],
author_email=META['email']
)
Jump to Line
Something went wrong with that request. Please try again.