forked from jfinkels/flask-restless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
81 lines (70 loc) · 2.87 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
79
80
81
# -*- coding: utf-8; Mode: Python -*-
#
# Copyright (C) 2011 Lincoln de Sousa <[email protected]>
# Copyright 2012 Jeffrey Finkelstein <[email protected]>
#
# This file is part of Flask-Restless.
#
# Flask-Restless is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published by the
# Free Software Foundation, either version 3 of the License, or (at your
# option) any later version.
#
# Flask-Restless is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
# details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Flask-Restless. If not, see <http://www.gnu.org/licenses/>.
"""
Flask-Restless
~~~~~~~~~~~~~~
Flask-Restless is a `Flask <http://flask.pocoo.org>`_ extension which
facilitates the creation of ReSTful JSON APIs. It is compatible with models
which have been described using `Elixir <http://elixir.ematia.de>`_, a layer on
top of `SQLAlchemy <http://sqlalchemy.org>`_.
For more information, check the World Wide Web!
* `Documentation <http://readthedocs.org/docs/flask-restless>`_
* `PyPI listing <http://pypi.python.org/pypi/Flask-Restless>`_
* `Source code repository <http://github.com/jfinkels/flask-restless>`_
"""
from __future__ import with_statement
from setuptools import setup
def from_requirements_file(filename='requirements.txt'):
"""Returns a list of required Python packages from the file whose path is
given by `filename`.
By default, `filename` is the conventional :file:`requirements.txt` file.
"""
with open(filename, 'r') as f:
requirements = f.read()
return requirements.split()
setup(
author='Jeffrey Finkelstein',
author_email='[email protected]',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Database :: Front-Ends',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules'
],
description='A Flask extension for easy ReSTful API generation',
download_url='http://pypi.python.org/pypi/Flask-Restless',
install_requires=from_requirements_file(),
include_package_data=True,
keywords=['ReST', 'API', 'Flask', 'Elixir'],
license='GNU AGPLv3+',
long_description=__doc__,
name='Flask-Restless',
platforms='any',
packages=['flask_restless'],
test_suite='tests.suite',
url='http://github.com/jfinkels/flask-restless',
version='0.4-dev',
zip_safe=False
)