Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Atualizar forma de instalação do FastAPI para se adequar a versão 0.112 #224

Merged
merged 6 commits into from
Aug 29, 2024

Conversation

rennerocha
Copy link
Contributor

A versão 0.112.0 alterou os pacotes instalados (uma breaking change). Agora é necessário instalar o fastapi[standard] para ter acesso ao CLI:
https://fastapi.tiangolo.com/release-notes/#01120

Se seguirmos apenas as instruções existentes, teremos o seguinte erro:

(fast-zero-py3.12) ➜  fast_zero fastapi dev fast_zero/app.py 
To use the fastapi command, please install "fastapi[standard]":

	pip install "fastapi[standard]"

Traceback (most recent call last):
  File "/home/renne/.cache/pypoetry/virtualenvs/fast-zero-Ym0yTX-Z-py3.12/bin/fastapi", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/renne/.cache/pypoetry/virtualenvs/fast-zero-Ym0yTX-Z-py3.12/lib/python3.12/site-packages/fastapi/cli.py", line 12, in main
    raise RuntimeError(message)  # noqa: B904
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: To use the fastapi command, please install "fastapi[standard]":

	pip install "fastapi[standard]"

@dunossauro
Copy link
Owner

Aproveitei esse PR para atualizar o FastAPI e as dependências para rodar na ultima versão do python 3.12

Obrigado @rennerocha ❤️

@dunossauro dunossauro merged commit dfe942c into dunossauro:main Aug 29, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants