diff options
| author | 2023-07-11 20:58:51 +0100 | |
|---|---|---|
| committer | 2023-07-11 20:58:51 +0100 | |
| commit | 819e9c1204af2abe475e7d1ed45bde99c86bca08 (patch) | |
| tree | c6ad213dae0ca93efc33b3054e788ac7ac0da225 | |
| parent | Drop redirect usage from URL references (#1016) (diff) | |
| parent | Fix warning ignore (diff) | |
Merge pull request #999 from python-discord/dependabot/pip/whitenoise-6.5.0
Bump whitenoise from 6.4.0 to 6.5.0
| -rwxr-xr-x | manage.py | 13 | ||||
| -rw-r--r-- | poetry.lock | 8 | ||||
| -rw-r--r-- | pyproject.toml | 2 | 
3 files changed, 12 insertions, 11 deletions
@@ -2,12 +2,12 @@  import os  import platform  import sys +import warnings  from pathlib import Path  import django  from django.contrib.auth import get_user_model  from django.core.management import call_command, execute_from_command_line -from django.test.utils import ignore_warnings  DEFAULT_ENVS = {      "DJANGO_SETTINGS_MODULE": "pydis_site.settings", @@ -160,11 +160,12 @@ class SiteManager:          # tests, staticfiles are not, and do not need to be generated.          # The following line suppresses the warning.          # Reference: https://github.com/evansd/whitenoise/issues/215 -        with ignore_warnings( -            message=r"No directory at: .*staticfiles", -            module="whitenoise.base", -        ): -            call_command(*sys.argv[1:]) +        warnings.filterwarnings( +            action='ignore', +            category=UserWarning, +            message=r"^No directory at: .*staticfiles/$" +        ) +        call_command(*sys.argv[1:])  def clean_up_static_files(build_folder: Path) -> None: diff --git a/poetry.lock b/poetry.lock index cbbc35e7..9679e9f6 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1153,13 +1153,13 @@ test = ["covdefaults (>=2.3)", "coverage (>=7.2.3)", "coverage-enable-subprocess  [[package]]  name = "whitenoise" -version = "6.4.0" +version = "6.5.0"  description = "Radically simplified static file serving for WSGI applications"  optional = false  python-versions = ">=3.7"  files = [ -    {file = "whitenoise-6.4.0-py3-none-any.whl", hash = "sha256:599dc6ca57e48929dfeffb2e8e187879bfe2aed0d49ca419577005b7f2cc930b"}, -    {file = "whitenoise-6.4.0.tar.gz", hash = "sha256:a02d6660ad161ff17e3042653c8e3f5ecbb2a2481a006bde125b9efb9a30113a"}, +    {file = "whitenoise-6.5.0-py3-none-any.whl", hash = "sha256:16468e9ad2189f09f4a8c635a9031cc9bb2cdbc8e5e53365407acf99f7ade9ec"}, +    {file = "whitenoise-6.5.0.tar.gz", hash = "sha256:15fe60546ac975b58e357ccaeb165a4ca2d0ab697e48450b8f0307ca368195a8"},  ]  [package.extras] @@ -1168,4 +1168,4 @@ brotli = ["Brotli"]  [metadata]  lock-version = "2.0"  python-versions = "3.11.*" -content-hash = "dd091c730ed0d89347ccc5bb92f181f1da81ea710d7cfec33d774a138f6f9f1d" +content-hash = "fcfdd26d01811190d1d00273ee3a003459c11ed6d02e49eae28678bf58008a03" diff --git a/pyproject.toml b/pyproject.toml index 6251df24..17771b5e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,7 @@ pymdown-extensions = "10.0.1"  python-frontmatter = "1.0.0"  pyyaml = "6.0"  sentry-sdk = "1.28.0" -whitenoise = "6.4.0" +whitenoise = "6.5.0"  psycopg = {extras = ["binary"], version = "3.1.9"}  [tool.poetry.group.dev.dependencies]  |