diff --git a/.gitignore b/.gitignore index bb9de92..e795274 100644 --- a/.gitignore +++ b/.gitignore @@ -92,3 +92,6 @@ dmypy.json # Temporary Files tmp + +# pyenv +.python-version \ No newline at end of file diff --git a/README.md b/README.md index 885c8b2..7228d46 100644 --- a/README.md +++ b/README.md @@ -44,10 +44,10 @@ * Prerequisites * Python 3.6 + -Manage FastAPI can be installed by running +Manage FastAPI can be installed by running ```python -pip install manage-fastapi +pip install manage-fastapi ``` @@ -69,7 +69,7 @@ fastapi startproject [name] --interactive ## Command line options 🧰 -Manage FastAPI provides three different commands. +Manage FastAPI provides three different commands. You can list them with diff --git a/manage_fastapi/helpers.py b/manage_fastapi/helpers.py index 1fc7df2..3f80573 100644 --- a/manage_fastapi/helpers.py +++ b/manage_fastapi/helpers.py @@ -12,7 +12,7 @@ def camel_to_snake(text: str) -> str: def question(choices: EnumType) -> questionary.Question: prompt = camel_to_snake(choices.__name__).replace("_", " ") # type: ignore - return questionary.select(f"Select the {prompt}: ", choices=list(choices)) + return questionary.select(f"Select the {prompt}: ", choices=[choices]) def binary_question(option: str) -> questionary.Question: diff --git a/manage_fastapi/templates/project/{{ cookiecutter.folder_name }}/Dockerfile b/manage_fastapi/templates/project/{{ cookiecutter.folder_name }}/Dockerfile index 3cba4b7..22adaf9 100644 --- a/manage_fastapi/templates/project/{{ cookiecutter.folder_name }}/Dockerfile +++ b/manage_fastapi/templates/project/{{ cookiecutter.folder_name }}/Dockerfile @@ -4,7 +4,7 @@ ENV PYTHONPATH "${PYTHONPATH}:/" ENV PORT=8000 {% if cookiecutter.packaging == "poetry" %} # Install Poetry -RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | POETRY_HOME=/opt/poetry python && \ +RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python && \ cd /usr/local/bin && \ ln -s /opt/poetry/bin/poetry && \ poetry config virtualenvs.create false