Skip to content

Commit

Permalink
Drop support for flask-restplus
Browse files Browse the repository at this point in the history
flask-restx replaced flask-restplus. flask-restplus's latest version supports 3.6 which
we don't even support anymore.
  • Loading branch information
hmstepanek committed Nov 4, 2022
1 parent 2d26560 commit e4df38c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
5 changes: 0 additions & 5 deletions newrelic/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2162,11 +2162,6 @@ def _process_module_builtin_defaults():
)

_process_module_definition("flask_restful", "newrelic.hooks.component_flask_rest", "instrument_flask_rest")
_process_module_definition(
"flask_restplus.api",
"newrelic.hooks.component_flask_rest",
"instrument_flask_rest",
)
_process_module_definition(
"flask_restx.api",
"newrelic.hooks.component_flask_rest",
Expand Down
4 changes: 1 addition & 3 deletions tests/component_flask_rest/test_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,12 @@
TEST_APPLICATION_PREFIX = "_test_application.create_app.<locals>" if six.PY3 else "_test_application"


@pytest.fixture(params=["flask_restful", "flask_restplus", "flask_restx"])
@pytest.fixture(params=["flask_restful", "flask_restx"])
def application(request):
from _test_application import get_test_application

if request.param == "flask_restful":
import flask_restful as module
elif request.param == "flask_restplus":
import flask_restplus as module
elif request.param == "flask_restx":
import flask_restx as module
else:
Expand Down
7 changes: 3 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,10 @@ deps =
component_djangorestframework-djangorestframework0300: djangorestframework < 3.1
component_djangorestframework-djangorestframeworklatest: Django
component_djangorestframework-djangorestframeworklatest: djangorestframework
component_flask_rest: flask<0.13
component_flask_rest: flask
component_flask_rest: flask-restful
component_flask_rest: flask-restplus
component_flask_rest: jinja2<3.1
component_flask_rest: itsdangerous<2.1
component_flask_rest: jinja2
component_flask_rest: itsdangerous
component_flask_rest-flaskrestxlatest: flask-restx
component_flask_rest-flaskrestx051: flask-restx<1.0
component_graphqlserver: graphql-server[sanic,flask]==3.0.0b5
Expand Down

0 comments on commit e4df38c

Please sign in to comment.