Skip to content

Commit 9736fcd

Browse files
authored
Merge pull request #2365 from ccnmtl/django-5.2
⬆️ Django 5.2
2 parents 57a5b9e + cfd775e commit 9736fcd

File tree

4 files changed

+35
-54
lines changed

4 files changed

+35
-54
lines changed

django.mk

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,31 @@
22

33
# CHANGES:
44
# 1.10.0 - 2025-10-16 - Removed coverage, updated dependencies.
5-
# reports.
6-
# - wheel and pip updates
7-
# - Use pre-compiled binary wheel for cryptography
8-
# - Remove Travis references
9-
# 1.8.0 - 2019-10-21 - Don't run flake8 on local_settings.py
10-
# 1.7.0 - 2018-05-31 - Now using python 3 by default
11-
# - Removed virtualenv.py in favor of python 3's
12-
# builtin venv capability.
13-
# 1.6.0 - 2017-09-05 - add bandit secure analysis configuration
14-
# 1.5.0 - 2017-08-24 - remove jshint/jscs in favor of eslint
15-
# 1.4.0 - 2017-06-06 - backout the switch to eslint. that's not really ready yet.
16-
# 1.3.0 - 2017-06-05 - pypi location is not needed anymore
17-
# 1.2.0 - 2016-12-15 - bump wheel version to 0.29
18-
# 1.1.0 - 2016-11-08 - run flake8 tests before unit tests
19-
# 1.0.1 - 2016-05-02 - Remove deprecated syncdb command from make install
5+
# 1.9.0 - Use coverage tool directly to generate coverage
6+
# reports.
7+
# - wheel and pip updates
8+
# - Use pre-compiled binary wheel for cryptography
9+
# - Remove Travis references
10+
# 1.8.0 - 2019-10-21 - Don't run flake8 on local_settings.py
11+
# 1.7.0 - 2018-05-31 - Now using python 3 by default
12+
# - Removed virtualenv.py in favor of python 3's
13+
# builtin venv capability.
14+
# 1.6.0 - 2017-09-05 - add bandit secure analysis configuration
15+
# 1.5.0 - 2017-08-24 - remove jshint/jscs in favor of eslint
16+
# 1.4.0 - 2017-06-06 - backout the switch to eslint. that's not really ready yet.
17+
# 1.3.0 - 2017-06-05 - pypi location is not needed anymore
18+
# 1.2.0 - 2016-12-15 - bump wheel version to 0.29
19+
# 1.1.0 - 2016-11-08 - run flake8 tests before unit tests
20+
# 1.0.1 - 2016-05-02 - Remove deprecated syncdb command from make install
2021

2122
VE ?= ./ve
2223
MANAGE ?= ./manage.py
2324
REQUIREMENTS ?= requirements.txt
2425
SYS_PYTHON ?= python3
2526
PY_SENTINAL ?= $(VE)/sentinal
26-
WHEEL_VERSION ?= 0.43.0
27-
PIP_VERSION ?= 24.1.2
28-
SETUPTOOLS_VERSION ?= 70.3.0
27+
WHEEL_VERSION ?= 0.45.1
28+
PIP_VERSION ?= 25.3
29+
SETUPTOOLS_VERSION ?= 80.9.0
2930
MAX_COMPLEXITY ?= 10
3031
INTERFACE ?= localhost
3132
RUNSERVER_PORT ?= 8000

docker.mk

Lines changed: 12 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,17 @@
1-
# VERSION=1.0.0
1+
# VERSION=2.0.0
22
# Docker related stuff
3-
# use wheelhouse/requirements.txt as the sentinal so make
4-
# knows whether it needs to rebuild the wheel directory or not
5-
# has the added advantage that it can just pip install
6-
# from that later on as well
73

8-
ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
9-
WHEELHOUSE ?= wheelhouse
10-
ORG ?= ccnmtl
11-
BUILDER_IMAGE ?= ccnmtl/django.build
4+
# Start up docker dev server with docker-compose
5+
docker:
6+
docker compose up
127

13-
# make it easy to override the docker image created. eg:
14-
# REGISTRY=localhost:5000/ TAG=release-5 make build
15-
# to make an image 'localhost:5000/ccnmtl/app:release-5'
16-
# defaults to docker hub (ie, no registry specified) and no tag.
8+
# Enter a command-line shell in the web container
9+
docker-shell:
10+
docker compose run web bash
1711

18-
ifeq ($(origin TAG), undefined)
19-
IMAGE ?= $(REGISTRY)$(ORG)/$(APP)
20-
else
21-
IMAGE ?= $(REGISTRY)$(ORG)/$(APP):$(TAG)
22-
endif
12+
# Enter an interactive django shell
13+
docker-django-shell:
14+
docker compose run web python manage.py shell_plus \
15+
--settings=$(APP).settings_docker
2316

24-
$(WHEELHOUSE)/requirements.txt: $(REQUIREMENTS)
25-
mkdir -p $(WHEELHOUSE)
26-
docker run --rm \
27-
-v $(ROOT_DIR):/app \
28-
-v $(ROOT_DIR)/$(WHEELHOUSE):/wheelhouse \
29-
$(BUILDER_IMAGE)
30-
cp $(REQUIREMENTS) $@
31-
touch $@
32-
33-
# Run this target to rebuild the django image
34-
build: $(WHEELHOUSE)/requirements.txt
35-
docker build -t $(IMAGE) .
36-
37-
.PHONY: build
17+
.PHONY: docker docker-shell docker-django-shell

js.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ ESLINT ?= $(NODE_MODULES)/.bin/eslint
2626
NPM_OPTS = --include=dev
2727

2828
ifeq ($(ENVIRONMENT),production)
29-
NPM_OPTS = --only=prod
29+
NPM_OPTS = --omit=dev
3030
endif
3131
ifeq ($(ENVIRONMENT),staging)
32-
NPM_OPTS = --only=prod
32+
NPM_OPTS = --omit=dev
3333
endif
3434

3535
$(JS_SENTINAL): package.json

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Django>=5.1,<5.2
1+
Django>=5.2,<6
22

33
pytz==2025.2
44
httplib2==0.31.0
@@ -73,7 +73,7 @@ Unidecode==1.4.0
7373

7474
# wagtail requirements
7575
laces==0.1.1
76-
wagtail==6.2
76+
wagtail==6.3.5
7777
django-modelcluster>=6.0,<7.0
7878
django-permissionedforms>=0.1,<1.0
7979
django-taggit>=5.0.1,<7.0

0 commit comments

Comments
 (0)