From 621636bab5da77b6715a381abd51d108040aedcf Mon Sep 17 00:00:00 2001 From: Marcos Prieto Date: Thu, 11 Jan 2024 16:10:05 +0100 Subject: [PATCH 1/3] Upgrade python to 3.11 --- .cookiecutter/cookiecutter.json | 2 +- .github/workflows/ci.yml | 10 +++++----- .python-version | 2 +- Dockerfile | 2 +- README.md | 2 +- bin/make_python | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.cookiecutter/cookiecutter.json b/.cookiecutter/cookiecutter.json index a41e18a6..e2c14bee 100644 --- a/.cookiecutter/cookiecutter.json +++ b/.cookiecutter/cookiecutter.json @@ -15,7 +15,7 @@ "package_name": "via", "slug": "via", "short_description": "An app that proxies web pages and PDF files and injects the Hypothesis client so you can annotate them.", - "python_version": "3.8.12", + "python_version": "3.11.7", "port": "9082", "github_owner": "hypothesis", "visibility": "public", diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc657be3..deba5213 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: - name: Install Python uses: actions/setup-python@v4 with: - python-version: '3.8' + python-version: '3.11' - name: Cache the .tox dir uses: actions/cache@v3 with: @@ -50,7 +50,7 @@ jobs: - name: Install Python uses: actions/setup-python@v4 with: - python-version: '3.8' + python-version: '3.11' - name: Cache the .tox dir uses: actions/cache@v3 with: @@ -79,7 +79,7 @@ jobs: - name: Install Python uses: actions/setup-python@v4 with: - python-version: '3.8' + python-version: '3.11' - name: Cache the .tox dir uses: actions/cache@v3 with: @@ -108,7 +108,7 @@ jobs: - name: Install Python uses: actions/setup-python@v4 with: - python-version: '3.8' + python-version: '3.11' - name: Cache the .tox dir uses: actions/cache@v3 with: @@ -141,7 +141,7 @@ jobs: - name: Install Python uses: actions/setup-python@v4 with: - python-version: '3.8' + python-version: '3.11' - name: Cache the .tox dir uses: actions/cache@v3 with: diff --git a/.python-version b/.python-version index 89a1ad7a..d4b278f0 100644 --- a/.python-version +++ b/.python-version @@ -1 +1 @@ -3.8.12 +3.11.7 diff --git a/Dockerfile b/Dockerfile index 5965aa10..80b14bcc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ RUN yarn build # reverted back to Alpine when Musl v1.2.4 is released. # # See https://github.com/hypothesis/product-backlog/issues/1409 -FROM python:3.8.18-slim-bullseye +FROM python:3.11.7-slim-bullseye LABEL maintainer="Hypothes.is Project and contributors" RUN apt-get update && apt-get install --yes nginx nginx-extras gettext-base supervisor libpq-dev \ diff --git a/README.md b/README.md index 2d81d14f..270b2342 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ - + diff --git a/bin/make_python b/bin/make_python index b73aa337..401f2f65 100755 --- a/bin/make_python +++ b/bin/make_python @@ -8,7 +8,7 @@ if [ -n "${CI+x}" ]; then exit; fi pyenv_root=$(pyenv root) -for python_version in 3.8.12; do +for python_version in 3.11.7; do bin_dir=$pyenv_root/versions/$python_version/bin if [ ! -f "$bin_dir"/tox ]; then pyenv install --skip-existing "$python_version" From c17d0e8c8d0aa33b138c2e3dbe3b4737a59a8491 Mon Sep 17 00:00:00 2001 From: Marcos Prieto Date: Thu, 11 Jan 2024 16:09:24 +0100 Subject: [PATCH 2/3] Upgrade dependencies after the python 3.11 upgrade --- requirements/build.txt | 11 ++------- requirements/checkformatting.txt | 14 ++--------- requirements/coverage.txt | 12 ++-------- requirements/dev.txt | 35 ++++++--------------------- requirements/format.txt | 14 ++--------- requirements/functests.txt | 31 +++++------------------- requirements/lint.txt | 41 +++++--------------------------- requirements/prod.txt | 20 +++++----------- requirements/template.txt | 15 +++--------- requirements/tests.txt | 32 +++++-------------------- requirements/updatepdfjs.txt | 15 +++--------- 11 files changed, 45 insertions(+), 195 deletions(-) diff --git a/requirements/build.txt b/requirements/build.txt index 6ce34938..6579e757 100644 --- a/requirements/build.txt +++ b/requirements/build.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.8 +# This file is autogenerated by pip-compile with Python 3.11 # by the following command: # # pip-compile --allow-unsafe requirements/build.in @@ -9,9 +9,7 @@ build==1.0.3 click==8.1.7 # via pip-tools importlib-metadata==7.0.1 - # via - # build - # pip-sync-faster + # via pip-sync-faster packaging==23.2 # via build pip-sync-faster==0.0.3 @@ -22,11 +20,6 @@ pip-tools==7.3.0 # pip-sync-faster pyproject-hooks==1.0.0 # via build -tomli==2.0.1 - # via - # build - # pip-tools - # pyproject-hooks wheel==0.42.0 # via pip-tools whitenoise==6.6.0 diff --git a/requirements/checkformatting.txt b/requirements/checkformatting.txt index b62fd1a6..0b34deec 100644 --- a/requirements/checkformatting.txt +++ b/requirements/checkformatting.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.8 +# This file is autogenerated by pip-compile with Python 3.11 # by the following command: # # pip-compile --allow-unsafe requirements/checkformatting.in @@ -13,9 +13,7 @@ click==8.1.7 # black # pip-tools importlib-metadata==7.0.1 - # via - # build - # pip-sync-faster + # via pip-sync-faster isort==5.13.2 # via -r requirements/checkformatting.in mypy-extensions==1.0.0 @@ -36,14 +34,6 @@ platformdirs==4.1.0 # via black pyproject-hooks==1.0.0 # via build -tomli==2.0.1 - # via - # black - # build - # pip-tools - # pyproject-hooks -typing-extensions==4.9.0 - # via black wheel==0.42.0 # via pip-tools zipp==3.17.0 diff --git a/requirements/coverage.txt b/requirements/coverage.txt index 9e5ade7d..34fbe676 100644 --- a/requirements/coverage.txt +++ b/requirements/coverage.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.8 +# This file is autogenerated by pip-compile with Python 3.11 # by the following command: # # pip-compile --allow-unsafe requirements/coverage.in @@ -11,9 +11,7 @@ click==8.1.7 coverage[toml]==7.4.0 # via -r requirements/coverage.in importlib-metadata==7.0.1 - # via - # build - # pip-sync-faster + # via pip-sync-faster packaging==23.2 # via build pip-sync-faster==0.0.3 @@ -24,12 +22,6 @@ pip-tools==7.3.0 # pip-sync-faster pyproject-hooks==1.0.0 # via build -tomli==2.0.1 - # via - # build - # coverage - # pip-tools - # pyproject-hooks wheel==0.42.0 # via pip-tools zipp==3.17.0 diff --git a/requirements/dev.txt b/requirements/dev.txt index 5ce3d384..4966e351 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.8 +# This file is autogenerated by pip-compile with Python 3.11 # by the following command: # # pip-compile --allow-unsafe requirements/dev.in @@ -13,8 +13,6 @@ attrs==23.2.0 # -r requirements/prod.txt # jsonschema # referencing -backcall==0.2.0 - # via ipython build==1.0.3 # via pip-tools cachetools==5.3.2 @@ -52,9 +50,9 @@ executing==2.0.1 # via stack-data factory-boy==3.3.0 # via -r requirements/dev.in -faker==22.1.0 +faker==22.2.0 # via factory-boy -google-auth==2.26.1 +google-auth==2.26.2 # via # -r requirements/prod.txt # google-auth-oauthlib @@ -83,23 +81,18 @@ idna==3.6 importlib-metadata==7.0.1 # via # -r requirements/prod.txt - # alembic - # build # h-assets # h-vialib # pip-sync-faster importlib-resources==6.1.1 # via # -r requirements/prod.txt - # alembic # checkmatelib - # jsonschema - # jsonschema-specifications -ipython==8.12.3 +ipython==8.20.0 # via pyramid-ipython jedi==0.19.1 # via ipython -jinja2==3.1.2 +jinja2==3.1.3 # via # -r requirements/prod.txt # pyramid-jinja2 @@ -121,7 +114,7 @@ markupsafe==2.1.3 # jinja2 # mako # pyramid-jinja2 -marshmallow==3.20.1 +marshmallow==3.20.2 # via # -r requirements/prod.txt # webargs @@ -153,18 +146,12 @@ pastedeploy==3.1.0 # plaster-pastedeploy pexpect==4.9.0 # via ipython -pickleshare==0.7.5 - # via ipython pip-sync-faster==0.0.3 # via -r requirements/dev.in pip-tools==7.3.0 # via # -r requirements/dev.in # pip-sync-faster -pkgutil-resolve-name==1.3.10 - # via - # -r requirements/prod.txt - # jsonschema plaster==1.1.2 # via # -r requirements/prod.txt @@ -256,7 +243,7 @@ rsa==4.9 # -r requirements/prod.txt # google-auth # python-jose -sentry-sdk==1.39.1 +sentry-sdk==1.39.2 # via # -r requirements/prod.txt # h-pyramid-sentry @@ -275,11 +262,6 @@ stack-data==0.6.3 # via ipython supervisor==4.2.5 # via -r requirements/dev.in -tomli==2.0.1 - # via - # build - # pip-tools - # pyproject-hooks traitlets==5.14.1 # via # ipython @@ -297,8 +279,6 @@ typing-extensions==4.9.0 # via # -r requirements/prod.txt # alembic - # faker - # ipython # sqlalchemy urllib3==2.1.0 # via @@ -330,7 +310,6 @@ zipp==3.17.0 # via # -r requirements/prod.txt # importlib-metadata - # importlib-resources zope-deprecation==5.0 # via # -r requirements/prod.txt diff --git a/requirements/format.txt b/requirements/format.txt index 2cbaa4aa..d17887b5 100644 --- a/requirements/format.txt +++ b/requirements/format.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.8 +# This file is autogenerated by pip-compile with Python 3.11 # by the following command: # # pip-compile --allow-unsafe requirements/format.in @@ -13,9 +13,7 @@ click==8.1.7 # black # pip-tools importlib-metadata==7.0.1 - # via - # build - # pip-sync-faster + # via pip-sync-faster isort==5.13.2 # via -r requirements/format.in mypy-extensions==1.0.0 @@ -36,14 +34,6 @@ platformdirs==4.1.0 # via black pyproject-hooks==1.0.0 # via build -tomli==2.0.1 - # via - # black - # build - # pip-tools - # pyproject-hooks -typing-extensions==4.9.0 - # via black wheel==0.42.0 # via pip-tools zipp==3.17.0 diff --git a/requirements/functests.txt b/requirements/functests.txt index e2b10c34..ea72b9da 100644 --- a/requirements/functests.txt +++ b/requirements/functests.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.8 +# This file is autogenerated by pip-compile with Python 3.11 # by the following command: # # pip-compile --allow-unsafe requirements/functests.in @@ -44,15 +44,13 @@ ecdsa==0.18.0 # via # -r requirements/prod.txt # python-jose -exceptiongroup==1.2.0 - # via pytest factory-boy==3.3.0 # via # -r requirements/functests.in # pytest-factoryboy -faker==22.1.0 +faker==22.2.0 # via factory-boy -google-auth==2.26.1 +google-auth==2.26.2 # via # -r requirements/prod.txt # google-auth-oauthlib @@ -85,23 +83,18 @@ idna==3.6 importlib-metadata==7.0.1 # via # -r requirements/prod.txt - # alembic - # build # h-assets # h-vialib # pip-sync-faster importlib-resources==6.1.1 # via # -r requirements/prod.txt - # alembic # checkmatelib - # jsonschema - # jsonschema-specifications inflection==0.5.1 # via pytest-factoryboy iniconfig==2.0.0 # via pytest -jinja2==3.1.2 +jinja2==3.1.3 # via # -r requirements/prod.txt # pyramid-jinja2 @@ -123,7 +116,7 @@ markupsafe==2.1.3 # jinja2 # mako # pyramid-jinja2 -marshmallow==3.20.1 +marshmallow==3.20.2 # via # -r requirements/prod.txt # webargs @@ -156,10 +149,6 @@ pip-tools==7.3.0 # via # -r requirements/functests.in # pip-sync-faster -pkgutil-resolve-name==1.3.10 - # via - # -r requirements/prod.txt - # jsonschema plaster==1.1.2 # via # -r requirements/prod.txt @@ -248,7 +237,7 @@ rsa==4.9 # -r requirements/prod.txt # google-auth # python-jose -sentry-sdk==1.39.1 +sentry-sdk==1.39.2 # via # -r requirements/prod.txt # h-pyramid-sentry @@ -264,12 +253,6 @@ sqlalchemy==2.0.25 # -r requirements/prod.txt # alembic # zope-sqlalchemy -tomli==2.0.1 - # via - # build - # pip-tools - # pyproject-hooks - # pytest transaction==4.0 # via # -r requirements/prod.txt @@ -283,7 +266,6 @@ typing-extensions==4.9.0 # via # -r requirements/prod.txt # alembic - # faker # pytest-factoryboy # sqlalchemy urllib3==2.1.0 @@ -319,7 +301,6 @@ zipp==3.17.0 # via # -r requirements/prod.txt # importlib-metadata - # importlib-resources zope-deprecation==5.0 # via # -r requirements/prod.txt diff --git a/requirements/lint.txt b/requirements/lint.txt index 32bd6125..6c60a71a 100644 --- a/requirements/lint.txt +++ b/requirements/lint.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.8 +# This file is autogenerated by pip-compile with Python 3.11 # by the following command: # # pip-compile --allow-unsafe requirements/lint.in @@ -72,24 +72,19 @@ ecdsa==0.18.0 # -r requirements/functests.txt # -r requirements/tests.txt # python-jose -exceptiongroup==1.2.0 - # via - # -r requirements/functests.txt - # -r requirements/tests.txt - # pytest factory-boy==3.3.0 # via # -r requirements/functests.txt # -r requirements/tests.txt # pytest-factoryboy -faker==22.1.0 +faker==22.2.0 # via # -r requirements/functests.txt # -r requirements/tests.txt # factory-boy freezegun==1.4.0 # via -r requirements/tests.txt -google-auth==2.26.1 +google-auth==2.26.2 # via # -r requirements/functests.txt # -r requirements/tests.txt @@ -141,8 +136,6 @@ importlib-metadata==7.0.1 # via # -r requirements/functests.txt # -r requirements/tests.txt - # alembic - # build # h-assets # h-vialib # pip-sync-faster @@ -150,10 +143,7 @@ importlib-resources==6.1.1 # via # -r requirements/functests.txt # -r requirements/tests.txt - # alembic # checkmatelib - # jsonschema - # jsonschema-specifications inflection==0.5.1 # via # -r requirements/functests.txt @@ -166,7 +156,7 @@ iniconfig==2.0.0 # pytest isort==5.13.2 # via pylint -jinja2==3.1.2 +jinja2==3.1.3 # via # -r requirements/functests.txt # -r requirements/tests.txt @@ -193,7 +183,7 @@ markupsafe==2.1.3 # jinja2 # mako # pyramid-jinja2 -marshmallow==3.20.1 +marshmallow==3.20.2 # via # -r requirements/functests.txt # -r requirements/tests.txt @@ -240,11 +230,6 @@ pip-tools==7.3.0 # -r requirements/lint.in # -r requirements/tests.txt # pip-sync-faster -pkgutil-resolve-name==1.3.10 - # via - # -r requirements/functests.txt - # -r requirements/tests.txt - # jsonschema plaster==1.1.2 # via # -r requirements/functests.txt @@ -383,7 +368,7 @@ rsa==4.9 # -r requirements/tests.txt # google-auth # python-jose -sentry-sdk==1.39.1 +sentry-sdk==1.39.2 # via # -r requirements/functests.txt # -r requirements/tests.txt @@ -408,16 +393,6 @@ sqlalchemy==2.0.25 # zope-sqlalchemy toml==0.10.2 # via -r requirements/lint.in -tomli==2.0.1 - # via - # -r requirements/functests.txt - # -r requirements/tests.txt - # build - # coverage - # pip-tools - # pylint - # pyproject-hooks - # pytest tomlkit==0.12.3 # via pylint transaction==4.0 @@ -436,9 +411,6 @@ typing-extensions==4.9.0 # -r requirements/functests.txt # -r requirements/tests.txt # alembic - # astroid - # faker - # pylint # pytest-factoryboy # sqlalchemy urllib3==2.1.0 @@ -488,7 +460,6 @@ zipp==3.17.0 # -r requirements/functests.txt # -r requirements/tests.txt # importlib-metadata - # importlib-resources zope-deprecation==5.0 # via # -r requirements/functests.txt diff --git a/requirements/prod.txt b/requirements/prod.txt index 9e2bae3b..9605dca9 100644 --- a/requirements/prod.txt +++ b/requirements/prod.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.8 +# This file is autogenerated by pip-compile with Python 3.11 # by the following command: # # pip-compile --allow-unsafe requirements/prod.in @@ -26,7 +26,7 @@ cryptography==41.0.7 # via python-jose ecdsa==0.18.0 # via python-jose -google-auth==2.26.1 +google-auth==2.26.2 # via google-auth-oauthlib google-auth-oauthlib==1.2.0 # via -r requirements/prod.in @@ -46,17 +46,13 @@ idna==3.6 # via requests importlib-metadata==7.0.1 # via - # alembic # h-assets # h-vialib importlib-resources==6.1.1 # via # -r requirements/prod.in - # alembic # checkmatelib - # jsonschema - # jsonschema-specifications -jinja2==3.1.2 +jinja2==3.1.3 # via pyramid-jinja2 jsonschema==4.20.0 # via checkmatelib @@ -69,7 +65,7 @@ markupsafe==2.1.3 # jinja2 # mako # pyramid-jinja2 -marshmallow==3.20.1 +marshmallow==3.20.2 # via # -r requirements/prod.in # webargs @@ -87,8 +83,6 @@ packaging==23.2 # zope-sqlalchemy pastedeploy==3.1.0 # via plaster-pastedeploy -pkgutil-resolve-name==1.3.10 - # via jsonschema plaster==1.1.2 # via # plaster-pastedeploy @@ -149,7 +143,7 @@ rsa==4.9 # via # google-auth # python-jose -sentry-sdk==1.39.1 +sentry-sdk==1.39.2 # via h-pyramid-sentry six==1.16.0 # via ecdsa @@ -185,9 +179,7 @@ whitenoise==6.6.0 wired==0.3 # via pyramid-services zipp==3.17.0 - # via - # importlib-metadata - # importlib-resources + # via importlib-metadata zope-deprecation==5.0 # via # pyramid diff --git a/requirements/template.txt b/requirements/template.txt index 84d3ecf5..9d46d5c1 100644 --- a/requirements/template.txt +++ b/requirements/template.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.8 +# This file is autogenerated by pip-compile with Python 3.11 # by the following command: # # pip-compile --allow-unsafe requirements/template.in @@ -25,10 +25,8 @@ cookiecutter==2.5.0 idna==3.6 # via requests importlib-metadata==7.0.1 - # via - # build - # pip-sync-faster -jinja2==3.1.2 + # via pip-sync-faster +jinja2==3.1.3 # via cookiecutter markdown-it-py==3.0.0 # via rich @@ -62,15 +60,8 @@ six==1.16.0 # via python-dateutil text-unidecode==1.3 # via python-slugify -tomli==2.0.1 - # via - # build - # pip-tools - # pyproject-hooks types-python-dateutil==2.8.19.20240106 # via arrow -typing-extensions==4.9.0 - # via rich urllib3==2.1.0 # via requests wheel==0.42.0 diff --git a/requirements/tests.txt b/requirements/tests.txt index 80af0fb6..37871f3e 100644 --- a/requirements/tests.txt +++ b/requirements/tests.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.8 +# This file is autogenerated by pip-compile with Python 3.11 # by the following command: # # pip-compile --allow-unsafe requirements/tests.in @@ -46,17 +46,15 @@ ecdsa==0.18.0 # via # -r requirements/prod.txt # python-jose -exceptiongroup==1.2.0 - # via pytest factory-boy==3.3.0 # via # -r requirements/tests.in # pytest-factoryboy -faker==22.1.0 +faker==22.2.0 # via factory-boy freezegun==1.4.0 # via -r requirements/tests.in -google-auth==2.26.1 +google-auth==2.26.2 # via # -r requirements/prod.txt # google-auth-oauthlib @@ -89,23 +87,18 @@ idna==3.6 importlib-metadata==7.0.1 # via # -r requirements/prod.txt - # alembic - # build # h-assets # h-vialib # pip-sync-faster importlib-resources==6.1.1 # via # -r requirements/prod.txt - # alembic # checkmatelib - # jsonschema - # jsonschema-specifications inflection==0.5.1 # via pytest-factoryboy iniconfig==2.0.0 # via pytest -jinja2==3.1.2 +jinja2==3.1.3 # via # -r requirements/prod.txt # pyramid-jinja2 @@ -127,7 +120,7 @@ markupsafe==2.1.3 # jinja2 # mako # pyramid-jinja2 -marshmallow==3.20.1 +marshmallow==3.20.2 # via # -r requirements/prod.txt # webargs @@ -160,10 +153,6 @@ pip-tools==7.3.0 # via # -r requirements/tests.in # pip-sync-faster -pkgutil-resolve-name==1.3.10 - # via - # -r requirements/prod.txt - # jsonschema plaster==1.1.2 # via # -r requirements/prod.txt @@ -257,7 +246,7 @@ rsa==4.9 # -r requirements/prod.txt # google-auth # python-jose -sentry-sdk==1.39.1 +sentry-sdk==1.39.2 # via # -r requirements/prod.txt # h-pyramid-sentry @@ -271,13 +260,6 @@ sqlalchemy==2.0.25 # -r requirements/prod.txt # alembic # zope-sqlalchemy -tomli==2.0.1 - # via - # build - # coverage - # pip-tools - # pyproject-hooks - # pytest transaction==4.0 # via # -r requirements/prod.txt @@ -291,7 +273,6 @@ typing-extensions==4.9.0 # via # -r requirements/prod.txt # alembic - # faker # pytest-factoryboy # sqlalchemy urllib3==2.1.0 @@ -322,7 +303,6 @@ zipp==3.17.0 # via # -r requirements/prod.txt # importlib-metadata - # importlib-resources zope-deprecation==5.0 # via # -r requirements/prod.txt diff --git a/requirements/updatepdfjs.txt b/requirements/updatepdfjs.txt index 4fcac488..e59cb7b8 100644 --- a/requirements/updatepdfjs.txt +++ b/requirements/updatepdfjs.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.8 +# This file is autogenerated by pip-compile with Python 3.11 # by the following command: # # pip-compile --allow-unsafe requirements/updatepdfjs.in @@ -9,9 +9,7 @@ build==1.0.3 click==8.1.7 # via pip-tools importlib-metadata==7.0.1 - # via - # build - # pip-sync-faster + # via pip-sync-faster importlib-resources==6.1.1 # via -r requirements/updatepdfjs.in packaging==23.2 @@ -24,17 +22,10 @@ pip-tools==7.3.0 # pip-sync-faster pyproject-hooks==1.0.0 # via build -tomli==2.0.1 - # via - # build - # pip-tools - # pyproject-hooks wheel==0.42.0 # via pip-tools zipp==3.17.0 - # via - # importlib-metadata - # importlib-resources + # via importlib-metadata # The following packages are considered to be unsafe in a requirements file: pip==23.3.2 From bf727462ed5fcbb7451e6d1ec3e2366ea9ebdc91 Mon Sep 17 00:00:00 2001 From: Marcos Prieto Date: Thu, 11 Jan 2024 16:16:41 +0100 Subject: [PATCH 3/3] Filterwarnings about deprecated CGI warning --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 8c7dd557..f61e985c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,6 +7,8 @@ filterwarnings = [ "ignore:^pkg_resources is deprecated as an API:DeprecationWarning:pkg_resources", "ignore:^pkg_resources is deprecated as an API:DeprecationWarning:pyramid", "ignore:^Deprecated call to .pkg_resources\\.declare_namespace\\('.*'\\).\\.:DeprecationWarning:pkg_resources", + # https://github.com/webpy/webpy/issues/732 + "ignore:^\\'cgi\\' is deprecated and slated for removal in Python 3\\.13:DeprecationWarning:webob", ] [tool.pydocstyle]