bottle-sqlite/setup.py
Marcel Hellkamp 5476754f1d It's 2020
2020-10-03 16:32:01 +02:00

47 lines
1.4 KiB
Python

#!/usr/bin/env python
import sys
import os
from distutils.core import setup
try:
from distutils.command.build_py import build_py_2to3 as build_py
except ImportError:
from distutils.command.build_py import build_py
# This ugly hack executes the first few lines of the module file to look up some
# common variables. We cannot just import the module because it depends on other
# modules that might not be installed yet.
filename = os.path.join(os.path.dirname(__file__), 'bottle_sqlite.py')
with open(filename) as fp:
source = fp.read().split('### CUT HERE')[0]
exec(source)
setup(
name = 'bottle-sqlite',
version = __version__,
url = 'http://bottlepy.org/docs/dev/plugins/sqlite.html',
description = 'SQLite3 integration for Bottle.',
long_description = __doc__,
author = 'Marcel Hellkamp',
author_email = 'marc@gsites.de',
license = __license__,
platforms = 'any',
py_modules = [
'bottle_sqlite'
],
requires = [
'bottle (>=0.12)'
],
classifiers = [
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
],
cmdclass = {'build_py': build_py}
)