1 | """ |
---|
2 | pyDAL is a pure Python Database Abstraction Layer. |
---|
3 | |
---|
4 | It dynamically generates the SQL in real time using the specified dialect for |
---|
5 | the database back end, so that you do not have to write SQL code or learn |
---|
6 | different SQL dialects (the term SQL is used generically), and your code will |
---|
7 | be portable among different types of databases. |
---|
8 | |
---|
9 | pyDAL comes from the original web2py's DAL, with the aim of being |
---|
10 | wide-compatible. pyDAL doesn't require web2py and can be used in any |
---|
11 | Python context. |
---|
12 | |
---|
13 | |
---|
14 | Links |
---|
15 | ----- |
---|
16 | * `website <https://github.com/web2py/pydal>`_ |
---|
17 | * `documentation <http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer>`_ |
---|
18 | """ |
---|
19 | |
---|
20 | import re |
---|
21 | import ast |
---|
22 | from setuptools import setup |
---|
23 | |
---|
24 | _version_re = re.compile(r"__version__\s+=\s+(.*)") |
---|
25 | |
---|
26 | with open("pydal/__init__.py", "rb") as f: |
---|
27 | version = str( |
---|
28 | ast.literal_eval(_version_re.search(f.read().decode("utf-8")).group(1)) |
---|
29 | ) |
---|
30 | |
---|
31 | setup( |
---|
32 | name="pydal", |
---|
33 | version=version, |
---|
34 | url="https://github.com/web2py/pydal", |
---|
35 | license="BSD", |
---|
36 | author="Massimo Di Pierro", |
---|
37 | author_email="massimo.dipierro@gmail.com", |
---|
38 | maintainer="Massimo Di Pierro", |
---|
39 | maintainer_email="massimo.dipierro@gmail.com", |
---|
40 | description="a pure Python Database Abstraction Layer (for python version 2.7 and 3.x)", |
---|
41 | long_description=__doc__, |
---|
42 | packages=[ |
---|
43 | "pydal", |
---|
44 | "pydal.adapters", |
---|
45 | "pydal.dialects", |
---|
46 | "pydal.helpers", |
---|
47 | "pydal.parsers", |
---|
48 | "pydal.representers", |
---|
49 | "pydal.contrib", |
---|
50 | ], |
---|
51 | include_package_data=True, |
---|
52 | zip_safe=False, |
---|
53 | platforms="any", |
---|
54 | classifiers=[ |
---|
55 | "Development Status :: 5 - Production/Stable", |
---|
56 | "Environment :: Web Environment", |
---|
57 | "Intended Audience :: Developers", |
---|
58 | "License :: OSI Approved :: BSD License", |
---|
59 | "Operating System :: OS Independent", |
---|
60 | "Programming Language :: Python", |
---|
61 | "Programming Language :: Python :: 2", |
---|
62 | "Programming Language :: Python :: 3", |
---|
63 | "Topic :: Database :: Front-Ends", |
---|
64 | "Topic :: Software Development :: Libraries :: Python Modules", |
---|
65 | ], |
---|
66 | ) |
---|