Skip to content

Commit

Permalink
Upgrade Django to 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhwaniartefact authored Jan 18, 2024
1 parent 6f67c13 commit d2907d6
Show file tree
Hide file tree
Showing 9 changed files with 80 additions and 61 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
"3.8",
"3.9",
"3.10",
"3.11",
]
steps:
- name: "Check out repository"
Expand Down Expand Up @@ -68,6 +69,7 @@ jobs:
"3.8",
"3.9",
"3.10",
"3.11",
]
steps:
- name: "Check out repository"
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repos:
rev: "1.15.0"
hooks:
- id: django-upgrade
args: [--target-version, "3.2"]
args: [--target-version, "4.2"]
- repo: https://github.com/psf/black
rev: "23.10.1"
hooks:
Expand Down
53 changes: 26 additions & 27 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ asgiref==3.7.2
# django
bagit==1.8.1
# via -r requirements.txt
boto3==1.33.2
boto3==1.34.21
# via -r requirements.txt
botocore==1.33.2
botocore==1.34.21
# via
# -r requirements.txt
# boto3
Expand Down Expand Up @@ -43,7 +43,7 @@ click==8.1.7
# via pip-tools
colorama==0.4.6
# via tox
coverage[toml]==7.3.2
coverage[toml]==7.4.0
# via
# -r requirements-dev.in
# pytest-cov
Expand All @@ -59,11 +59,11 @@ debtcollector==2.5.0
# oslo-config
# oslo-utils
# python-keystoneclient
distlib==0.3.7
distlib==0.3.8
# via virtualenv
dj-database-url==2.1.0
# via -r requirements.txt
django==3.2.23
django==4.2.9
# via
# -r requirements.txt
# dj-database-url
Expand Down Expand Up @@ -92,7 +92,7 @@ filelock==3.13.1
# virtualenv
gevent==23.9.1
# via -r requirements.txt
greenlet==3.0.1
greenlet==3.0.3
# via
# -r requirements.txt
# gevent
Expand All @@ -106,7 +106,7 @@ idna==3.6
# via
# -r requirements.txt
# requests
importlib-metadata==6.8.0
importlib-metadata==7.0.1
# via
# build
# pytest-randomly
Expand All @@ -130,29 +130,29 @@ josepy==1.14.0
# mozilla-django-oidc
jsonfield==3.1.0
# via -r requirements.txt
keystoneauth1==5.4.0
keystoneauth1==5.5.0
# via
# -r requirements.txt
# python-keystoneclient
lxml==4.9.3
lxml==5.1.0
# via
# -r requirements.txt
# metsrw
# python-cas
# sword2
metsrw==0.5.0
# via -r requirements.txt
mozilla-django-oidc==3.0.0
mozilla-django-oidc==4.0.0
# via -r requirements.txt
msgpack==1.0.7
# via
# -r requirements.txt
# oslo-serialization
mysqlclient==2.2.0
mysqlclient==2.2.1
# via
# -r requirements.txt
# agentarchives
netaddr==0.9.0
netaddr==0.10.1
# via
# -r requirements.txt
# oslo-config
Expand All @@ -165,7 +165,7 @@ os-service-types==1.7.0
# via
# -r requirements.txt
# keystoneauth1
oslo-config==9.2.0
oslo-config==9.3.0
# via
# -r requirements.txt
# python-keystoneclient
Expand All @@ -175,11 +175,11 @@ oslo-i18n==6.2.0
# oslo-config
# oslo-utils
# python-keystoneclient
oslo-serialization==5.2.0
oslo-serialization==5.3.0
# via
# -r requirements.txt
# python-keystoneclient
oslo-utils==6.3.0
oslo-utils==7.0.0
# via
# -r requirements.txt
# oslo-serialization
Expand All @@ -205,7 +205,7 @@ pbr==6.0.0
# stevedore
pip-tools==7.3.0
# via -r requirements-dev.in
platformdirs==4.0.0
platformdirs==4.1.0
# via
# tox
# virtualenv
Expand Down Expand Up @@ -243,7 +243,7 @@ pyproject-api==1.6.1
# via tox
pyproject-hooks==1.0.0
# via build
pytest==7.4.3
pytest==7.4.4
# via
# -r requirements-dev.in
# pytest-cov
Expand All @@ -267,9 +267,9 @@ python-dateutil==2.8.2
# -r requirements.txt
# botocore
# django-tastypie
python-gnupg==0.5.1
python-gnupg==0.5.2
# via -r requirements.txt
python-keystoneclient==5.2.0
python-keystoneclient==5.3.0
# via -r requirements.txt
python-ldap==3.4.4
# via
Expand All @@ -284,7 +284,6 @@ python-swiftclient==4.4.0
pytz==2023.3.post1
# via
# -r requirements.txt
# django
# oslo-serialization
# oslo-utils
pyyaml==6.0.1
Expand All @@ -306,7 +305,7 @@ rfc3986==2.0.0
# via
# -r requirements.txt
# oslo-config
s3transfer==0.8.1
s3transfer==0.10.0
# via
# -r requirements.txt
# boto3
Expand Down Expand Up @@ -337,14 +336,14 @@ tomli==2.0.1
# pyproject-hooks
# pytest
# tox
tox==4.11.4
tox==4.12.1
# via -r requirements-dev.in
typing-extensions==4.8.0
typing-extensions==4.9.0
# via
# -r requirements.txt
# asgiref
# dj-database-url
tzdata==2023.3
tzdata==2023.4
# via
# -r requirements.txt
# oslo-serialization
Expand All @@ -354,7 +353,7 @@ urllib3==1.26.18
# -r requirements.txt
# botocore
# requests
virtualenv==20.24.7
virtualenv==20.25.0
# via tox
wheel==0.42.0
# via pip-tools
Expand All @@ -379,9 +378,9 @@ zope-interface==6.1
# gevent

