-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
66 lines (58 loc) · 1.96 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
"""
Flask-SignalBus
---------------
Adds to Flask-SQLAlchemy the capability to *atomically* send messages
(signals) over a message bus.
The processing of each message involves three steps:
1. The message is recorded in the SQL database as a row in a table.
2. The message is sent over the message bus (RabbitMQ for example).
3. Message's corresponding table row is deleted.
Normally, the sending of the recorded messages (steps 2 and 3) is done
automatically after each transaction commit, but when needed, it can
also be triggered explicitly with a method call, or through the Flask
CLI.
"""
from setuptools import setup
setup(
name='Swpt-Pythonlib',
version='0.10.4',
url='https://github.com/swaptacular/swpt_pythonlib',
license='MIT',
author='Evgeni Pandurski',
author_email='epandurski@gmail.com',
description='A Python library used by many Swaptacular micro-services',
long_description=__doc__,
packages=[
'swpt_pythonlib',
'swpt_pythonlib.rabbitmq',
'swpt_pythonlib.flask_signalbus',
],
zip_safe=True,
platforms='any',
install_requires=[
'Flask>=2.2.5',
'SQLAlchemy>=1.4.18',
'Flask-SQLAlchemy>=3.0.5',
'marshmallow>=3.10',
'pika>=1.3',
],
tests_require=[
'pytest~=6.2',
'pytest-cov~=2.7',
'mock~=2.0',
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
]
)