[Python-modules-commits] [flask-restful] 03/07: Imported Upstream version 0.3.4

Alexandre Viau reazem-guest at moszumanska.debian.org
Fri Jul 31 20:14:53 UTC 2015


This is an automated email from the git hooks/post-receive script.

reazem-guest pushed a commit to branch master
in repository flask-restful.

commit bb09837741b975de488ac9843943be920437a992
Author: aviau <alexandre at alexandreviau.net>
Date:   Fri Jul 31 16:00:41 2015 -0400

    Imported Upstream version 0.3.4
---
 AUTHORS.md                            | 103 ++++
 CHANGES.md                            | 279 ++++++++++
 CONTRIBUTING.md                       |  18 +
 Flask_RESTful.egg-info/PKG-INFO       |  14 +-
 Flask_RESTful.egg-info/SOURCES.txt    |  43 +-
 Flask_RESTful.egg-info/requires.txt   |   2 +-
 LICENSE                               |  25 +
 MANIFEST.in                           |  12 +
 Makefile                              | 195 +++++++
 PKG-INFO                              |  14 +-
 README.md                             |  13 +
 docs/Makefile                         | 153 ++++++
 docs/_static/flask-restful-small.png  | Bin 0 -> 20913 bytes
 docs/_static/flask-restful.png        | Bin 0 -> 17865 bytes
 docs/_templates/sidebarintro.html     |  14 +
 docs/_templates/sidebarlogo.html      |   4 +
 docs/api.rst                          |  47 ++
 docs/conf.py                          | 263 ++++++++++
 docs/contents.rst.inc                 |  39 ++
 docs/extending.rst                    | 234 +++++++++
 docs/fields.rst                       | 243 +++++++++
 docs/index.rst                        |  13 +
 docs/installation.rst                 |  27 +
 docs/intermediate-usage.rst           | 278 ++++++++++
 docs/make.bat                         | 190 +++++++
 docs/quickstart.rst                   | 363 +++++++++++++
 docs/reqparse.rst                     | 190 +++++++
 docs/testing.rst                      |  31 ++
 examples/todo.py                      |  59 +++
 examples/todo_simple.py               |  43 ++
 examples/xml_representation.py        |  35 ++
 flask_restful/__init__.py             | 288 ++++++++---
 flask_restful/fields.py               | 192 +++++--
 flask_restful/{types.py => inputs.py} | 103 +++-
 flask_restful/representations/json.py |  19 +-
 flask_restful/reqparse.py             | 246 ++++++---
 flask_restful/utils/__init__.py       |  15 +-
 flask_restful/utils/cors.py           |  11 +-
 flask_restful/utils/crypto.py         |   6 +
 flask_restful/utils/ordereddict.py    | 130 -----
 setup.cfg                             |   3 +
 setup.py                              |  32 +-
 tests/README.md                       |   5 +
 tests/__init__.py                     |  17 +
 tests/requirements.txt                |   4 +
 tests/test_accept.py                  | 222 ++++++++
 tests/test_api.py                     | 940 ++++++++++++++++++++++++++++++++++
 tests/test_api_with_blueprint.py      | 192 +++++++
 tests/test_cors.py                    |  63 +++
 tests/test_crypto.py                  |  10 +
 tests/test_fields.py                  | 496 ++++++++++++++++++
 tests/test_inputs.py                  | 402 +++++++++++++++
 tests/test_paging.py                  |  27 +
 tests/test_reqparse.py                | 846 ++++++++++++++++++++++++++++++
 54 files changed, 6853 insertions(+), 360 deletions(-)

