diff --git a/requirements.txt b/requirements.txt index c6b4c9f7..1bb477c2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,13 +2,13 @@ # This file is autogenerated by pip-compile with Python 3.10 # by the following command: # -# pip-compile +# pip-compile --resolver=backtracking # amqp==5.1.1 # via kombu appnope==0.1.3 # via ipython -asgiref==3.6.0 +asgiref==3.7.2 # via django asttokens==2.2.1 # via stack-data @@ -20,13 +20,13 @@ beautifulsoup4==4.12.2 # via # -r requirements.in # webtest -billiard==3.6.4.0 +billiard==4.1.0 # via celery black==23.3.0 # via -r requirements.in -boto3==1.26.118 +boto3==1.28.1 # via -r requirements.in -botocore==1.29.118 +botocore==1.31.1 # via # boto3 # s3transfer @@ -34,17 +34,17 @@ brotli==1.0.9 # via whitenoise build==0.10.0 # via pip-tools -celery==5.2.7 +celery==5.3.1 # via -r requirements.in -certifi==2022.12.7 +certifi==2023.5.7 # via # requests # sentry-sdk cfgv==3.3.1 # via pre-commit -charset-normalizer==3.1.0 +charset-normalizer==3.2.0 # via requests -click==8.1.3 +click==8.1.4 # via # black # celery @@ -56,7 +56,7 @@ click-didyoumean==0.3.0 # via celery click-plugins==1.1.1 # via celery -click-repl==0.2.0 +click-repl==0.3.0 # via celery coolname==2.2.0 # via -r requirements.in @@ -66,7 +66,7 @@ decorator==5.1.1 # via ipython distlib==0.3.6 # via virtualenv -django==4.2.1 +django==4.2.3 # via # -r requirements.in # crispy-bootstrap5 @@ -82,19 +82,19 @@ django==4.2.1 # jsonfield django-appconf==1.0.5 # via django-compressor -django-compressor==4.3.1 +django-compressor==4.4 # via -r requirements.in django-crispy-forms==2.0 # via # -r requirements.in # crispy-bootstrap5 -django-debug-toolbar==4.0.0 +django-debug-toolbar==4.1.0 # via -r requirements.in django-environ==0.10.0 # via -r requirements.in -django-extensions==3.2.1 +django-extensions==3.2.3 # via -r requirements.in -django-js-asset==2.0.0 +django-js-asset==2.1.0 # via django-mptt django-jsonfield==1.4.1 # via -r requirements.in @@ -106,17 +106,17 @@ django-pipeline==2.1.0 # via -r requirements.in django-storages==1.13.2 # via -r requirements.in -django-stubs==1.16.0 +django-stubs==4.2.3 # via -r requirements.in -django-stubs-ext==0.8.0 +django-stubs-ext==4.2.2 # via django-stubs django-webtest==1.9.10 # via -r requirements.in -exceptiongroup==1.1.1 +exceptiongroup==1.1.2 # via pytest executing==1.2.0 # via stack-data -filelock==3.12.0 +filelock==3.12.2 # via virtualenv filemagic==1.6 # via -r requirements.in @@ -128,13 +128,13 @@ honcho==1.1.0 # via -r requirements.in html5lib==1.1 # via -r requirements.in -identify==2.5.22 +identify==2.5.24 # via pre-commit idna==3.4 # via requests iniconfig==2.0.0 # via pytest -ipython==8.12.0 +ipython==8.14.0 # via -r requirements.in isort==5.12.0 # via -r requirements.in @@ -146,9 +146,9 @@ jmespath==1.0.1 # botocore jsonfield==3.1.0 # via -r requirements.in -kombu==5.2.4 +kombu==5.3.1 # via celery -markdown-it-py==2.2.0 +markdown-it-py==3.0.0 # via rich matplotlib-inline==0.1.6 # via ipython @@ -156,7 +156,7 @@ mdurl==0.1.2 # via markdown-it-py mock==5.0.2 # via -r requirements.in -mypy==1.2.0 +mypy==1.4.1 # via # -r requirements.in # django-stubs @@ -164,7 +164,7 @@ mypy-extensions==1.0.0 # via # black # mypy -nodeenv==1.7.0 +nodeenv==1.8.0 # via pre-commit orderedmultidict==1.0.1 # via furl @@ -181,25 +181,25 @@ pexpect==4.8.0 # via ipython pickleshare==0.7.5 # via ipython -pillow==9.5.0 +pillow==10.0.0 # via -r requirements.in -pip-tools==6.13.0 +pip-tools==6.14.0 # via -r requirements.in -platformdirs==3.2.0 +platformdirs==3.8.1 # via # black # virtualenv -pluggy==1.0.0 +pluggy==1.2.0 # via pytest -pre-commit==3.2.2 +pre-commit==3.3.3 # via -r requirements.in -prompt-toolkit==3.0.38 +prompt-toolkit==3.0.39 # via # click-repl # ipython -psycopg[binary,pool]==3.1.8 +psycopg[binary,pool]==3.1.9 # via -r requirements.in -psycopg-binary==3.1.8 +psycopg-binary==3.1.9 # via psycopg psycopg-pool==3.1.7 # via psycopg @@ -212,26 +212,25 @@ pygments==2.15.1 # -r requirements.in # ipython # rich -pymupdf==1.22.3 +pymupdf==1.22.5 # via -r requirements.in -pypdf==3.8.0 +pypdf==3.12.1 # via -r requirements.in pyproject-hooks==1.0.0 # via build -pytest==7.3.1 +pytest==7.4.0 # via pytest-django pytest-django==4.5.2 # via -r requirements.in python-dateutil==2.8.2 # via # botocore + # celery # time-machine python-memcached==1.59 # via -r requirements.in python-slugify==8.0.1 # via -r requirements.in -pytz==2023.3 - # via celery pyyaml==6.0 # via # -r requirements.in @@ -239,7 +238,7 @@ pyyaml==6.0 # responses rcssmin==1.1.1 # via django-compressor -redis==4.5.4 +redis==4.6.0 # via -r requirements.in requests==2.31.0 # via @@ -247,17 +246,17 @@ requests==2.31.0 # responses responses==0.23.1 # via -r requirements.in -rich==13.3.4 +rich==13.4.2 # via -r requirements.in rjsmin==1.2.1 # via django-compressor -s3transfer==0.6.0 +s3transfer==0.6.1 # via boto3 -sentry-sdk==1.20.0 +sentry-sdk==1.27.1 # via -r requirements.in six==1.16.0 # via - # click-repl + # asttokens # django-jsonfield # furl # html5lib @@ -274,7 +273,7 @@ stack-data==0.6.2 # via ipython text-unidecode==1.3 # via python-slugify -time-machine==2.9.0 +time-machine==2.10.0 # via -r requirements.in tomli==2.0.1 # via @@ -282,6 +281,8 @@ tomli==2.0.1 # build # django-stubs # mypy + # pip-tools + # pyproject-hooks # pytest traitlets==5.9.0 # via @@ -291,23 +292,26 @@ types-python-slugify==8.0.0.2 # via -r requirements.in types-pytz==2023.3.0.0 # via django-stubs -types-pyyaml==6.0.12.9 +types-pyyaml==6.0.12.10 # via # -r requirements.in # django-stubs # responses -types-requests==2.28.11.17 +types-requests==2.31.0.1 # via -r requirements.in -types-urllib3==1.26.25.10 +types-urllib3==1.26.25.13 # via types-requests -typing-extensions==4.5.0 +typing-extensions==4.7.1 # via + # asgiref # django-stubs # django-stubs-ext # mypy # psycopg # psycopg-pool -urllib3==1.26.15 +tzdata==2023.3 + # via celery +urllib3==1.26.16 # via # botocore # requests @@ -315,9 +319,10 @@ urllib3==1.26.15 # sentry-sdk vine==5.0.0 # via + # amqp # celery # kombu -virtualenv==20.22.0 +virtualenv==20.23.1 # via pre-commit waitress==2.1.2 # via webtest @@ -331,7 +336,7 @@ webtest==3.0.0 # via django-webtest wheel==0.40.0 # via pip-tools -whitenoise[brotli]==6.4.0 +whitenoise[brotli]==6.5.0 # via -r requirements.in # The following packages are considered to be unsafe in a requirements file: diff --git a/www/tests/test_year_helper.py b/www/tests/test_year_helper.py index ba0b81d6..6b8449ad 100644 --- a/www/tests/test_year_helper.py +++ b/www/tests/test_year_helper.py @@ -1,13 +1,12 @@ -from datetime import datetime +from datetime import datetime, timezone import time_machine -from pytz import UTC from www import helpers -Q1 = datetime(2012, 12, 21, 11, 11, 11, tzinfo=UTC) -Q2 = datetime(2013, 2, 12, 10, 10, 10, tzinfo=UTC) -Q2_2014 = datetime(2015, 3, 19, 15, 35, 22, tzinfo=UTC) +Q1 = datetime(2012, 12, 21, 11, 11, 11, tzinfo=timezone.utc) +Q2 = datetime(2013, 2, 12, 10, 10, 10, tzinfo=timezone.utc) +Q2_2014 = datetime(2015, 3, 19, 15, 35, 22, tzinfo=timezone.utc) @time_machine.travel(Q1)