Skip to content

Commit

Permalink
Release 0.9.0 for GOV.UK Frontend v5.4.0 and GOV.UK Frontend Jinja 3.…
Browse files Browse the repository at this point in the history
…0.0 (#55)

* Updates

* Re run `make upgrade-components`

* Update example project

* Bump version to 0.9.0

* Update example project

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Cameron Lamb <[email protected]>
  • Loading branch information
3 people authored Jun 17, 2024
1 parent bea13ad commit 67c7de8
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 12 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Below is a list of the versions of this package and the versions of the GOV.UK F

| Package Version | GOV.UK Frontend Version |
| --------------- | ----------------------- |
| [0.9.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.9.0) - [0.9.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.9.0) | [v5.4.0](https://github.com/alphagov/govuk-frontend/releases/tag/v5.4.0) |
| [0.8.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.8.0) - [0.8.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.8.0) | [v5.3.1](https://github.com/alphagov/govuk-frontend/releases/tag/v5.3.1) |
| [0.7.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.7.0) - [0.7.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.7.0) | [v5.3.0](https://github.com/alphagov/govuk-frontend/releases/tag/v5.3.0) |
| [0.6.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.6.0) - [0.6.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.6.0) | [v5.2.0](https://github.com/alphagov/govuk-frontend/releases/tag/v5.2.0) |
Expand Down
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Below is a list of the versions of this package and the versions of the GOV.UK F

| Package Version | GOV.UK Frontend Version |
| --------------- | ----------------------- |
| [0.9.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.9.0) - [0.9.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.9.0) | [v5.4.0](https://github.com/alphagov/govuk-frontend/releases/tag/v5.4.0) |
| [0.8.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.8.0) - [0.8.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.8.0) | [v5.3.1](https://github.com/alphagov/govuk-frontend/releases/tag/v5.3.1) |
| [0.7.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.7.0) - [0.7.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.7.0) | [v5.3.0](https://github.com/alphagov/govuk-frontend/releases/tag/v5.3.0) |
| [0.6.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.6.0) - [0.6.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.6.0) | [v5.2.0](https://github.com/alphagov/govuk-frontend/releases/tag/v5.2.0) |
Expand Down
8 changes: 4 additions & 4 deletions example_project/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example_project/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"govuk-frontend": "^5.3.1",
"govuk-frontend": "^5.4.0",
"sass": "^1.63.6"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion example_project/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example_project/static/css/styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example_project/static/css/styles.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion govuk_frontend_django/components/error_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class GovUKErrorSummary(govuk_frontend_base.GovUKComponent):
titleHtml: Optional[str] = None
descriptionText: Optional[str] = None
descriptionHtml: Optional[str] = None
errorList: List[ErrorSummaryErrorlist]
errorList: Optional[List[ErrorSummaryErrorlist]] = None
disableAutoFocus: Optional[bool] = None

_jinja2_template = "govuk_frontend_jinja/components/error-summary/macro.html"
Expand Down
4 changes: 2 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ serve-docs:
get-latest-release-tag:
@gh release list -R $(REPO) | grep "Latest" | awk -F '\t' '{for(i=2; i<=NF; i++) {if($$i~/v?[0-9]+\.[0-9]+\.[0-9]+/) {print $$i; exit}}}'

GOVUK_FRONTEND_VERSION = "v5.3.1"
GOVUK_FRONTEND_VERSION = "v5.4.0"
GOVUK_FRONTEND_JINJA_VERSION = "3.0.0"

generate-components:
Expand All @@ -18,7 +18,7 @@ clear-generated-components:
find govuk_frontend_django/components ! -name '__init__.py' ! -name 'base.py' -type f -exec rm -rf {} +

upgrade-example-project:
cd example_project && npm install govuk-frontend@$(GOVUK_FRONTEND_VERSION) && npm run build
cd example_project && npm install govuk-frontend@$(GOVUK_FRONTEND_VERSION) && npm run build && poetry update

upgrade-components:
echo "Upgrading components with"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "govuk-frontend-django"
version = "0.8.0"
version = "0.9.0"
description = "Django functionality to help when building a GOV.UK website."
authors = [
"DBT Live Service Team <[email protected]>",
Expand Down

0 comments on commit 67c7de8

Please sign in to comment.