From 171a5bec73151735deef14f40f155f62015dd257 Mon Sep 17 00:00:00 2001 From: Jennifer Richards Date: Thu, 18 May 2023 12:11:58 -0300 Subject: [PATCH] chore: Update setuptools version and suppress warnings pkg_resources warning is caused by a few packages (django-simple-history. django-widget-tweaks, etc). The datetime_safe warning is in tastypie, as indicated. The others are deprecated settings we already have tickets for. --- ietf/settings.py | 5 ++++- requirements.txt | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ietf/settings.py b/ietf/settings.py index e7011abf9..c1786615c 100644 --- a/ietf/settings.py +++ b/ietf/settings.py @@ -13,7 +13,10 @@ import warnings from typing import Any, Dict, List, Tuple # pyflakes:ignore warnings.simplefilter("always", DeprecationWarning) -warnings.filterwarnings("ignore", message="'oidc_provider' defines default_app_config") # hopefully only need until Django 4.1 or 4.2 +warnings.filterwarnings("ignore", message="pkg_resources is deprecated as an API") +warnings.filterwarnings("ignore", module="tastypie", message="The django.utils.datetime_safe module is deprecated.") +warnings.filterwarnings("ignore", message="The USE_DEPRECATED_PYTZ setting,") # https://github.com/ietf-tools/datatracker/issues/5635 +warnings.filterwarnings("ignore", message="The USE_L10N setting is deprecated.") # https://github.com/ietf-tools/datatracker/issues/5648 warnings.filterwarnings("ignore", message="'urllib3\\[secure\\]' extra is deprecated") warnings.filterwarnings("ignore", message="The logout\\(\\) view is superseded by") warnings.filterwarnings("ignore", message="Report.file_reporters will no longer be available in Coverage.py 4.2", module="coverage.report") diff --git a/requirements.txt b/requirements.txt index 972095fb4..81f72ce60 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ # -*- conf-mode -*- -setuptools>=51.1.0,<67.5.0 # Require this first, to prevent later errors +setuptools>=51.1.0 # Require this first, to prevent later errors # argon2-cffi>=21.3.0 # For the Argon2 password hasher option beautifulsoup4>=4.11.1 # Only used in tests @@ -45,7 +45,7 @@ markdown>=3.3.6 types-markdown>=3.3.6 mock>=4.0.3 # Used only by tests, of course types-mock>=4.0.3 -mypy<1.3 # Version requirements determined by django-stubs. +mypy~=1.2.0 # Version requirements determined by django-stubs. oic>=1.3 # Used only by tests Pillow>=9.1.0 psycopg2>=2.9.6