From f071ec528e016647709bacdb3c0040aae8d54522 Mon Sep 17 00:00:00 2001 From: alvertogit <36294057+alvertogit@users.noreply.github.com> Date: Sun, 2 Jun 2024 21:09:12 +0200 Subject: [PATCH] upgraded dependencies --- Dockerfile | 2 +- README.md | 8 ++++---- docker-compose.yml | 2 +- requirements.txt | 6 +++--- requirements_dev.txt | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index deb8c7a..fd3994b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ WORKDIR /app COPY requirements.txt /app RUN python3 -m venv . RUN python3 -m pip install pip==24.0 -RUN python3 -m pip install setuptools==69.5.1 +RUN python3 -m pip install setuptools==70.0.0 RUN python3 -m pip install --no-cache-dir -r requirements.txt COPY ./app /app EXPOSE 5000 diff --git a/README.md b/README.md index 2d79c51..bd70d5a 100644 --- a/README.md +++ b/README.md @@ -24,12 +24,12 @@ The code has been tested using: - [Jupyter Lab] (4.2): a web-based interactive development environment for [Jupyter Notebooks], code and data. - [Flask] (3.0): a microframework for [Python] based on Werkzeug, Jinja 2 and good intentions. - [Gunicorn] (22.0): a [Python] [WSGI] HTTP Server for UNIX. -- [NGINX] (1.25): a free, open-source, high-performance HTTP server, reverse proxy, and IMAP/POP3 proxy server. +- [NGINX] (1.27): a free, open-source, high-performance HTTP server, reverse proxy, and IMAP/POP3 proxy server. - [Docker] (26.1): an open platform for developers and sysadmins to build, ship, and run distributed applications, whether on laptops, data center VMs, or the cloud. - [Docker Compose] (2.27): a tool for defining and running multi-container [Docker] applications. - [Keras] ([TensorFlow] built-in): a high-level neural networks [API], written in [Python] and capable of running on top of [TensorFlow]. - [TensorFlow] (2.16): an open source software [Deep Learning] library for high performance numerical computation using data flow graphs. -- [Matplotlib] (3.8): a plotting library for [Python] and its numerical mathematics extension [NumPy]. +- [Matplotlib] (3.9): a plotting library for [Python] and its numerical mathematics extension [NumPy]. - [NumPy] (1.26): a library for [Python], adding support for large, multi-dimensional arrays and matrices, along with a large collection of high-level mathematical functions to operate on these arrays. - [Ruff] (0.4): An extremely fast Python linter and code formatter, written in Rust. - [scikit-image] (0.23): a collection of algorithms for image processing with [Python]. @@ -44,7 +44,7 @@ Command to configure virtual environment with [venv]: ~/deeplearning_flask$ python3 -m venv .venv ~/deeplearning_flask$ source .venv/bin/activate (.venv)~/deeplearning_flask$ python3 -m pip install pip==24.0 -(.venv)~/deeplearning_flask$ python3 -m pip install setuptools==69.5.1 +(.venv)~/deeplearning_flask$ python3 -m pip install setuptools==70.0.0 (.venv)~/deeplearning_flask$ python3 -m pip install -r requirements_dev.txt ``` @@ -158,7 +158,7 @@ It is possible to execute tests of [Flask] microservice created with [pytest] fr ~/app# make test ... ============================= test session starts ============================== -platform linux -- Python 3.12.3, pytest-8.2.0, pluggy-1.5.0 +platform linux -- Python 3.12.3, pytest-8.2.1, pluggy-1.5.0 rootdir: /app/tests collected 2 items diff --git a/docker-compose.yml b/docker-compose.yml index 5c0c675..49440cc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,7 +9,7 @@ services: - nginx_network nginx: - image: nginx:1.25-alpine + image: nginx:1.27-alpine ports: - 80:80 volumes: diff --git a/requirements.txt b/requirements.txt index 192eda1..371ac76 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,8 +3,8 @@ gunicorn==22.0.0 numpy==1.26.4 Pillow==10.3.0 pur==7.3.1 -pytest==8.2.0 -requests==2.31.0 -ruff==0.4.4 +pytest==8.2.1 +requests==2.32.3 +ruff==0.4.7 scikit-image==0.23.2 tensorflow==2.16.1 diff --git a/requirements_dev.txt b/requirements_dev.txt index 27e6999..16e0c11 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -1,3 +1,3 @@ -r requirements.txt -jupyterlab==4.2.0 -matplotlib==3.8.4 +jupyterlab==4.2.1 +matplotlib==3.9.0