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

Upgrade dependencies #196

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Upgrade dependencies #196

wants to merge 8 commits into from

Conversation

rogelioLpz
Copy link
Member

@rogelioLpz rogelioLpz commented Mar 28, 2024

Se actualizan versiones compatibles de fasstapi + starlette + uvicorn y otras despendencias

Copy link

codecov bot commented Mar 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.46%. Comparing base (67e4b41) to head (277b91d).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #196   +/-   ##
=======================================
  Coverage   99.46%   99.46%           
=======================================
  Files          10       10           
  Lines         374      374           
  Branches       53       53           
=======================================
  Hits          372      372           
  Misses          2        2           
Flag Coverage Δ
unittests 99.46% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rogelioLpz rogelioLpz changed the title bump dependencies Soporte python:3.10-slim Apr 4, 2024
@rogelioLpz rogelioLpz marked this pull request as ready for review April 4, 2024 00:54
@rogelioLpz rogelioLpz changed the title Soporte python:3.10-slim Upgrade dependencies Apr 4, 2024
Copy link
Member

@felipao-mx felipao-mx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

algunas observaciones

anyio==4.3.0
cuenca-validations==0.11.27
fastapi==0.108.0
httpx==0.27.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

me parece que httpx es una dependencia para testing

mongoengine-plus==0.0.3
anyio==4.3.0
cuenca-validations==0.11.27
fastapi==0.108.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Con esta actualización debemos asegurar que la versión de starlette>=28 de acuerdo a https://github.com/tiangolo/fastapi/releases/tag/0.107.0. Además revisar si la versión de starlette-context no tiene conflictos con una versión más actualizada e starlette

fastapi==0.68.2
mongoengine-plus==0.0.3
anyio==4.3.0
cuenca-validations==0.11.27
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pydantic no tuvo problemas? si si tal vez este prerelease pueda ayudar en algo.Actualiza hasta la última versión de pydantic 1.x https://github.com/cuenca-mx/cuenca-validations/releases/tag/0.11.28.dev0

@@ -14,12 +14,12 @@ def health_auth_check() -> Dict:


@app.get('/raise_cuenca_errors')
def raise_cuenca_errors() -> NoReturn:
def raise_cuenca_errors() -> None:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

según mypy el tipo correcto de retorno es NoReturn
https://mypy.readthedocs.io/en/latest/more_types.html#the-noreturn-type

@felipao-mx
Copy link
Member

Además, para evitar que hayan errores raros al hacer POST a un algún recurso se debe quitar este hack que se puso en fast-agave-authed https://github.com/cuenca-mx/fast-agave-authed/blob/main/fast_agave_authed/middlewares/authed.py#L48-L54. Starlette >= 0.28 ya corrige lo que solucionaba el hack

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