swagger-api / swagger-api/swagger-codegen
Use python 3.6
Open
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
- swagger-codegen-cli 3.0 uses the docker image python:3-alpine
- python:3-alpine now points to python 3.7 which is not supported by #tox
Swagger-codegen version
3.0.9-snapshot
Command line used for generation
java -jar scripts/swagger-codegen-cli-3.0.9.jar generate -l python-flask -i openapi/simple.yaml -o src
Steps to reproduce
cd src
cat > docker-compose.yml <<EOF
test:
build: .
volumes:
- .:/code:z
working_dir: /code
entrypoint: /bin/sh
command: -c 'pip install tox && tox'
EOF
docker-compose up test
output
test_1 | GLOB sdist-make: /code/setup.py
test_1 | py35 create: /code/.tox/py35
test_1 | ERROR: InterpreterNotFound: python3.5
Related issues/PRs
Suggest a fix/enhancement
Pin python:3.6-alpine and py36
in all moustaches
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Search the Python Flask generator's Mustache templates for the Python Docker image and tox interpreter settings described in the issue. Use the generated src/docker-compose.yml and setup.py as references, then run docker-compose up test to confirm tox finds the supported interpreter and completes successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, docker-compose, python
- Domain
- devops, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100