Skip to content

Commit

Permalink
mark python2 support in flask as deprecated (#6653)
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 authored Jul 2, 2020
1 parent 520f87a commit c6cb7eb
Show file tree
Hide file tree
Showing 46 changed files with 4 additions and 3,345 deletions.
6 changes: 0 additions & 6 deletions bin/configs/python-flask-python2.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion docs/generators/python-aiohttp.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ sidebar_label: python-aiohttp
|serverPort|TCP port to listen to in app.run| |8080|
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true|
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true|
|supportPython2|support python2| |false|
|supportPython2|support python2. This option has been deprecated and will be removed in the 5.x release.| |false|
|useNose|use the nose test framework| |false|

## IMPORT MAPPING
Expand Down
2 changes: 1 addition & 1 deletion docs/generators/python-blueplanet.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ sidebar_label: python-blueplanet
|serverPort|TCP port to listen to in app.run| |8080|
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true|
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true|
|supportPython2|support python2| |false|
|supportPython2|support python2. This option has been deprecated and will be removed in the 5.x release.| |false|
|useNose|use the nose test framework| |false|

## IMPORT MAPPING
Expand Down
2 changes: 1 addition & 1 deletion docs/generators/python-flask.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ sidebar_label: python-flask
|serverPort|TCP port to listen to in app.run| |8080|
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true|
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true|
|supportPython2|support python2| |false|
|supportPython2|support python2. This option has been deprecated and will be removed in the 5.x release.| |false|
|useNose|use the nose test framework| |false|

## IMPORT MAPPING
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public PythonAbstractConnexionServerCodegen(String templateDirectory, boolean fi
defaultValue("controllers"));
cliOptions.add(new CliOption(DEFAULT_CONTROLLER, "default controller").
defaultValue("default_controller"));
cliOptions.add(new CliOption(SUPPORT_PYTHON2, "support python2").
cliOptions.add(new CliOption(SUPPORT_PYTHON2, "support python2. This option has been deprecated and will be removed in the 5.x release.").
defaultValue("false"));
cliOptions.add(new CliOption("serverPort", "TCP port to listen to in app.run").
defaultValue("8080"));
Expand Down
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,6 @@
<module>samples/server/petstore/python-aiohttp</module>
<module>samples/server/petstore/python-aiohttp-srclayout</module>
<module>samples/server/petstore/python-flask</module>
<module>samples/server/petstore/python-flask-python2</module>
<module>samples/server/petstore/php-slim4</module>
<module>samples/server/petstore/php-laravel</module>
<module>samples/server/petstore/rust-server</module>
Expand Down
72 changes: 0 additions & 72 deletions samples/server/petstore/python-flask-python2/.dockerignore

This file was deleted.

66 changes: 0 additions & 66 deletions samples/server/petstore/python-flask-python2/.gitignore

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

15 changes: 0 additions & 15 deletions samples/server/petstore/python-flask-python2/.travis.yml

This file was deleted.

16 changes: 0 additions & 16 deletions samples/server/petstore/python-flask-python2/Dockerfile

This file was deleted.

20 changes: 0 additions & 20 deletions samples/server/petstore/python-flask-python2/Makefile

This file was deleted.

49 changes: 0 additions & 49 deletions samples/server/petstore/python-flask-python2/README.md

This file was deleted.

This file was deleted.

Loading

0 comments on commit c6cb7eb

Please sign in to comment.