2011-09-01 17:21:53 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
import sys
|
|
|
|
import os
|
2020-10-03 15:17:05 +00:00
|
|
|
from setuptools import setup
|
2011-09-01 17:21:53 +00:00
|
|
|
|
|
|
|
# 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')
|
2020-10-03 14:32:01 +00:00
|
|
|
with open(filename) as fp:
|
|
|
|
source = fp.read().split('### CUT HERE')[0]
|
2011-09-01 17:21:53 +00:00
|
|
|
exec(source)
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name = 'bottle-sqlite',
|
|
|
|
version = __version__,
|
2020-10-03 14:32:10 +00:00
|
|
|
url = 'https://github.com/bottlepy/bottle-sqlite',
|
2011-09-01 17:21:53 +00:00
|
|
|
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 = [
|
2020-10-03 14:32:01 +00:00
|
|
|
'bottle (>=0.12)'
|
2011-09-01 17:21:53 +00:00
|
|
|
],
|
|
|
|
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'
|
2020-10-03 15:17:05 +00:00
|
|
|
]
|
2011-09-01 17:21:53 +00:00
|
|
|
)
|