forked from 05bit/peewee-async
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
78 lines (69 loc) · 2 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
"""
Asynchronous interface for peewee ORM powered by asyncio.
"""
from setuptools import setup
__version__ = ''
with open('peewee_async.py') as module_fp:
for line in module_fp:
if line.startswith('__version__'):
__version__ = line.split('=')[1].strip().strip("'").strip('"')
break
LONG_DESCRIPTION = \
"""Current state: **alpha**, yet API seems fine and mostly stable.
Since version 0.6.0 peewee-async is compatible with peewee 3.5+ and
support of Python 3.4 is dropped.
* Works on Python 3.5+
* Required peewee 3.5+
* 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
"""
# Usage hints:
#
# python setup.py develop
# pip install -e .[develop]
# python setup.py sdist bdist_wheel upload
#
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>=3.5.0',
),
extras_require={
'develop': [
'pylint',
'wheel',
'aiomysql',
'aiopg'
],
'aiopg': ['aiopg>=0.14.0'],
'aiomysql': ['aiomysql>=0.0.19'],
},
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',
)