diff --git a/.github/workflows/flask-smorest.yml b/.github/workflows/flask-smorest.yml new file mode 100644 index 0000000..7087b83 --- /dev/null +++ b/.github/workflows/flask-smorest.yml @@ -0,0 +1,29 @@ + +name: flask-smorest + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + + workflow_dispatch: + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: '3.12' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flask-smorest flask + + - name: Test initialization + run: + python -c "from flask import Flask; app = Flask(__name__); from flask_smorest import Api; Api(app, spec_kwargs={'title': 'dummy', 'version': '3', 'openapi_version': '3'})" diff --git a/README.md b/README.md index f798c46..d2d66e6 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,7 @@ For a project that is abandoned/dead, we will remove it from the table and list | [plangrid/flask-rebar](https://github.com/plangrid/flask-rebar) | ![PyPI - Version](https://img.shields.io/pypi/v/flask-rebar) | ![PyPI - Downloads](https://img.shields.io/pypi/dm/flask-rebar?color=darkgrey) | [![build](https://github.com/greyli/flask-extension-status/actions/workflows/flask-rebar.yml/badge.svg)](https://github.com/greyli/flask-extension-status/actions/workflows/flask-rebar.yml) | | [flask-restful/flask-restful](https://github.com/flask-restful/flask-restful) | ![PyPI - Version](https://img.shields.io/pypi/v/flask-restful) | ![PyPI - Downloads](https://img.shields.io/pypi/dm/flask-restful?color=darkgrey) | [![build](https://github.com/greyli/flask-extension-status/actions/workflows/flask-restful.yml/badge.svg)](https://github.com/greyli/flask-extension-status/actions/workflows/flask-restful.yml) | | [python-restx/flask-restx](https://github.com/python-restx/flask-restx) | ![PyPI - Version](https://img.shields.io/pypi/v/flask-restx) | ![PyPI - Downloads](https://img.shields.io/pypi/dm/flask-restx?color=darkgrey) | [![build](https://github.com/greyli/flask-extension-status/actions/workflows/flask-restx.yml/badge.svg)](https://github.com/greyli/flask-extension-status/actions/workflows/flask-restx.yml) | +| [marshmallow-code/flask-smorest](https://github.com/marshmallow-code/flask-smorest) | ![PyPI - Version](https://img.shields.io/pypi/v/flask-smorest) | ![PyPI - Downloads](https://img.shields.io/pypi/dm/flask-smorest?color=darkgrey) | [![build](https://github.com/greyli/flask-extension-status/actions/workflows/flask-smorest.yml/badge.svg)](https://github.com/greyli/flask-extension-status/actions/workflows/flask-smorest.yml) | | [miguelgrinberg/Flask-SocketIO](https://github.com/miguelgrinberg/Flask-SocketIO) | ![PyPI - Version](https://img.shields.io/pypi/v/flask-socketio) | ![PyPI - Downloads](https://img.shields.io/pypi/dm/flask-socketio?color=darkgrey) | [![build](https://github.com/greyli/flask-extension-status/actions/workflows/flask-socketio.yml/badge.svg)](https://github.com/greyli/flask-extension-status/actions/workflows/flask-socketio.yml) | | [pallets/flask-sqlalchemy](https://github.com/pallets/flask-sqlalchemy) | ![PyPI - Version](https://img.shields.io/pypi/v/flask-sqlalchemy) | ![PyPI - Downloads](https://img.shields.io/pypi/dm/flask-sqlalchemy?color=darkgrey) | [![build](https://github.com/greyli/flask-extension-status/actions/workflows/flask-sqlalchemy.yml/badge.svg)](https://github.com/greyli/flask-extension-status/actions/workflows/flask-sqlalchemy.yml) | | [jarus/flask-testing](https://github.com/jarus/flask-testing) | ![PyPI - Version](https://img.shields.io/pypi/v/flask-testing) | ![PyPI - Downloads](https://img.shields.io/pypi/dm/flask-testing?color=darkgrey) | [![build](https://github.com/greyli/flask-extension-status/actions/workflows/flask-testing.yml/badge.svg)](https://github.com/greyli/flask-extension-status/actions/workflows/flask-testing.yml) | diff --git a/extensions.yml b/extensions.yml index 599eb09..8fe3049 100644 --- a/extensions.yml +++ b/extensions.yml @@ -68,3 +68,6 @@ flask-mongoengine: flask-avatars: repo: helloflask/flask-avatars init_string: 'from flask_avatars import Avatars; Avatars(app)' +flask-smorest: + repo: marshmallow-code/flask-smorest + init_string: "from flask_smorest import Api; Api(app, spec_kwargs={'title': 'dummy', 'version': '3', 'openapi_version': '3'})"