# The following packages are considered to be unsafe in a requirements file:
pip==23.3.1
pip==23.3.2
# via pip-tools
setuptools==69.0.2
setuptools==69.0.3
# via
# -r requirements.txt
# pip-tools
Expand Down
6 changes: 1 addition & 5 deletions requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
bagit
boto3
brotli
Django>=3.2,<4
Django>=4.2,<5
django-csp
django-tastypie
dj-database-url
Expand All @@ -15,15 +15,12 @@ metsrw
python-gnupg
python-keystoneclient
python-swiftclient
requests~=2.27; python_version == "3.6"
requests
git+https://github.com/swordapp/python-client-sword2.git@59db54c03e4498dd6b001ac4f3a4167aa2fb8987#egg=sword2
whitenoise>=5.3.0,<6.0; python_version == "3.6"
whitenoise
agentarchives
git+https://github.com/Brown-University-Library/django-shibboleth-remoteuser.git@962f6f9818683ef5f6432f091d22945e54b82592#egg=django-shibboleth-remoteuser
prometheus_client
django-prometheus>=2.2,<2.3; python_version == "3.6"
django-prometheus

# LDAP support
Expand All @@ -34,5 +31,4 @@ django-auth-ldap
django-cas-ng

# Required for OpenID Connect authentication
mozilla-django-oidc~=2.0; python_version == "3.6"
mozilla-django-oidc
37 changes: 18 additions & 19 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ asgiref==3.7.2
# via django
bagit==1.8.1
# via -r requirements.in
boto3==1.33.2
boto3==1.34.21
# via -r requirements.in
botocore==1.33.2
botocore==1.34.21
# via
# boto3
# s3transfer
Expand All @@ -36,7 +36,7 @@ debtcollector==2.5.0
# python-keystoneclient
dj-database-url==2.1.0
# via -r requirements.in
django==3.2.23
django==4.2.9
# via
# -r requirements.in
# dj-database-url
Expand All @@ -59,7 +59,7 @@ django-tastypie==0.14.6
# via -r requirements.in
gevent==23.9.1
# via -r requirements.in
greenlet==3.0.1
greenlet==3.0.3
# via gevent
gunicorn==21.2.0
# via -r requirements.in
Expand All @@ -81,40 +81,40 @@ josepy==1.14.0
# via mozilla-django-oidc
jsonfield==3.1.0
# via -r requirements.in
keystoneauth1==5.4.0
keystoneauth1==5.5.0
# via python-keystoneclient
lxml==4.9.3
lxml==5.1.0
# via
# -r requirements.in
# metsrw
# python-cas
# sword2
metsrw==0.5.0
# via -r requirements.in
mozilla-django-oidc==3.0.0
mozilla-django-oidc==4.0.0
# via -r requirements.in
msgpack==1.0.7
# via oslo-serialization
mysqlclient==2.2.0
mysqlclient==2.2.1
# via agentarchives
netaddr==0.9.0
netaddr==0.10.1
# via
# oslo-config
# oslo-utils
netifaces==0.11.0
# via oslo-utils
os-service-types==1.7.0
# via keystoneauth1
oslo-config==9.2.0
oslo-config==9.3.0
# via python-keystoneclient
oslo-i18n==6.2.0
# via
# oslo-config
# oslo-utils
# python-keystoneclient
oslo-serialization==5.2.0
oslo-serialization==5.3.0
# via python-keystoneclient
oslo-utils==6.3.0
oslo-utils==7.0.0
# via
# oslo-serialization
# python-keystoneclient
Expand Down Expand Up @@ -155,9 +155,9 @@ python-dateutil==2.8.2
# via
# botocore
# django-tastypie
python-gnupg==0.5.1
python-gnupg==0.5.2
# via -r requirements.in
python-keystoneclient==5.2.0
python-keystoneclient==5.3.0
# via -r requirements.in
python-ldap==3.4.4
# via
Expand All @@ -169,7 +169,6 @@ python-swiftclient==4.4.0
# via -r requirements.in
pytz==2023.3.post1
# via
# django
# oslo-serialization
# oslo-utils
pyyaml==6.0.1
Expand All @@ -188,7 +187,7 @@ requests==2.31.0
# python-swiftclient
rfc3986==2.0.0
# via oslo-config
s3transfer==0.8.1
s3transfer==0.10.0
# via boto3
six==1.16.0
# via
Expand All @@ -204,11 +203,11 @@ stevedore==5.1.0
# python-keystoneclient
sword2 @ git+https://github.com/swordapp/python-client-sword2.git@59db54c03e4498dd6b001ac4f3a4167aa2fb8987
# via -r requirements.in
typing-extensions==4.8.0
typing-extensions==4.9.0
# via
# asgiref
# dj-database-url
tzdata==2023.3
tzdata==2023.4
# via
# oslo-serialization
# oslo-utils
Expand All @@ -228,7 +227,7 @@ zope-interface==6.1
# via gevent

# The following packages are considered to be unsafe in a requirements file:
setuptools==69.0.2
setuptools==69.0.3
# via
# zope-event
# zope-interface
Loading

0 comments on commit d2907d6

Please sign in to comment.