diff --git a/AUTHORS.md b/AUTHORS.md
new file mode 100644
index 0000000..4e638ac
--- /dev/null
+++ b/AUTHORS.md
@@ -0,0 +1,103 @@
+Authors
+=======
+
+A huge thanks to all of our contributors:
+
+- Alex Gaynor
+- Alex M
+- Alex Morken
+- Andrew Dunham
+- Andriy Yurchuk
+- Anil Kulkarni
+- Antonio Dourado
+- Antonio Herraiz
+- Artur Rodrigues
+- Axel Haustant
+- Belousow Makc
+- Bennett, Bryan
+- Bohan Zhang
+- Bryan Bennett
+- Bulat Bochkariov
+- Cameron Brandon White
+- Catherine Devlin
+- Dan Quirk
+- Daniele Esposti
+- David Arnold
+- David Baumgold
+- David Boucha
+- David Crawford
+- Dimitris Theodorou
+- Doug Black
+- Evan Dale Aromin
+- Frank Stratton
+- Garret Raziel
+- Gary Belvin
+- Gilles Dartiguelongue
+- Giorgio Salluzzo
+- Guillaume BINET
+- Jacob Magnusson
+- James Booth
+- James Ogura
+- James Turk
+- Joakim Ekberg
+- Johannes
+- Jordan Yelloz
+- Josh Friend
+- Joshua C. Randall
+- Joshua Randall
+- José Fernández Ramos
+- Juan Rossi
+- JuneHyeon Bae
+- Kamil Gałuszka
+- Kevin Burke
+- Kevin Deldycke
+- Kevin Funk
+- Kyle Conroy
+- Lance Ingle
+- Lars Holm Nielsen
+- Luiz Armesto
+- Marek Hlobil
+- Matt Wright
+- Max Peterson
+- Maxim
+- Michael Hwang
+- Michael Newman
+- Miguel Grinberg
+- Mihai Tomescu
+- Pavel Tyslyatsky
+- Petrus J.v.Rensburg
+- Philippe Ndiaye
+- Piotr Husiatyński
+- Prasanna Swaminathan
+- Robert Warner
+- Rod Cloutier
+- Ryan Horn
+- Sam Kimbrel
+- Sander Sink
+- Sasha Baranov
+- Saul Diez-Guerra
+- Sven-Hendrik Haase
+- Usman Ehtesham Gul
+- Victor Neo
+- Vladimir Pal
+- WooParadog
+- Yaniv Aknin
+- bret barker
+- justanr
+- k-funk
+- kelvinhammond
+- kenjones
+- lyschoening
+- mailto1587
+- mniebla
+- mozillazg
+- muchosalsa
+- nachinius
+- nixdata
+- papaeye
+- pingz
+- saml
+- siavashg
+- silasray
+- soasme
+- y-p
diff --git a/CHANGES.md b/CHANGES.md
new file mode 100644
index 0000000..99e5407
--- /dev/null
+++ b/CHANGES.md
@@ -0,0 +1,279 @@
+Flask-RESTful Changelog
+=======================
+
+Here you can see the full list of changes between each Flask-RESTful release.
+
+Version 0.3.4
+-------------
+
+Released July 20, 2015
+
+- Fixed issue where `abort()` and `raise Exception` were not equivalent ([#205](https://github.com/flask-restful/flask-restful/issues/205))
+- Fixed `RequestParser` settings not being copied properly ([#483](https://github.com/flask-restful/flask-restful/pull/483))
+- Add ability to configure json serializer settings from application config ([#458](https://github.com/flask-restful/flask-restful/pull/458))
+- Project metadata, tests, and examples are now included in source distributions ([#475](https://github.com/flask-restful/flask-restful/issues/475))
+- Various documentation improvements
+
+Version 0.3.3
+-------------
+
+Released May 22, 2015
+
+- Disable [challenge on 401](https://github.com/flask-restful/flask-restful/commit/fe53f49bdc28dd83ee3acbeb0a313b411411e377)
+  by default (**THIS IS A BREAKING CHANGE**, albeit a very small one with behavior that probably no one depended upon. You can easily change this back to the old way).
+- Doc fixes ([#404](https://github.com/flask-restful/flask-restful/pull/404), [#406](https://github.com/flask-restful/flask-restful/pull/406), [#436](https://github.com/flask-restful/flask-restful/pull/436), misc. other commits)
+- Fix truncation of microseconds in iso8601 datetime output ([#368](https://github.com/flask-restful/flask-restful/pull/405))
+- `null` arguments from JSON no longer cast to string ([#390](https://github.com/flask-restful/flask-restful/pull/390))
+- Made list fields work with classes ([#409](https://github.com/flask-restful/flask-restful/pull/409))
+- Fix `url_for()` when used with Blueprints ([#410](https://github.com/flask-restful/flask-restful/pull/410))
+- Add CORS "Access-Control-Expose-Headers" support ([#412](https://github.com/flask-restful/flask-restful/pull/412))
+- Fix class references in RequestParser ([#414](https://github.com/flask-restful/flask-restful/pull/414))
+- Allow any callables to be used as lazy attributes ([#417](https://github.com/flask-restful/flask-restful/pull/417))
+- Fix references to `flask.ext.*` ([#420](https://github.com/flask-restful/flask-restful/issues/420))
+- Trim support with fixes ([#428](https://github.com/flask-restful/flask-restful/pull/428))
+- Added ability to pass-in parameters into Resource constructors ([#444](https://github.com/flask-restful/flask-restful/pull/444))
+- Fix custom type docs on "Intermediate usage" and docstring ([#434](https://github.com/flask-restful/flask-restful/pull/434))
+- Fixed problem with `RequestParser.copy` ([#435](https://github.com/flask-restful/flask-restful/pull/435))
+- Feature/error bundling ([#431](https://github.com/flask-restful/flask-restful/pull/431))
+- Explicitly check the class type for `propagate_exceptions` ([#445](https://github.com/flask-restful/flask-restful/pull/445))
+- Remove min. year limit 1900 in `inputs.date` ([#446](https://github.com/flask-restful/flask-restful/pull/446))
+
+Version 0.3.2
+-------------
+
+Released February 25, 2015
+
+- Doc fixes ([#344](https://github.com/flask-restful/flask-restful/pull/344), [#378](https://github.com/flask-restful/flask-restful/issues/378), [#402](https://github.com/flask-restful/flask-restful/pull/402))
+- Microseconds no longer truncated in ISO8601 format datetime inputs ([#381](https://github.com/flask-restful/flask-restful/pull/381))
+- Datetime inputs now preserve timezone instead of forcing conversion to UTC ([#381](https://github.com/flask-restful/flask-restful/pull/381))
+- Fixes content negotiation to respect q-values ([#245](https://github.com/flask-restful/flask-restful/pull/245))
+- Fix `fields.URL` when used with Blueprints ([#379](https://github.com/flask-restful/flask-restful/pull/379))
+- Fix `BadRequest` raised with empty body and `application/json` content type ([#366](https://github.com/flask-restful/flask-restful/pull/366))
+- Improved argument validation error messages ([#386](https://github.com/flask-restful/flask-restful/pull/386))
+- Allow custom validation for `FileStorage` type arguments ([#388](https://github.com/flask-restful/flask-restful/pull/388))
+- Allow lambdas to be specified for field attributes ([#309](https://github.com/flask-restful/flask-restful/pull/309))
+- Added regex input validator ([#374](https://github.com/flask-restful/flask-restful/pull/374))
+
+Version 0.3.1
+-------------
+
+Released December 13, 2014
+
+- Adds `strict` option to `parse_args()` ([#358](https://github.com/flask-restful/flask-restful/pull/358))
+- Adds an option to envelop marshaled objects ([#349](https://github.com/flask-restful/flask-restful/pull/349))
+- Fixes initialization of `Api.blueprint` attribute ([#263](https://github.com/flask-restful/flask-restful/pull/263))
+- Makes `Api.error_router` fall back to Flask handlers ([#296](https://github.com/flask-restful/flask-restful/pull/296)/[#356](https://github.com/flask-restful/flask-restful/pull/356))
+- Makes docs more viewable on mobile devices ([#347](https://github.com/flask-restful/flask-restful/issues/347))
+- Wheel distribution is now universal ([#363](https://github.com/flask-restful/flask-restful/issues/363))
+
+Version 0.3.0
+--------------
+
+Released November 22, 2014
+
+- Adds `@api.resource` decorator ([#311](https://github.com/flask-restful/flask-restful/pull/311))
+- Adds custom error handling ([#225](https://github.com/flask-restful/flask-restful/pull/225))
+- Adds `RequestParser` inheritance ([#249](https://github.com/flask-restful/flask-restful/pull/249))
+- Adds 1/0 as valid values for `inputs.boolean` ([#341](https://github.com/flask-restful/flask-restful/pull/341))
+- Improved `datetime` serialization and deserialization ([#345](https://github.com/flask-restful/flask-restful/pull/345))
+- `init_app` now follows Flask extension guidelines ([#130](https://github.com/flask-restful/flask-restful/pull/130))
+- `types` module renamed to `inputs` ([#243](https://github.com/flask-restful/flask-restful/pull/243))
+- Fixes `inputs.boolean` inability to parse values from JSON ([#314](https://github.com/flask-restful/flask-restful/pull/314))
+- Fixes `RequestParser` inability to use arguments from multiple sources at once ([#261](https://github.com/flask-restful/flask-restful/pull/261))
+- Fixes missing `Allow` header when HTTP 405 is returned ([#294](https://github.com/flask-restful/flask-restful/pull/294))
+- Doc fixes and updates.
+
+
+Version 0.2.12
+--------------
+
+Released March 4, 2014
+
+- Fixed a bug in error handling code.
+- Don't install tests by default.
+- Doc fixes and updates.
+
+Version 0.2.11
+--------------
+
+Released January 17, 2014
+
+- Fixes the List field when marshalling a list of dictionaries. ([#165](https://github.com/twilio/flask-restful/issues/165))
+- Adds Boolean and Price types to fields.\_\_all\_\_ ([#180](https://github.com/twilio/flask-restful/issues/180))
+- Adds support for serializing a set object with a List field. ([#175](https://github.com/twilio/flask-restful/pull/175))
+- Fixes support for using callables as reqparser type arguments ([#167](https://github.com/twilio/flask-restful/pull/167))
+- Add configuration variable to control smart-errors behavior on 404 responses. ([#181](https://github.com/twilio/flask-restful/issues/181))
+- Fixes bug preventing use of Flask redirects. ([#162](https://github.com/twilio/flask-restful/pull/162))
+- Documentation fixes ([#173](https://github.com/twilio/flask-restful/pull/173))
+- Fixes bug swallowing tracebacks in handle_error. ([#166](https://github.com/twilio/flask-restful/pull/166))
+
+Version 0.2.10
+--------------
+
+Released December 17, 2013
+
+- Removes twilio-specific type checks present in version 0.2.9.
+- Correctly bump version number in setup.py.
+
+Version 0.2.9
+-------------
+
+Released December 17, 2013.
+
+- Adds new `positive` and `iso8601interval` types.
+- Typo fix.
+- Updating the test infrastructure to use common Twilio conventions and testing
+  styles.
+
+Version 0.2.8
+-------------
+
+Released November 22, 2013
+
+- Add 'absolute' and 'scheme' to fields.Url
+
+Version 0.2.6
+-------------
+
+Released November 18, 2013
+
+- blueprint support
+- CORS support
+- allow custom unauthorized response
+- when failing to marshal custom indexable objects, its attributes are checked
+- better error messages
+
+Version 0.2.5
+-------------
+
+Released Aug 6, 2013
+
+- add callable location
+- allow field type Fixed to take an attribute argument
+- added url_for() wrapper as Api.url_for(resource)
+
+Version 0.2.4
+-------------
+
+Released Aug 5, 2013
+
+- Python 3.3 support.
+- You can now marshal nested fields.
+- Small fixes in docs.
+
+Version 0.2.2
+-------------
+
+Released on May 5, 2013
+
+- JSON will be pretty-printed if you're running your app in debug mode.
+- pycrypto is now an optional dependency.
+
+Version 0.2.1
+-------------
+
+Released on April 9, 2013
+
+- Use the default Flask-RESTful error handler, instead of the default Flask
+  error handler, to handle 405 Not Allowed errors on requests to Api endpoints.
+
+Version 0.2.0
+-------------
+
+Released on April 9, 2013
+
+- Flask-RESTful will no longer clobber your app's error handler; it will only
+handle errors that occur while handling Flask-RESTful routes. The breaking
+change is that 404 errors will default to using the Flask text/html error
+handler. Override this behavior by passing `catch_all_404s=True` to the `Api`
+constructor. (via [@yaniv-aknin]( /yaniv-aknin ))
+- Arguments can now take `location` as a tuple, in case you want to
+specify that an argument could be passed in multiple places. (via
+[@mindflayer](/mindflayer))
+- Fixes a problem where passing an empty post body to a resource that expected
+  a json argument would throw a 500.
+- Creation of the `Api` and initialization of the Flask `app` are no longer
+  bundled together. (via [@andrew-d](/andrew-d))
+- `marshal_with` now works with responses that are tuples. (via
+[@noise](/noise))
+- `types.url` will no longer throw a ascii decoding ValueError if you pass it
+Unicode characters
+
+Version 0.1.7
+-------------
+
+Released on March 24, 2013
+
+The first released version of 0.1.6 contained a problem with the tar.gz
+uploaded to PyPI. 0.1.7 contains the same changes as 0.1.6 but ensures the
+version you download from PyPI does not contain problems (if for example, you
+cached the old, broken version of 0.1.6).
+
+Version 0.1.6
+-------------
+
+Released on February 27th, 2013
+
+- Update the documentation with a fuller example (https://github.com/twilio/flask-restful/pull/37)
+- Update the test runner to use setuptools (https://github.com/twilio/flask-restful/pull/46)
+- Don't set exception data if we have no data to set (https://github.com/twilio/flask-restful/pull/49)
+- action='append' in the RequestParser always returns a list. (https://github.com/twilio/flask-restful/pull/41)
+
+Version 0.1.5
+-------------
+
+Released on Jan 9th, 2013
+
+- Fix error handler for exceptions that do not have a message
+
+
+Version 0.1.4
+-------------
+
+Released on Jan 8th, 2013
+
+- Crypto support for paging
+- Added paging helper for resources
+- Stricter arg parse
+- Flask view arguments are no longer implicitly parsed by RequestParser
+- Fixed incorrectly formatted err message
+
+
+Version 0.1.3
+-------------
+
+Released on Jan 8th, 2013
+
+- Smart 404 error in case of slight mistakes in the URL
+- Scheme error message
+- Attribute/key accessible namespace for reqparse
+- Add Namespace with dual attribute/item access
+- Added the original requested URI in the error
+- Better message if user passes URL w/ no scheme
+- Allow chaining of add_argument calls
+- Fixed bug 21 : Endpoint name clash on different views
+- Fixed string formatting for python 2.6
+- Fixed dictionary comprehensions for python 2.6
+- Fixed r'' for python 2.6
+
+
+Version 0.1.2
+-------------
+
+Released on Nov 19th, 2012
+
+- Fixed a bug in fields.Fixed when formatting a value of 0
+
+
+Version 0.1.1
+-------------
+
+Released on Nov 19th, 2012
+
+- Added the Fixed field
+
+
+Version 0.1
+-------------
+
+First public release
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000..078d2ee
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,18 @@
+Contributing to Flask-RESTful
+=============================
+
+We welcome features and bug fixes to Flask-RESTful!  Fork this project and
+issue [pull requests](https://github.com/flask-restful/flask-restful/compare).
+New code must come with a set of unit tests (that pass!) before the pull request
+is merged.
+
+Please refrain from using force pushes to update pull requests.
+
+Reporting Bugs
+--------------
+
+Bugs can be filed as [Issues on github.](https://github.com/flask-restful/flask-restful/issues/new)
+
+
+
+Thanks from the Flask-RESTful team!
diff --git a/Flask_RESTful.egg-info/PKG-INFO b/Flask_RESTful.egg-info/PKG-INFO
index 13e0a5b..f547a39 100644
--- a/Flask_RESTful.egg-info/PKG-INFO
+++ b/Flask_RESTful.egg-info/PKG-INFO
@@ -1,10 +1,16 @@
-Metadata-Version: 1.0
+Metadata-Version: 1.1
 Name: Flask-RESTful
-Version: 0.2.12
+Version: 0.3.4
 Summary: Simple framework for creating REST APIs
-Home-page: https://www.github.com/twilio/flask-restful/
+Home-page: https://www.github.com/flask-restful/flask-restful/
 Author: Twilio API Team
 Author-email: help at twilio.com
-License: UNKNOWN
+License: BSD
 Description: UNKNOWN
 Platform: any
+Classifier: Framework :: Flask
+Classifier: Programming Language :: Python :: 2.6
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3.3
+Classifier: Programming Language :: Python :: 3.4
+Classifier: License :: OSI Approved :: BSD License
diff --git a/Flask_RESTful.egg-info/SOURCES.txt b/Flask_RESTful.egg-info/SOURCES.txt
index ec75a33..c9a4e6e 100644
--- a/Flask_RESTful.egg-info/SOURCES.txt
+++ b/Flask_RESTful.egg-info/SOURCES.txt
@@ -1,3 +1,11 @@
+AUTHORS.md
+CHANGES.md
+CONTRIBUTING.md
+LICENSE
+MANIFEST.in
+Makefile
+README.md
+setup.cfg
 setup.py
 Flask_RESTful.egg-info/PKG-INFO
 Flask_RESTful.egg-info/SOURCES.txt
@@ -5,14 +13,45 @@ Flask_RESTful.egg-info/dependency_links.txt
 Flask_RESTful.egg-info/not-zip-safe
 Flask_RESTful.egg-info/requires.txt
 Flask_RESTful.egg-info/top_level.txt
+docs/Makefile
+docs/api.rst
+docs/conf.py
+docs/contents.rst.inc
+docs/extending.rst
+docs/fields.rst
+docs/index.rst
+docs/installation.rst
+docs/intermediate-usage.rst
+docs/make.bat
+docs/quickstart.rst
+docs/reqparse.rst
+docs/testing.rst
+docs/_static/flask-restful-small.png
+docs/_static/flask-restful.png
+docs/_templates/sidebarintro.html
+docs/_templates/sidebarlogo.html
+examples/todo.py
+examples/todo_simple.py
+examples/xml_representation.py
 flask_restful/__init__.py
 flask_restful/fields.py
+flask_restful/inputs.py
 flask_restful/paging.py
 flask_restful/reqparse.py
-flask_restful/types.py
 flask_restful/representations/__init__.py
 flask_restful/representations/json.py
 flask_restful/utils/__init__.py
 flask_restful/utils/cors.py
 flask_restful/utils/crypto.py
-flask_restful/utils/ordereddict.py
\ No newline at end of file
+tests/README.md
+tests/__init__.py
+tests/requirements.txt
+tests/test_accept.py
+tests/test_api.py
+tests/test_api_with_blueprint.py
+tests/test_cors.py
+tests/test_crypto.py
+tests/test_fields.py
+tests/test_inputs.py
+tests/test_paging.py
+tests/test_reqparse.py
\ No newline at end of file
diff --git a/Flask_RESTful.egg-info/requires.txt b/Flask_RESTful.egg-info/requires.txt
index 97f3c64..454a5ac 100644
--- a/Flask_RESTful.egg-info/requires.txt
+++ b/Flask_RESTful.egg-info/requires.txt
@@ -7,4 +7,4 @@ pytz
 sphinx
 
 [paging]
-pycrypto>=2.6
\ No newline at end of file
+pycrypto>=2.6
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..3337f90
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,25 @@
+Copyright (c) 2013, Twilio, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+- Redistributions of source code must retain the above copyright notice, this
+  list of conditions and the following disclaimer. 
+- Redistributions in binary form must reproduce the above copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+- Neither the name of the Twilio, Inc. nor the names of its contributors may be
+  used to endorse or promote products derived from this software without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 0000000..1b1e6aa
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1,12 @@
+include Makefile CHANGES LICENSE AUTHORS.md
+recursive-include tests *
+recursive-include examples *
+recursive-include docs *
+recursive-exclude docs *.pyc
+recursive-exclude docs *.pyo
+recursive-exclude tests *.pyc
+recursive-exclude tests *.pyo
+recursive-exclude examples *.pyc
+recursive-exclude examples *.pyo
+prune docs/_build
+prune docs/_themes
\ No newline at end of file
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..2d4fdb4
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,195 @@
+# Python settings
+ifndef TRAVIS
+	ifndef PYTHON_MAJOR
+		PYTHON_MAJOR := 2
+	endif
+	ifndef PYTHON_MINOR
+		PYTHON_MINOR := 7
+	endif
+	ENV := env/py$(PYTHON_MAJOR)$(PYTHON_MINOR)
+else
+	# Use the virtualenv provided by Travis
+	ENV = $(VIRTUAL_ENV)
+endif
+
+# Project settings
+PROJECT := Flask-RESTful
+PACKAGE := flask_restful
+SOURCES := Makefile setup.py $(shell find $(PACKAGE) -name '*.py')
+EGG_INFO := $(subst -,_,$(PROJECT)).egg-info
+
+# System paths
+PLATFORM := $(shell python -c 'import sys; print(sys.platform)')
+ifneq ($(findstring win32, $(PLATFORM)), )
+	SYS_PYTHON_DIR := C:\\Python$(PYTHON_MAJOR)$(PYTHON_MINOR)
+	SYS_PYTHON := $(SYS_PYTHON_DIR)\\python.exe
+	SYS_VIRTUALENV := $(SYS_PYTHON_DIR)\\Scripts\\virtualenv.exe
+else
+	SYS_PYTHON := python$(PYTHON_MAJOR)
+	ifdef PYTHON_MINOR
+		SYS_PYTHON := $(SYS_PYTHON).$(PYTHON_MINOR)
+	endif
+	SYS_VIRTUALENV := virtualenv
+endif
+
+# virtualenv paths
+ifneq ($(findstring win32, $(PLATFORM)), )
+	BIN := $(ENV)/Scripts
+	OPEN := cmd /c start
+else
+	BIN := $(ENV)/bin
+	ifneq ($(findstring cygwin, $(PLATFORM)), )
+		OPEN := cygstart
+	else
+		OPEN := open
+	endif
+endif
+
+# virtualenv executables
+PYTHON := $(BIN)/python
+PIP := $(BIN)/pip
+FLAKE8 := $(BIN)/flake8
+PEP8RADIUS := $(BIN)/pep8radius
+PEP257 := $(BIN)/pep257
+NOSE := $(BIN)/nosetests
+COVERAGE := $(BIN)/coverage
+ACTIVATE := $(BIN)/activate
+
+# Remove if you don't want pip to cache downloads
+PIP_CACHE_DIR := .cache
+PIP_CACHE := --download-cache $(PIP_CACHE_DIR)
+
+# Flags for PHONY targets
+DEPENDS_TEST := $(ENV)/.depends-test
+DEPENDS_DEV := $(ENV)/.depends-dev
+DEPENDS_DOC := $(ENV)/.depends-doc
+
+# Main Targets ###############################################################
+
+.PHONY: all
+all: test
+
+# Targets to run on Travis
+.PHONY: ci
+ci: test
+
+# Development Installation ###################################################
+
+.PHONY: env
+env: $(PIP)
+
+$(PIP):
+	$(SYS_VIRTUALENV) --python $(SYS_PYTHON) $(ENV)
+	$(PIP) install wheel
+
+.PHONY: depends
+depends: .depends-test .depends-dev .depends-doc
+
+.PHONY: .depends-test
+.depends-test: env Makefile $(DEPENDS_TEST)
+$(DEPENDS_TEST): Makefile tests/requirements.txt
+	$(PIP) install -e .[paging]
+	$(PIP) install -r tests/requirements.txt
+	touch $(DEPENDS_TEST)  # flag to indicate dependencies are installed
+
+.PHONY: .depends-dev
+.depends-dev: env Makefile $(DEPENDS_DEV)
+$(DEPENDS_DEV): Makefile
+	$(PIP) install $(PIP_CACHE) flake8 pep257 pep8radius
+	touch $(DEPENDS_DEV)  # flag to indicate dependencies are installed
+
+.PHONY: .depends-doc
+.depends-doc: env Makefile setup.py $(DEPENDS_DOC)
+$(DEPENDS_DOC): Makefile setup.py
+	$(PIP) install -e .[docs]
+	touch $(DEPENDS_DOC)  # flag to indicate dependencies are installed
+
+# Documentation ##############################################################
+
+.PHONY: doc
+doc: .depends-doc
+	. $(ACTIVATE); cd docs; $(MAKE) html
+
+.PHONY: read
+read: doc
+	$(OPEN) docs/_build/html/index.html
+
+# Static Analysis ############################################################
+
+.PHONY: check
+check: flake8 pep257
+
+PEP8_IGNORED := E501
+
+.PHONY: flake8
+flake8: .depends-dev
+	$(FLAKE8) $(PACKAGE) tests --ignore=$(PEP8_IGNORED)
+
+.PHONY: pep257
+pep257: .depends-dev
+	$(PEP257) $(PACKAGE)
+
+.PHONY: fix
+fix: .depends-dev
+	$(PEP8RADIUS) --docformatter --in-place
+
+# Testing ####################################################################
+
+.PHONY: test
+test: .depends-test .clean-test
+	$(NOSE) tests --with-coverage --cover-package=$(PACKAGE)
+
+test-all: test-py26 test-py27 test-py33 test-py34
+test-py26:
+	PYTHON_MAJOR=2 PYTHON_MINOR=6 $(MAKE) test
+test-py27:
+	PYTHON_MAJOR=2 PYTHON_MINOR=7 $(MAKE) test
+test-py33:
+	PYTHON_MAJOR=3 PYTHON_MINOR=3 $(MAKE) test
+test-py34:
+	PYTHON_MAJOR=3 PYTHON_MINOR=4 $(MAKE) test
+
+.PHONY: htmlcov
+htmlcov: test
+	$(COVERAGE) html
+	$(OPEN) htmlcov/index.html
+
+# Cleanup ####################################################################
+
+.PHONY: clean
+clean: .clean-test
+	find $(PACKAGE) -name '*.pyc' -delete
+	find $(PACKAGE) -name '__pycache__' -delete
+	rm -rf dist build
+	rm -rf docs/_build
+	rm -rf $(EGG_INFO)
+
+.PHONY: clean-all
+clean-all: clean
+	rm -rf $(PIP_CACHE_DIR)
+	rm -rf $(ENV)
+
+.PHONY: .clean-test
+.clean-test:
+	rm -rf .coverage htmlcov
+
+# Release ####################################################################
+
+.PHONY: authors
+authors:
+    echo "Authors\n=======\n\nA huge thanks to all of our contributors:\n\n" > AUTHORS.md
+    git log --raw | grep "^Author: " | cut -d ' ' -f2- | cut -d '<' -f1 | sed 's/^/- /' | sort | uniq >> AUTHORS.md
+
+.PHONY: register
+register: doc
+	$(PYTHON) setup.py register
+
+.PHONY: dist
+dist: doc test
+	$(PYTHON) setup.py sdist
+	$(PYTHON) setup.py bdist_wheel
+
+.PHONY: upload
+upload: doc register
+	$(PYTHON) setup.py sdist upload
+	$(PYTHON) setup.py bdist_wheel upload
diff --git a/PKG-INFO b/PKG-INFO
index 13e0a5b..f547a39 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,10 +1,16 @@
-Metadata-Version: 1.0
+Metadata-Version: 1.1
 Name: Flask-RESTful
-Version: 0.2.12
+Version: 0.3.4
 Summary: Simple framework for creating REST APIs
-Home-page: https://www.github.com/twilio/flask-restful/
+Home-page: https://www.github.com/flask-restful/flask-restful/
 Author: Twilio API Team
 Author-email: help at twilio.com
-License: UNKNOWN
+License: BSD
 Description: UNKNOWN
 Platform: any
+Classifier: Framework :: Flask
+Classifier: Programming Language :: Python :: 2.6
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3.3
+Classifier: Programming Language :: Python :: 3.4
+Classifier: License :: OSI Approved :: BSD License
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..4452bf4
--- /dev/null
+++ b/README.md
@@ -0,0 +1,13 @@
+# Flask-RESTful
+
+[![Build Status](https://travis-ci.org/flask-restful/flask-restful.svg?branch=master)](http://travis-ci.org/flask-restful/flask-restful)
+[![Coverage Status](http://img.shields.io/coveralls/flask-restful/flask-restful/master.svg)](https://coveralls.io/r/flask-restful/flask-restful)
+[![PyPI Version](http://img.shields.io/pypi/v/Flask-RESTful.svg)](https://pypi.python.org/pypi/Flask-RESTful)
+[![PyPI Downloads](http://img.shields.io/pypi/dm/Flask-RESTful.svg)](https://pypi.python.org/pypi/Flask-RESTful)
+
+Flask-RESTful provides the building blocks for creating a great REST API.
+
+## User Guide
+
+You'll find the user guide and all documentation [here](http://flask-restful.readthedocs.org/en/latest/)
+
diff --git a/docs/Makefile b/docs/Makefile
new file mode 100644
index 0000000..6cd555c
--- /dev/null
+++ b/docs/Makefile
@@ -0,0 +1,153 @@
+# Makefile for Sphinx documentation
+#
+
+# You can set these variables from the command line.
+SPHINXOPTS    =
+SPHINXBUILD   = sphinx-build
+PAPER         =
+BUILDDIR      = _build
+
+# Internal variables.
+PAPEROPT_a4     = -D latex_paper_size=a4
+PAPEROPT_letter = -D latex_paper_size=letter
+ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
+# the i18n builder cannot share the environment and doctrees with the others
+I18NSPHINXOPTS  = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
+
+.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
+
+help:
+	@echo "Please use \`make <target>' where <target> is one of"
+	@echo "  html       to make standalone HTML files"
+	@echo "  dirhtml    to make HTML files named index.html in directories"
+	@echo "  singlehtml to make a single large HTML file"
+	@echo "  pickle     to make pickle files"
+	@echo "  json       to make JSON files"
+	@echo "  htmlhelp   to make HTML files and a HTML help project"
+	@echo "  qthelp     to make HTML files and a qthelp project"
+	@echo "  devhelp    to make HTML files and a Devhelp project"
+	@echo "  epub       to make an epub"
+	@echo "  latex      to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
+	@echo "  latexpdf   to make LaTeX files and run them through pdflatex"
+	@echo "  text       to make text files"
+	@echo "  man        to make manual pages"
+	@echo "  texinfo    to make Texinfo files"
+	@echo "  info       to make Texinfo files and run them through makeinfo"
+	@echo "  gettext    to make PO message catalogs"
+	@echo "  changes    to make an overview of all changed/added/deprecated items"
+	@echo "  linkcheck  to check all external links for integrity"
+	@echo "  doctest    to run all doctests embedded in the documentation (if enabled)"
+
+clean:
+	-rm -rf $(BUILDDIR)/*
+
+html:
+	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
+	@echo
+	@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
+
+dirhtml:
+	$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
+	@echo
+	@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
+
+singlehtml:
+	$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
+	@echo
+	@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
+
+pickle:
+	$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
+	@echo
+	@echo "Build finished; now you can process the pickle files."
+
+json:
+	$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
+	@echo
+	@echo "Build finished; now you can process the JSON files."
+
+htmlhelp:
+	$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
+	@echo
+	@echo "Build finished; now you can run HTML Help Workshop with the" \
+	      ".hhp project file in $(BUILDDIR)/htmlhelp."
+
+qthelp:
+	$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
+	@echo
+	@echo "Build finished; now you can run "qcollectiongenerator" with the" \
+	      ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
+	@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/Flask-RESTful.qhcp"
+	@echo "To view the help file:"
+	@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/Flask-RESTful.qhc"
+
+devhelp:
+	$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
+	@echo
+	@echo "Build finished."
+	@echo "To view the help file:"
+	@echo "# mkdir -p $$HOME/.local/share/devhelp/Flask-RESTful"
+	@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/Flask-RESTful"
+	@echo "# devhelp"
+
+epub:
+	$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
+	@echo
+	@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
+
+latex:
+	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+	@echo
+	@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
+	@echo "Run \`make' in that directory to run these through (pdf)latex" \
+	      "(use \`make latexpdf' here to do that automatically)."
+
+latexpdf:
+	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+	@echo "Running LaTeX files through pdflatex..."
+	$(MAKE) -C $(BUILDDIR)/latex all-pdf
+	@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
+
+text:
+	$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
+	@echo
+	@echo "Build finished. The text files are in $(BUILDDIR)/text."
+
+man:
+	$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
... 7286 lines suppressed ...

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/flask-restful.git



More information about the Python-modules-commits mailing list