forked from tg123/bottle-mysql
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
51 lines (47 loc) · 1.84 KB
/
setup.py
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
41
42
43
44
45
46
47
48
49
50
51
#!/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_pymysql.py')
source = open(filename).read().split('### CUT HERE')[0]
exec(source)
setup(
name = 'bottle-pymysql',
version = __version__,
url = 'https://github.com/tonal/bottle-pymysql',
description = 'MySQL integration for Bottle.',
long_description = __doc__,
author = 'Alexandr N. Zamaraev',
author_email = '[email protected]',
license = __license__,
platforms = 'any',
py_modules = ['bottle_pymysql'],
install_requires=['bottle', 'PyMySQL'],
classifiers = [
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
],
cmdclass = {'build_py': build_py}
)