forked from 05bit/peewee-async
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
60 lines (52 loc) · 1.66 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
60
"""
Asynchronous interface for peewee ORM powered by asyncio.
"""
import os
from setuptools import setup
__version__ = ''
with open('peewee_async.py') as file:
for line in file:
if line.startswith('__version__'):
__version__ = line.split('=')[1].strip().strip("'").strip('"')
break
long_description = \
"""Current state: **alpha**, yet API seems fine and mostly stable.
In current version (0.5.x) new-high level API is introduced while older low-level API partially marked as deprecated.
* Works on Python 3.4+
* Has support for PostgreSQL via `aiopg`
* Has support for MySQL via `aiomysql`
* Single point for high-level async API
* Drop-in replacement for sync code, sync will remain sync
* Basic operations are supported
* Transactions support is present, yet not heavily tested
The source code is hosted on `GitHub`_.
.. _GitHub: https://github.com/05bit/peewee-async
"""
setup(
name="peewee-async",
version=__version__,
author="Alexey Kinev",
author_email='[email protected]',
url='https://github.com/05bit/peewee-async',
description=__doc__.strip(),
long_description=long_description,
license='MIT',
zip_safe=False,
install_requires=(
'peewee>=2.8.0,<=2.10.2',
),
py_modules=[
'peewee_async',
'peewee_asyncext'
],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3',
],
test_suite='tests',
test_loader='unittest:TestLoader',
)