-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
59 lines (53 loc) · 1.78 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
'''
Flask-Pbj
-----------
Flask-Pbj provides support for protobuf and json formatted request and
response data. The pbj decorator serializes and deserializes json or
protobuf formatted messages to and from a python dictionary.
Flask-Pbj requires google protobuf 2.5
Links
`````
* `development version
<https://github.com/keenbrowne/flask-pbj>`_
* `Google Protobuf (use the 2.5 version)
<https://code.google.com/p/protobuf/downloads/list>`_
* `Google Protobuf Developer guide
<https://developers.google.com/protocol-buffers/docs/overview>`_
'''
import os
from setuptools import setup
module_path = os.path.join(os.path.dirname(__file__), 'flask_pbj.py')
version_line = filter(lambda l: l.startswith('__version_info__'),
open(module_path))[0]
__version__ = '.'.join(eval(version_line.split('__version_info__ = ')[-1]))
setup(
name='Flask-Pbj',
version=__version__,
url='https://github.com/keenbrowne/flask-pbj',
license='MIT',
author='Keen Browne',
author_email='keen.browne@gmail.com',
description='Simplifies the use of Protobuf in Flask app.routes',
long_description=__doc__,
py_modules=[
'flask_pbj'
],
zip_safe=False,
platforms='any',
install_requires=[
'Flask',
'protobuf==2.5.0',
'Werkzeug',
],
test_suite='tests',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)