Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Commit

Permalink
Use sanic-rest
Browse files Browse the repository at this point in the history
  • Loading branch information
joaodaher committed Mar 7, 2021
1 parent 38ebfff commit 01395aa
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 273 deletions.
45 changes: 0 additions & 45 deletions flamingo/exceptions.py

This file was deleted.

2 changes: 1 addition & 1 deletion flamingo/views/app_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from models.env_var import EnvVar
from services.bootstrap import AppBootstrap
from services.foundations import AppFoundation
from views.base import ActionView, DetailView, ListView, ResponseType
from sanic_rest.views import ActionView, DetailView, ListView, ResponseType

apps = Blueprint('apps', url_prefix='/apps')

Expand Down
218 changes: 0 additions & 218 deletions flamingo/views/base.py

This file was deleted.

2 changes: 1 addition & 1 deletion flamingo/views/build_pack_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from sanic.request import File

from models.buildpack import BuildPack
from views.base import DetailView, ListView, PayloadType
from sanic_rest.views import DetailView, ListView, PayloadType

build_packs = Blueprint('build-packs', url_prefix='/build-packs')

Expand Down
4 changes: 2 additions & 2 deletions flamingo/views/environment_views.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from sanic import Blueprint
from sanic.request import Request
from sanic_rest import exceptions

import exceptions
from models.environment import Environment
from services.foundations import EnvironmentFoundation
from views.base import DetailView, ListView, ActionView, ResponseType
from sanic_rest.views import DetailView, ListView, ActionView, ResponseType

environments = Blueprint('environments', url_prefix='/environments')

Expand Down
2 changes: 1 addition & 1 deletion flamingo/views/hook_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from sanic.request import Request
from sanic.response import HTTPResponse, json
from sanic.views import HTTPMethodView
from sanic_rest import exceptions

import exceptions
from models.app import App
from models.deployment import Deployment, Event, Source

Expand Down
21 changes: 19 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ packages = [
]

[tool.poetry.dependencies]
python = ">=3.9,<3.10"
sanic = "*"
sanic-openapi = "*"
python = "~3.9"
sanic-rest = "*"
gcp-pilot = { version = "*", extras = ['datastore', 'build', 'storage', 'pubsub', 'dns']}
python-slugify = "*"
PyGithub = "*"
Expand Down

0 comments on commit 01395aa

Please sign in to comment.