Skip to content

Commit 6c14b88

Browse files
committed
Update the requirement the right way
1 parent 16c02c0 commit 6c14b88

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

requirements/requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# if you are add a new feature which requires dependencies they should be in a separate requirements_<feature>.in file
44
#
55
cryptography
6-
Django<6.0
6+
Django>5.2.0,<6.0
77
djangorestframework
88
django-crum
99
inflection

requirements/requirements_all.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ defusedxml==0.8.0rc2
2424
# via
2525
# python3-openid
2626
# social-auth-core
27-
django==4.2.21
27+
django==5.2.7
2828
# via
2929
# -r requirements/requirements.in
3030
# channels

requirements/requirements_dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ansible # Used in build process to generate some configs
22
black==25.1.0 # Linting tool, if changed update pyproject.toml as well
33
build
4-
django==4.2.21
4+
django==5.2.7
55
django-debug-toolbar
66
django-extensions
77
djangorestframework

requirements/updater.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ set -ue
33

44
PYTHON=python3.11
55

6+
# Ensure script is run from the requirements/ directory
7+
if [[ "$(basename $(pwd))" != "requirements" ]]; then
8+
echo "ERROR: This script must be run from the requirements/ directory"
9+
echo "Current directory: $(pwd)"
10+
echo "Please run: cd requirements && ./updater.sh [run|upgrade]"
11+
exit 1
12+
fi
13+
614
for FILE in requirements.in requirements_all.txt ; do
715
if [ ! -f ${FILE} ] ; then
816
touch ${FILE}

0 commit comments

Comments
 (0)