From 341e7c1a68d660a0b483cc96eaa353ffc6f7992b Mon Sep 17 00:00:00 2001 From: Jeff Foster Date: Mon, 12 May 2025 01:16:13 -0700 Subject: [PATCH] Add support for PostgreSQL 17 (#5805) Co-authored-by: Bruno Alla --- README.md | 13 +++++++------ cookiecutter.json | 2 +- .../project-generation-options.rst | 9 +++++---- tests/test_cookiecutter_generation.py | 1 + 4 files changed, 14 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 715e0b102..2d8f4af1b 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ _These features can be enabled during initial project setup._ ## Constraints - Only maintained 3rd party libraries are used. -- Uses PostgreSQL everywhere: 13 - 16 ([MySQL fork](https://github.com/mabdullahadeel/cookiecutter-django-mysql) also available). +- Uses PostgreSQL everywhere: 13 - 17 ([MySQL fork](https://github.com/mabdullahadeel/cookiecutter-django-mysql) also available). - Environment variables for configuration (This won't work with Apache/mod_wsgi). ## Support this Project! @@ -129,11 +129,12 @@ Answer the prompts with your own desired [options](http://cookiecutter-django.re Choose from 1, 2, 3 [1]: 1 use_docker [n]: n Select postgresql_version: - 1 - 16 - 2 - 15 - 3 - 14 - 4 - 13 - Choose from 1, 2, 3, 4 [1]: 1 + 1 - 17 + 2 - 16 + 3 - 15 + 4 - 14 + 5 - 13 + Choose from 1, 2, 3, 4, 5 [1]: 1 Select cloud_provider: 1 - AWS 2 - GCP diff --git a/cookiecutter.json b/cookiecutter.json index 99acae738..4771f496c 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -18,7 +18,7 @@ "windows": "n", "editor": ["None", "PyCharm", "VS Code"], "use_docker": "n", - "postgresql_version": ["16", "15", "14", "13"], + "postgresql_version": ["17", "16", "15", "14", "13"], "cloud_provider": ["AWS", "GCP", "Azure", "None"], "mail_service": [ "Mailgun", diff --git a/docs/1-getting-started/project-generation-options.rst b/docs/1-getting-started/project-generation-options.rst index cef89e3cb..8ae041580 100644 --- a/docs/1-getting-started/project-generation-options.rst +++ b/docs/1-getting-started/project-generation-options.rst @@ -66,10 +66,11 @@ use_docker: postgresql_version: Select a PostgreSQL_ version to use. The choices are: - 1. 16 - 2. 15 - 3. 14 - 4. 13 + 1. 17 + 2. 16 + 3. 15 + 4. 14 + 5. 13 cloud_provider: Select a cloud provider for static & media files. The choices are: diff --git a/tests/test_cookiecutter_generation.py b/tests/test_cookiecutter_generation.py index 558eae9e3..76d2f4b98 100755 --- a/tests/test_cookiecutter_generation.py +++ b/tests/test_cookiecutter_generation.py @@ -59,6 +59,7 @@ SUPPORTED_COMBINATIONS = [ {"editor": "VS Code"}, {"use_docker": "y"}, {"use_docker": "n"}, + {"postgresql_version": "17"}, {"postgresql_version": "16"}, {"postgresql_version": "15"}, {"postgresql_version": "14"},