From c5416b2a8cf15316cd5d3f64d75e77f5e8b11e03 Mon Sep 17 00:00:00 2001 From: Pratyush Venkatakrishnan Date: Sat, 14 Dec 2024 23:13:47 -0500 Subject: [PATCH] Update to Requests 2.31.0, Python 3.7 This responds to the CVE without requiring Python 3.8. --- README.md | 2 +- deploy/cron_scripts/update_latest.sh | 4 ++-- requirements.txt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index bb31fc67..6cddf307 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Install: -- Python 3, at least Python 3.6. +- Python 3, at least Python 3.7. - Node.js, at least Node.js 18. - One way to manage Node versions is using [nvm](https://github.com/nvm-sh/nvm). - [Black](https://black.readthedocs.io/en/stable/index.html), if you plan on contributing changes to the Python backend. diff --git a/deploy/cron_scripts/update_latest.sh b/deploy/cron_scripts/update_latest.sh index 6119f50c..45e63b88 100755 --- a/deploy/cron_scripts/update_latest.sh +++ b/deploy/cron_scripts/update_latest.sh @@ -20,9 +20,9 @@ cd "$REPO_DIR/scrapers" git checkout -f deploy -q git pull -q -# The scripts machine we use has Python 3.6, so use that. +# The scripts machine we use has Python 3.7, so use that. # This updates $OUT_FILE. -python3.6 update.py +python3.7 update.py OUT_FILE="$REPO_DIR/public/latest.json" # Copy $OUT_FILE to the output directory, so it can be served to the internet. diff --git a/requirements.txt b/requirements.txt index 74e362d4..4d9ac87d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ beautifulsoup4==4.11.1 lxml==4.9.3 -requests==2.27.1 +requests==2.31.0