From 4bfb6575275a5d21315e3fff6a04a8ff4879221b Mon Sep 17 00:00:00 2001 From: Xavier Medrano Date: Thu, 13 Feb 2025 15:07:24 -0500 Subject: [PATCH] upgrade to python 3.9 to resolve pip error --- .github/workflows/main.yml | 6 +++--- Dockerfile | 4 ++-- requirements.txt | 10 +++++----- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 34457ce5..c22c2c63 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,14 +33,14 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up Python 3.5 + - name: Set up Python 3.9 uses: actions/setup-python@v2 with: # Semantic version range syntax or exact version of a Python version - python-version: '3.5' + python-version: '3.9' - name: Install dependencies run: | - python -m pip install --upgrade pip + python -m pip install pip==24.0 pip install setuptools_scm pip install -r requirements.txt npm install -g jshint diff --git a/Dockerfile b/Dockerfile index f9c43b43..915c7d1d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.5-slim +FROM python:3.9-slim LABEL maintainer "DataMade " RUN apt-get update && \ @@ -8,6 +8,6 @@ RUN mkdir /app WORKDIR /app COPY ./requirements.txt /app/requirements.txt -RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt +RUN pip install pip==24.0 && pip install --no-cache-dir -r requirements.txt COPY . /app diff --git a/requirements.txt b/requirements.txt index b887fb9b..7df32a45 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,14 +1,14 @@ -Django==2.2.9 +Django==2.2.17 djangorestframework==3.11.0 psycopg2-binary>=2.7.4 -numpy==1.14.1 +numpy==1.19.5 csvkit==1.0.3 -cchardet==2.1.1 +cchardet==2.1.7 census==0.8.7 us==1.0.0 inflect==1.0.1 jinja2==2.10.1 -lxml==4.2.1 +lxml==4.6.5 django-debug-toolbar==1.9.1 django-storages==1.6.5 boto3==1.16.63 @@ -24,7 +24,7 @@ pysolr==3.7.0 python-dateutil==2.8.1 sentry-sdk==0.5.1 kombu==4.3.0 -feedparser==5.2.1 +feedparser==6.0.11 django-extra-settings==0.1.1 django-pgviews==0.5.7 bleach