From 9c2f95f4b23e71bbc5b4913399eaff2c1feb4730 Mon Sep 17 00:00:00 2001 From: "herve.le-bars" Date: Wed, 30 Oct 2024 17:54:39 +0100 Subject: [PATCH] =?UTF-8?q?migration:=20uv=20with=20python=203.10=20NOK=20?= =?UTF-8?q?(probl=C3=A8me=20de=20virtualenv=20avec=20uv=20r=C3=A9pertoire?= =?UTF-8?q?=20/venv)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/pyproject.toml | 24 ++++++++++++------------ docker/Dockerfile | 5 +++-- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/backend/pyproject.toml b/backend/pyproject.toml index 95b4bd25..3c5c6ecc 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -17,35 +17,35 @@ dev = [ authors = [ {name = "Your Name", email = "you@example.com"}, ] -requires-python = "~=3.11" +requires-python = "~=3.10" dependencies = [ "alembic~=1.13", - "autopep8~=2.0", - "dependency-injector~=4.41", + "autopep8~=2.3", + "dependency-injector~=4.42", "dependency-injection~=1.2", - "GeoAlchemy2~=0.14", + "GeoAlchemy2~=0.15", "geopandas~=0.14", "geopy~=2.4", "gql~=3.5", - "matplotlib~=3.8", + "matplotlib~=3.9", "openpyxl~=3.1", "pandas~=2.2", "poetry~=1.8", "psycopg2-binary~=2.9", - "pydantic~=2.6", - "pydantic-settings~=2.2", + "pydantic~=2.9", + "pydantic-settings~=2.6", "python-dotenv~=1.0", "PyYAML~=6.0", - "requests~=2.31", + "requests~=2.32", "requests-toolbelt~=1.0", "shapely~=2.0", "scipy==1.12.0", - "slack-sdk~=3.27", + "slack-sdk~=3.33", "SQLAlchemy~=2.0", "pycountry==23.12.11", - "fastapi[standard]>=0.111.0,<1.0.0", - "uvicorn<1.0.0,>=0.30.1", - "redis<6.0.0,>=5.0.4", + "fastapi[standard]>=0.115.0,<1.0.0", + "uvicorn~=0.32", + "redis~=5.0", ] name = "bloom" version = "0.1.0" diff --git a/docker/Dockerfile b/docker/Dockerfile index 071defa5..f4bd12ee 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -5,7 +5,8 @@ RUN apt-get update &&\ apt-get -y install curl &&\ apt-get install -y rsyslog &&\ apt-get install -y libgdal-dev &&\ - apt-get install -y g++ + apt-get install -y g++ &&\ + apt-get install -y clang # Define working directory @@ -33,7 +34,7 @@ RUN curl -LsSf https://astral.sh/uv/install.sh | sh RUN . ~/.cargo/env &&\ cd backend &&\ - uv venv &&\ + uv venv /venv &&\ echo ". /venv/bin/activate" >> /root/.bashrc &&\ uv sync