From d604fd7db174b97f9bc8af03a4febccd711a5ee4 Mon Sep 17 00:00:00 2001 From: Joseph Hanna Date: Tue, 4 Jul 2023 15:14:28 -0500 Subject: [PATCH] Add Postgresql 15 (#4431) * Add Postgresql 15 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- README.md | 13 +++++++------ cookiecutter.json | 2 +- docs/project-generation-options.rst | 11 ++++++----- tests/test_cookiecutter_generation.py | 1 + 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 63347698..0a39fb08 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: 10.19 - 14.1 ([MySQL fork](https://github.com/mabdullahadeel/cookiecutter-django-mysql) also available). +- Uses PostgreSQL everywhere: 10 - 15 ([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! @@ -133,11 +133,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 - 14 - 2 - 13 - 3 - 12 - 4 - 11 - 5 - 10 + 1 - 15 + 2 - 14 + 3 - 13 + 4 - 12 + 5 - 11 + 6 - 10 Choose from 1, 2, 3, 4, 5 [1]: 1 Select cloud_provider: 1 - AWS diff --git a/cookiecutter.json b/cookiecutter.json index cc9f8c17..3fcab4a7 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -18,7 +18,7 @@ "windows": "n", "editor": ["None", "PyCharm", "VS Code"], "use_docker": "n", - "postgresql_version": ["14", "13", "12", "11", "10"], + "postgresql_version": ["15", "14", "13", "12", "11", "10"], "cloud_provider": ["AWS", "GCP", "Azure", "None"], "mail_service": [ "Mailgun", diff --git a/docs/project-generation-options.rst b/docs/project-generation-options.rst index c1dcf82d..edf2306d 100644 --- a/docs/project-generation-options.rst +++ b/docs/project-generation-options.rst @@ -66,11 +66,12 @@ use_docker: postgresql_version: Select a PostgreSQL_ version to use. The choices are: - 1. 14 - 2. 13 - 3. 12 - 4. 11 - 5. 10 + 1. 15 + 2. 14 + 3. 13 + 4. 12 + 5. 11 + 6. 10 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 9e33d531..2eb7ae52 100755 --- a/tests/test_cookiecutter_generation.py +++ b/tests/test_cookiecutter_generation.py @@ -57,6 +57,7 @@ SUPPORTED_COMBINATIONS = [ {"editor": "VS Code"}, {"use_docker": "y"}, {"use_docker": "n"}, + {"postgresql_version": "15"}, {"postgresql_version": "14"}, {"postgresql_version": "13"}, {"postgresql_version": "12"},