forked from web2py/pydal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
59 lines (51 loc) · 1.94 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
52
53
54
55
56
57
58
59
"""
pyDAL is a pure Python Database Abstraction Layer.
It dynamically generates the SQL in real time using the specified dialect for
the database back end, so that you do not have to write SQL code or learn
different SQL dialects (the term SQL is used generically), and your code will
be portable among different types of databases.
pyDAL comes from the original web2py's DAL, with the aim of being
wide-compatible. pyDAL doesn't require web2py and can be used in any
Python context.
Links
-----
* `website <https://github.com/web2py/pydal>`_
* `documentation <http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer>`_
"""
import re
import ast
from setuptools import setup
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('pydal/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
setup(
name='pyDAL',
version=version,
url='https://github.com/web2py/pydal',
license='BSD',
author='Massimo Di Pierro',
author_email='mdipierro@cs.depaul.edu',
maintainer='Giovanni Barillari',
maintainer_email='gi0baro@d4net.org',
description='a pure Python Database Abstraction Layer',
long_description=__doc__,
packages=[
'pydal', 'pydal.adapters', 'pydal.dialects', 'pydal.helpers',
'pydal.parsers', 'pydal.representers', 'pydal.contrib'],
include_package_data=True,
zip_safe=False,
platforms='any',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Database :: Front-Ends',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)