File: setup.py

package info (click to toggle)
python-bottle-sqlite 0.2.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 100 kB
  • sloc: python: 157; makefile: 3
file content (40 lines) | stat: -rw-r--r-- 1,242 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/env python

import sys
import os
from setuptools import setup

# 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 = 'https://github.com/bottlepy/bottle-sqlite',
    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'
    ]
)