Skip to content

Commit b0e632c

Browse files
committed
govuk 5.7.1
1 parent 0ef69a4 commit b0e632c

File tree

5 files changed

+34
-34
lines changed

5 files changed

+34
-34
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# GOV.UK Frontend Flask
22

3-
![govuk-frontend 5.6.0](https://img.shields.io/badge/govuk--frontend%20version-5.6.0-005EA5?logo=gov.uk&style=flat)
3+
![govuk-frontend 5.7.1](https://img.shields.io/badge/govuk--frontend%20version-5.7.1-005EA5?logo=gov.uk&style=flat)
44

55
**GOV.UK Frontend Flask is a [community tool](https://design-system.service.gov.uk/community/resources-and-tools/) of the [GOV.UK Design System](https://design-system.service.gov.uk/). The Design System team is not responsible for it and cannot support you with using it. Contact the [maintainers](#contributors) directly if you need [help](#support) or you want to request a feature.**
66

@@ -35,7 +35,7 @@ In the `compose.yml` file you will find a number of environment variables. These
3535
- SERVICE_PHASE
3636
- SERVICE_URL
3737

38-
You must also set a new unique `SECRET_KEY`, which is used to securely sign the session cookie and CSRF tokens. It should be a long random `bytes` or `str`. You can use the output of this Python comand to generate a new key:
38+
You must also set a new unique `SECRET_KEY`, which is used to securely sign the session cookie and CSRF tokens. It should be a long random `bytes` or `str`. You can use the output of this Python command to generate a new key:
3939

4040
```shell
4141
python -c 'import secrets; print(secrets.token_hex())'
@@ -108,7 +108,7 @@ Please refer to the specific packages documentation for more details.
108108

109109
Custom CSS and JavaScript files are merged and minified using [Flask Assets](https://flask-assets.readthedocs.io/en/latest/) and [Webassets](https://webassets.readthedocs.io/en/latest/). This takes all `*.css` files in `app/static/src/css` and all `*.js` files in `app/static/src/js` and outputs a single minified file to both `app/static/dist/css` and `app/static/dist/js` respectively.
110110

111-
CSS is [minified](https://en.wikipedia.org/wiki/Minification_(programming)) using [CSSMin](https://github.com/zacharyvoase/cssmin) and JavaScript is minified using [JSMin](https://github.com/tikitu/jsmin/). This removes all whitespace characters, comments and line breaks to reduce the size of the source code, making its transmission over a network more efficient.
111+
CSS is [minified](<https://en.wikipedia.org/wiki/Minification_(programming)>) using [CSSMin](https://github.com/zacharyvoase/cssmin) and JavaScript is minified using [JSMin](https://github.com/tikitu/jsmin/). This removes all whitespace characters, comments and line breaks to reduce the size of the source code, making its transmission over a network more efficient.
112112

113113
### Cache busting
114114

app/templates/base.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<meta name="description" content="{{config['SERVICE_NAME']}}">
1515
<meta name="keywords" content="GOV.UK, govuk, gov, government, uk, frontend, ui, user interface, jinja, python, flask, port, template, templating, macro, component, design system, html, forms, wtf, wtforms, widget, widgets, demo, example">
1616
<meta name="author" content="{{config['DEPARTMENT_NAME']}}">
17-
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='govuk-frontend-5.6.0.min.css') }}" />
17+
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='govuk-frontend-5.7.1.min.css') }}" />
1818
{% assets "css" %}<link href="{{ ASSET_URL }}" rel="stylesheet">{% endassets %}
1919
{% endblock %}
2020

@@ -169,9 +169,9 @@
169169
{% endblock %}
170170

171171
{% block bodyEnd %}
172-
<script type="module" src="{{ url_for('static', filename='govuk-frontend-5.6.0.min.js') }}"></script>
172+
<script type="module" src="{{ url_for('static', filename='govuk-frontend-5.7.1.min.js') }}"></script>
173173
<script type="module">
174-
import { initAll } from "{{ url_for('static', filename='govuk-frontend-5.6.0.min.js') }}"
174+
import { initAll } from "{{ url_for('static', filename='govuk-frontend-5.7.1.min.js') }}"
175175
initAll()
176176
</script>
177177
{% assets "js" %}<script type="text/javascript" src="{{ ASSET_URL }}"></script>{% endassets %}

build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ rm -rf app/static/images
44
rm -rf app/static/govuk-frontend*
55

66
# Get new release distribution assets and move to static directory
7-
curl -L https://github.com/alphagov/govuk-frontend/releases/download/v5.6.0/release-v5.6.0.zip > govuk_frontend.zip
7+
curl -L https://github.com/alphagov/govuk-frontend/releases/download/v5.7.1/release-v5.7.1.zip > govuk_frontend.zip
88
unzip -o govuk_frontend.zip -d app/static
99
mv app/static/assets/* app/static
1010

@@ -21,10 +21,10 @@ rm -rf govuk_frontend.zip
2121
rm -rf app/demos/govuk_components
2222

2323
# Get new release source code and move to a directory
24-
curl -L https://github.com/alphagov/govuk-frontend/archive/refs/tags/v5.6.0.zip > govuk_frontend_source.zip
24+
curl -L https://github.com/alphagov/govuk-frontend/archive/refs/tags/v5.7.1.zip > govuk_frontend_source.zip
2525
unzip -o govuk_frontend_source.zip -d govuk_frontend_source
2626
mkdir app/demos/govuk_components
27-
mv govuk_frontend_source/govuk-frontend-5.6.0/packages/govuk-frontend/src/govuk/components/** app/demos/govuk_components
27+
mv govuk_frontend_source/govuk-frontend-5.7.1/packages/govuk-frontend/src/govuk/components/** app/demos/govuk_components
2828

2929
# Remove all files apart from test fixtures
3030
find app/demos/govuk_components -type f ! -name '*.yaml' -delete

requirements.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ deepmerge==2.0
1414
# via govuk-frontend-wtf
1515
deprecated==1.2.14
1616
# via limits
17-
dnspython==2.6.1
17+
dnspython==2.7.0
1818
# via email-validator
1919
email-validator==2.2.0
2020
# via -r requirements.in
@@ -31,17 +31,17 @@ flask-limiter[redis]==3.8.0
3131
# via -r requirements.in
3232
flask-wtf==1.2.1
3333
# via govuk-frontend-wtf
34-
govuk-frontend-jinja==3.3.0
34+
govuk-frontend-jinja==3.4.0
3535
# via
3636
# -r requirements.in
3737
# govuk-frontend-wtf
38-
govuk-frontend-wtf==3.1.0
38+
govuk-frontend-wtf==3.2.0
3939
# via -r requirements.in
4040
gunicorn==23.0.0
4141
# via -r requirements.in
42-
idna==3.8
42+
idna==3.10
4343
# via email-validator
44-
importlib-resources==6.4.4
44+
importlib-resources==6.4.5
4545
# via limits
4646
itsdangerous==2.2.0
4747
# via
@@ -58,7 +58,7 @@ limits[redis]==3.13.0
5858
# via flask-limiter
5959
markdown-it-py==3.0.0
6060
# via rich
61-
markupsafe==2.1.5
61+
markupsafe==3.0.1
6262
# via
6363
# jinja2
6464
# werkzeug
@@ -75,9 +75,9 @@ pygments==2.18.0
7575
# via rich
7676
pyyaml==6.0.2
7777
# via -r requirements.in
78-
redis==5.0.8
78+
redis==5.1.1
7979
# via limits
80-
rich==13.8.0
80+
rich==13.9.2
8181
# via flask-limiter
8282
typing-extensions==4.12.2
8383
# via

requirements_dev.txt

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,34 @@
66
#
77
attrs==24.2.0
88
# via flake8-bugbear
9-
bandit==1.7.9
9+
bandit==1.7.10
1010
# via -r requirements_dev.in
11-
black==24.8.0
11+
black==24.10.0
1212
# via -r requirements_dev.in
1313
boolean-py==4.0
1414
# via license-expression
15-
build==1.2.1
15+
build==1.2.2.post1
1616
# via pip-tools
1717
cachecontrol[filecache]==0.14.0
1818
# via
1919
# cachecontrol
2020
# pip-audit
2121
certifi==2024.8.30
2222
# via requests
23-
charset-normalizer==3.3.2
23+
charset-normalizer==3.4.0
2424
# via requests
2525
click==8.1.7
2626
# via
2727
# black
2828
# pip-tools
2929
# pur
30-
coverage[toml]==7.6.1
30+
coverage[toml]==7.6.3
3131
# via pytest-cov
32-
cyclonedx-python-lib==7.6.0
32+
cyclonedx-python-lib==7.6.2
3333
# via pip-audit
3434
defusedxml==0.7.1
3535
# via py-serializable
36-
filelock==3.15.4
36+
filelock==3.16.1
3737
# via cachecontrol
3838
flake8==7.1.1
3939
# via
@@ -43,7 +43,7 @@ flake8-bugbear==24.8.19
4343
# via -r requirements_dev.in
4444
html5lib==1.1
4545
# via pip-audit
46-
idna==3.8
46+
idna==3.10
4747
# via requests
4848
iniconfig==2.0.0
4949
# via pytest
@@ -57,9 +57,9 @@ mccabe==0.7.0
5757
# via flake8
5858
mdurl==0.1.2
5959
# via markdown-it-py
60-
msgpack==1.0.8
60+
msgpack==1.1.0
6161
# via cachecontrol
62-
mypy==1.11.2
62+
mypy==1.12.0
6363
# via -r requirements_dev.in
6464
mypy-extensions==1.0.0
6565
# via
@@ -88,27 +88,27 @@ pip-requirements-parser==32.0.1
8888
# via pip-audit
8989
pip-tools==7.4.1
9090
# via -r requirements_dev.in
91-
platformdirs==4.2.2
91+
platformdirs==4.3.6
9292
# via black
9393
pluggy==1.5.0
9494
# via pytest
9595
pur==7.3.2
9696
# via -r requirements_dev.in
97-
py-serializable==1.1.0
97+
py-serializable==1.1.2
9898
# via cyclonedx-python-lib
9999
pycodestyle==2.12.1
100100
# via flake8
101101
pyflakes==3.2.0
102102
# via flake8
103103
pygments==2.18.0
104104
# via rich
105-
pyparsing==3.1.4
105+
pyparsing==3.2.0
106106
# via pip-requirements-parser
107-
pyproject-hooks==1.1.0
107+
pyproject-hooks==1.2.0
108108
# via
109109
# build
110110
# pip-tools
111-
pytest==8.3.2
111+
pytest==8.3.3
112112
# via pytest-cov
113113
pytest-cov==5.0.0
114114
# via -r requirements_dev.in
@@ -118,7 +118,7 @@ requests==2.32.3
118118
# via
119119
# cachecontrol
120120
# pip-audit
121-
rich==13.8.0
121+
rich==13.9.2
122122
# via
123123
# bandit
124124
# pip-audit
@@ -132,7 +132,7 @@ toml==0.10.2
132132
# via pip-audit
133133
typing-extensions==4.12.2
134134
# via mypy
135-
urllib3==2.2.2
135+
urllib3==2.2.3
136136
# via requests
137137
webencodings==0.5.1
138138
# via html5lib

0 commit comments

Comments
 (0)