From 5c17019896563ef4f3511f55ac2abe61fa7070ec Mon Sep 17 00:00:00 2001 From: Rovanion Luckey Date: Fri, 1 Jun 2018 17:36:09 +0200 Subject: [PATCH 1/2] Allow function names for end points to be camelCased. I have no idea what the rammifications of this change is in the larger scope of this code base and its user. All I really know is that this change to flask_apispec enables it to publish swagger documentation for my project, which uses camelCased function names. --- flask_apispec/apidoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask_apispec/apidoc.py b/flask_apispec/apidoc.py index 7a44f6a..a93b085 100644 --- a/flask_apispec/apidoc.py +++ b/flask_apispec/apidoc.py @@ -21,7 +21,7 @@ def __init__(self, app): self.app = app def convert(self, target, endpoint=None, blueprint=None, **kwargs): - endpoint = endpoint or target.__name__.lower() + endpoint = endpoint or target.__name__ if blueprint: endpoint = '{}.{}'.format(blueprint, endpoint) rules = self.app.url_map._rules_by_endpoint[endpoint] From f211ccad0ee915f426f89fd18ddb9ef8c8daf00e Mon Sep 17 00:00:00 2001 From: Rovanion Luckey Date: Tue, 19 Jun 2018 10:51:16 +0200 Subject: [PATCH 2/2] Change package name and version for publish to pypi. --- flask_apispec/__init__.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flask_apispec/__init__.py b/flask_apispec/__init__.py index 34b14c9..08489fa 100644 --- a/flask_apispec/__init__.py +++ b/flask_apispec/__init__.py @@ -4,7 +4,7 @@ from flask_apispec.extension import FlaskApiSpec from flask_apispec.utils import Ref -__version__ = '0.6.0.post0' +__version__ = '0.6.1' __all__ = [ 'doc', 'wrap_with', diff --git a/setup.py b/setup.py index a1b2109..302c07d 100755 --- a/setup.py +++ b/setup.py @@ -35,7 +35,7 @@ def read(fname): setup( - name='flask-apispec', + name='flask-apispec-rovanion', version=find_version('flask_apispec/__init__.py'), description='Build and document REST APIs with Flask and apispec', long_description=read('README.rst'),