-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix/remove support python2 option in flask aiohttp generators (#13585)
* fix: remove option supportPython2. [python-flask][python-aiohttp][python-blueplanet] * fix: update samples * test only python servers * fix(tests): downgrade pytest version to ensure compatibility with python3.6 [python-flask][python-aiohttp] * Revert "fix(tests): downgrade pytest version to ensure compatibility with python3.6 [python-flask][python-aiohttp]" This reverts commit 9f47db2. * test in circlei * run commands directly * test in node 1 * update makefile * fix Makefile * fix test * revert some changes, remove python server tests from travis Co-authored-by: Kevin Bannier <[email protected]>
- Loading branch information
1 parent
57f5cc4
commit 085e1e5
Showing
47 changed files
with
83 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,4 @@ | ||
{{#supportPython2}} | ||
FROM python:2-alpine | ||
{{/supportPython2}} | ||
{{^supportPython2}} | ||
FROM python:3-alpine | ||
{{/supportPython2}} | ||
|
||
ARG GLTOKEN | ||
|
||
|
@@ -19,12 +14,7 @@ WORKDIR /bp2/src | |
|
||
COPY requirements.txt /bp2/src | ||
|
||
{{#supportPython2}} | ||
RUN pip install --extra-index-url https://GLTOKEN:[email protected]/simple --no-cache-dir -r requirements.txt | ||
{{/supportPython2}} | ||
{{^supportPython2}} | ||
RUN pip3 install --extra-index-url https://GLTOKEN:[email protected]/simple --no-cache-dir -r requirements.txt | ||
{{/supportPython2}} | ||
|
||
COPY . /bp2/src | ||
|
||
|
@@ -33,11 +23,6 @@ ENV SBIS=bpocore \ | |
|
||
EXPOSE {{serverPort}} | ||
|
||
{{#supportPython2}} | ||
ENTRYPOINT ["python"] | ||
{{/supportPython2}} | ||
{{^supportPython2}} | ||
ENTRYPOINT ["python3"] | ||
{{/supportPython2}} | ||
|
||
CMD ["-B", "-m", "{{packageName}}"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
modules/openapi-generator/src/main/resources/python-blueplanet/app/requirements.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
modules/openapi-generator/src/main/resources/python-blueplanet/app/tox.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
...napi-generator/src/main/resources/python-blueplanet/app/{{packageName}}/__main__.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
modules/openapi-generator/src/main/resources/python-flask/Dockerfile.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,16 @@ | ||
{{#supportPython2}} | ||
FROM python:2-alpine | ||
{{/supportPython2}} | ||
{{^supportPython2}} | ||
FROM python:3-alpine | ||
{{/supportPython2}} | ||
|
||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
COPY requirements.txt /usr/src/app/ | ||
|
||
{{#supportPython2}} | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
{{/supportPython2}} | ||
{{^supportPython2}} | ||
RUN pip3 install --no-cache-dir -r requirements.txt | ||
{{/supportPython2}} | ||
|
||
COPY . /usr/src/app | ||
|
||
EXPOSE {{serverPort}} | ||
|
||
{{#supportPython2}} | ||
ENTRYPOINT ["python"] | ||
{{/supportPython2}} | ||
{{^supportPython2}} | ||
ENTRYPOINT ["python3"] | ||
{{/supportPython2}} | ||
|
||
CMD ["-m", "{{packageName}}"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
modules/openapi-generator/src/main/resources/python-flask/__main__.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 4 additions & 8 deletions
12
modules/openapi-generator/src/main/resources/python-flask/base_model_.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.