From 0fe1fb9ca18d68341788932a9be9d485109fe220 Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Thu, 9 Feb 2023 21:56:57 +0000 Subject: [PATCH 01/24] Remove unused pip cache paths in GHA & add a note for pre-commit.ci (#4151) * Remove unused pip caching paths in GHA * Add note about pre-commit.ci for open source --- {{cookiecutter.project_slug}}/.github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/{{cookiecutter.project_slug}}/.github/workflows/ci.yml b/{{cookiecutter.project_slug}}/.github/workflows/ci.yml index 0790187bd..3c8ea8780 100644 --- a/{{cookiecutter.project_slug}}/.github/workflows/ci.yml +++ b/{{cookiecutter.project_slug}}/.github/workflows/ci.yml @@ -31,10 +31,10 @@ jobs: with: python-version: "3.10" cache: pip - cache-dependency-path: | - requirements/base.txt - requirements/local.txt + {%- if cookiecutter.open_source_license != 'Not open source' %} + # Consider using pre-commit.ci for open source project + {%- endif %} - name: Run pre-commit uses: pre-commit/action@v2.0.3 From 7af2d73a8c529cd34de864a8555be1012ec666c2 Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 10 Feb 2023 02:53:14 +0000 Subject: [PATCH 02/24] Release 2023.02.09 --- CHANGELOG.md | 7 +++++++ setup.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c975b4987..2b88bc869 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,13 @@ All enhancements and patches to Cookiecutter Django will be documented in this f +## 2023.02.09 + +### Changed +- Remove unused pip cache paths in GHA & add a note for pre-commit.ci ([#4151](https://github.com/cookiecutter/cookiecutter-django/pull/4151)) +### Updated +- Update mypy to 0.991 ([#4106](https://github.com/cookiecutter/cookiecutter-django/pull/4106)) + ## 2023.02.08 ### Updated diff --git a/setup.py b/setup.py index 4bc6e081d..858d20691 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ except ImportError: from distutils.core import setup # We use calendar versioning -version = "2023.02.08" +version = "2023.02.09" with open("README.rst") as readme_file: long_description = readme_file.read() From 95e73006044517714b83c094c269278d0ff40df6 Mon Sep 17 00:00:00 2001 From: Delphine LEMIRE Date: Fri, 17 Feb 2023 14:42:02 +0100 Subject: [PATCH 03/24] Update version of github actions on the template project (#4167) --- {{cookiecutter.project_slug}}/.github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/{{cookiecutter.project_slug}}/.github/workflows/ci.yml b/{{cookiecutter.project_slug}}/.github/workflows/ci.yml index 3c8ea8780..5a149820a 100644 --- a/{{cookiecutter.project_slug}}/.github/workflows/ci.yml +++ b/{{cookiecutter.project_slug}}/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: uses: actions/checkout@v3 - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v4 with: python-version: "3.10" cache: pip @@ -36,7 +36,7 @@ jobs: # Consider using pre-commit.ci for open source project {%- endif %} - name: Run pre-commit - uses: pre-commit/action@v2.0.3 + uses: pre-commit/action@v3.0.0 # With no caching at all the entire ci process takes 4m 30s to complete! pytest: @@ -85,7 +85,7 @@ jobs: {%- else %} - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v4 with: python-version: "3.10" cache: pip From 414122e52408c1dd11fb3d2690120bcb7d91b483 Mon Sep 17 00:00:00 2001 From: luzfcb Date: Fri, 17 Feb 2023 13:42:38 +0000 Subject: [PATCH 04/24] Update Contributors --- .github/contributors.json | 5 +++++ CONTRIBUTORS.md | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/.github/contributors.json b/.github/contributors.json index 7920e8caf..b97140005 100644 --- a/.github/contributors.json +++ b/.github/contributors.json @@ -1362,5 +1362,10 @@ "name": "duffn", "github_login": "duffn", "twitter_username": "" + }, + { + "name": "Delphine LEMIRE", + "github_login": "DelphineLemire", + "twitter_username": "" } ] \ No newline at end of file diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 85b1ae88f..0670ff448 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -642,6 +642,13 @@ Listed in alphabetical order. jangeador + + Delphine LEMIRE + + DelphineLemire + + + Demetris Stavrou From 4aa56cb31a1397ffcea855527d1c37d7c64cccca Mon Sep 17 00:00:00 2001 From: github-actions Date: Sat, 18 Feb 2023 02:27:13 +0000 Subject: [PATCH 05/24] Release 2023.02.17 --- CHANGELOG.md | 5 +++++ setup.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b88bc869..23604fd77 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,11 @@ All enhancements and patches to Cookiecutter Django will be documented in this f +## 2023.02.17 + +### Changed +- Update version of github actions on the template project ([#4167](https://github.com/cookiecutter/cookiecutter-django/pull/4167)) + ## 2023.02.09 ### Changed diff --git a/setup.py b/setup.py index 858d20691..c7566ba70 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ except ImportError: from distutils.core import setup # We use calendar versioning -version = "2023.02.09" +version = "2023.02.17" with open("README.rst") as readme_file: long_description = readme_file.read() From 2d9dceb0fb24146416989b7b8497c054a9676cfc Mon Sep 17 00:00:00 2001 From: "pyup.io bot" Date: Sat, 25 Feb 2023 06:16:20 -0500 Subject: [PATCH 06/24] Update hiredis to 2.2.2 (#4156) * Update hiredis from 2.2.1 to 2.2.2 * Update hiredis from 2.2.1 to 2.2.2 --- {{cookiecutter.project_slug}}/requirements/base.txt | 2 +- {{cookiecutter.project_slug}}/requirements/production.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.project_slug}}/requirements/base.txt b/{{cookiecutter.project_slug}}/requirements/base.txt index 9bcdf31bf..bc9b553f9 100644 --- a/{{cookiecutter.project_slug}}/requirements/base.txt +++ b/{{cookiecutter.project_slug}}/requirements/base.txt @@ -14,7 +14,7 @@ whitenoise==6.3.0 # https://github.com/evansd/whitenoise {%- endif %} redis==4.5.1 # https://github.com/redis/redis-py {%- if cookiecutter.use_docker == "y" or cookiecutter.windows == "n" %} -hiredis==2.2.1 # https://github.com/redis/hiredis-py +hiredis==2.2.2 # https://github.com/redis/hiredis-py {%- endif %} {%- if cookiecutter.use_celery == "y" %} celery==5.2.7 # pyup: < 6.0 # https://github.com/celery/celery diff --git a/{{cookiecutter.project_slug}}/requirements/production.txt b/{{cookiecutter.project_slug}}/requirements/production.txt index 06917d8dd..7cee00d5d 100644 --- a/{{cookiecutter.project_slug}}/requirements/production.txt +++ b/{{cookiecutter.project_slug}}/requirements/production.txt @@ -11,7 +11,7 @@ Collectfast==2.2.0 # https://github.com/antonagestam/collectfast sentry-sdk==1.15.0 # https://github.com/getsentry/sentry-python {%- endif %} {%- if cookiecutter.use_docker == "n" and cookiecutter.windows == "y" %} -hiredis==2.2.1 # https://github.com/redis/hiredis-py +hiredis==2.2.2 # https://github.com/redis/hiredis-py {%- endif %} # Django From b46447c8db1068b2e9ea1a1538295af27dfe7036 Mon Sep 17 00:00:00 2001 From: "pyup.io bot" Date: Sat, 25 Feb 2023 06:16:56 -0500 Subject: [PATCH 07/24] Update sh to 2.0.2 (#4157) --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 15c7c8c0a..2e165efa6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ cookiecutter==2.1.1 -sh==1.14.3; sys_platform != "win32" +sh==2.0.2; sys_platform != "win32" binaryornot==0.4.4 # Code quality From 1767190a1ac1b9e9eb0ae61480859528f903428e Mon Sep 17 00:00:00 2001 From: "pyup.io bot" Date: Sat, 25 Feb 2023 06:17:46 -0500 Subject: [PATCH 08/24] Update django to 4.0.10 (#4159) --- {{cookiecutter.project_slug}}/requirements/base.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/requirements/base.txt b/{{cookiecutter.project_slug}}/requirements/base.txt index bc9b553f9..d06bc8cb9 100644 --- a/{{cookiecutter.project_slug}}/requirements/base.txt +++ b/{{cookiecutter.project_slug}}/requirements/base.txt @@ -29,7 +29,7 @@ uvicorn[standard]==0.20.0 # https://github.com/encode/uvicorn # Django # ------------------------------------------------------------------------------ -django==4.0.9 # pyup: < 4.1 # https://www.djangoproject.com/ +django==4.0.10 # pyup: < 4.1 # https://www.djangoproject.com/ django-environ==0.9.0 # https://github.com/joke2k/django-environ django-model-utils==4.3.1 # https://github.com/jazzband/django-model-utils django-allauth==0.52.0 # https://github.com/pennersr/django-allauth From ab149684b148d8e08be1f61a616db53e7c2cf454 Mon Sep 17 00:00:00 2001 From: "pyup.io bot" Date: Sat, 25 Feb 2023 06:18:16 -0500 Subject: [PATCH 09/24] Update coverage to 7.2.0 (#4177) --- {{cookiecutter.project_slug}}/requirements/local.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/requirements/local.txt b/{{cookiecutter.project_slug}}/requirements/local.txt index 00c15d3cb..80ced4b64 100644 --- a/{{cookiecutter.project_slug}}/requirements/local.txt +++ b/{{cookiecutter.project_slug}}/requirements/local.txt @@ -30,7 +30,7 @@ sphinx-autobuild==2021.3.14 # https://github.com/GaretJax/sphinx-autobuild # ------------------------------------------------------------------------------ flake8==6.0.0 # https://github.com/PyCQA/flake8 flake8-isort==6.0.0 # https://github.com/gforcada/flake8-isort -coverage==7.1.0 # https://github.com/nedbat/coveragepy +coverage==7.2.0 # https://github.com/nedbat/coveragepy black==23.1.0 # https://github.com/psf/black pylint-django==2.5.3 # https://github.com/PyCQA/pylint-django {%- if cookiecutter.use_celery == 'y' %} From aa6d0bc2ad3968bed47bd17c79932dbf48763b33 Mon Sep 17 00:00:00 2001 From: "pyup.io bot" Date: Sat, 25 Feb 2023 06:18:38 -0500 Subject: [PATCH 10/24] Update werkzeug to 2.2.3 (#4160) --- {{cookiecutter.project_slug}}/requirements/local.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/requirements/local.txt b/{{cookiecutter.project_slug}}/requirements/local.txt index 80ced4b64..6918fab8b 100644 --- a/{{cookiecutter.project_slug}}/requirements/local.txt +++ b/{{cookiecutter.project_slug}}/requirements/local.txt @@ -1,6 +1,6 @@ -r base.txt -Werkzeug[watchdog]==2.2.2 # https://github.com/pallets/werkzeug +Werkzeug[watchdog]==2.2.3 # https://github.com/pallets/werkzeug ipdb==0.13.11 # https://github.com/gotcha/ipdb {%- if cookiecutter.use_docker == 'y' %} psycopg2==2.9.5 # https://github.com/psycopg/psycopg2 From a756fbe4bb1b6188667ff3ea2740a6a0e9760596 Mon Sep 17 00:00:00 2001 From: "pyup.io bot" Date: Sat, 25 Feb 2023 06:19:07 -0500 Subject: [PATCH 11/24] Update gitpython to 3.1.31 (#4165) --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 2e165efa6..f07004c2a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -21,6 +21,6 @@ pyyaml==6.0 # Scripting # ------------------------------------------------------------------------------ PyGithub==1.57 -gitpython==3.1.30 +gitpython==3.1.31 jinja2==3.1.2 requests==2.28.2 From 4e649af5f0cc208655f75721d45d87ef03f5bb80 Mon Sep 17 00:00:00 2001 From: Delphine LEMIRE Date: Sat, 25 Feb 2023 12:31:07 +0100 Subject: [PATCH 12/24] Disable caching for linter job on GitHub actions (#4166) * FIX: Uptade Template ci.yml linter requirements * Disable unused cache for lint job --------- Co-authored-by: Bruno Alla --- {{cookiecutter.project_slug}}/.github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/.github/workflows/ci.yml b/{{cookiecutter.project_slug}}/.github/workflows/ci.yml index 5a149820a..89d83f257 100644 --- a/{{cookiecutter.project_slug}}/.github/workflows/ci.yml +++ b/{{cookiecutter.project_slug}}/.github/workflows/ci.yml @@ -30,7 +30,6 @@ jobs: uses: actions/setup-python@v4 with: python-version: "3.10" - cache: pip {%- if cookiecutter.open_source_license != 'Not open source' %} # Consider using pre-commit.ci for open source project From 2c84ec1c5573577a03590e9b8b2e25525f9704a0 Mon Sep 17 00:00:00 2001 From: "pyup.io bot" Date: Sat, 25 Feb 2023 06:44:39 -0500 Subject: [PATCH 13/24] Update tox to 4.4.6 (#4173) --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index f07004c2a..f74ac007d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,7 +12,7 @@ pre-commit==3.0.4 # Testing # ------------------------------------------------------------------------------ -tox==4.4.5 +tox==4.4.6 pytest==7.2.1 pytest-cookies==0.6.1 pytest-instafail==0.4.2 From 8bd7667f19e335af7f59b68103c7b1c1bf357419 Mon Sep 17 00:00:00 2001 From: "pyup.io bot" Date: Sat, 25 Feb 2023 06:46:34 -0500 Subject: [PATCH 14/24] Update mypy to 1.0.1 (#4168) --- {{cookiecutter.project_slug}}/requirements/local.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/requirements/local.txt b/{{cookiecutter.project_slug}}/requirements/local.txt index 6918fab8b..86247343c 100644 --- a/{{cookiecutter.project_slug}}/requirements/local.txt +++ b/{{cookiecutter.project_slug}}/requirements/local.txt @@ -13,7 +13,7 @@ watchfiles==0.18.1 # https://github.com/samuelcolvin/watchfiles # Testing # ------------------------------------------------------------------------------ -mypy==0.991 # https://github.com/python/mypy +mypy==1.0.1 # https://github.com/python/mypy django-stubs==1.14.0 # https://github.com/typeddjango/django-stubs pytest==7.2.1 # https://github.com/pytest-dev/pytest pytest-sugar==0.9.6 # https://github.com/Frozenball/pytest-sugar From 64a66c332a4b642994335bc7127688142adafcf4 Mon Sep 17 00:00:00 2001 From: "pyup.io bot" Date: Sat, 25 Feb 2023 06:47:29 -0500 Subject: [PATCH 15/24] Update pre-commit to 3.1.0 (#4176) * Update pre-commit from 3.0.4 to 3.1.0 * Update pre-commit from 3.0.4 to 3.1.0 --- requirements.txt | 2 +- {{cookiecutter.project_slug}}/requirements/local.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index f74ac007d..fda102826 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,7 +8,7 @@ black==23.1.0 isort==5.12.0 flake8==6.0.0 flake8-isort==6.0.0 -pre-commit==3.0.4 +pre-commit==3.1.0 # Testing # ------------------------------------------------------------------------------ diff --git a/{{cookiecutter.project_slug}}/requirements/local.txt b/{{cookiecutter.project_slug}}/requirements/local.txt index 86247343c..e1927d06e 100644 --- a/{{cookiecutter.project_slug}}/requirements/local.txt +++ b/{{cookiecutter.project_slug}}/requirements/local.txt @@ -36,7 +36,7 @@ pylint-django==2.5.3 # https://github.com/PyCQA/pylint-django {%- if cookiecutter.use_celery == 'y' %} pylint-celery==0.3 # https://github.com/PyCQA/pylint-celery {%- endif %} -pre-commit==3.0.4 # https://github.com/pre-commit/pre-commit +pre-commit==3.1.0 # https://github.com/pre-commit/pre-commit # Django # ------------------------------------------------------------------------------ From 7739f41f774616996b319465807d9c46a4d359f9 Mon Sep 17 00:00:00 2001 From: "pyup.io bot" Date: Sat, 25 Feb 2023 06:47:48 -0500 Subject: [PATCH 16/24] Update python-slugify to 8.0.1 (#4178) --- {{cookiecutter.project_slug}}/requirements/base.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/requirements/base.txt b/{{cookiecutter.project_slug}}/requirements/base.txt index d06bc8cb9..42188dd39 100644 --- a/{{cookiecutter.project_slug}}/requirements/base.txt +++ b/{{cookiecutter.project_slug}}/requirements/base.txt @@ -1,5 +1,5 @@ pytz==2022.7.1 # https://github.com/stub42/pytz -python-slugify==8.0.0 # https://github.com/un33k/python-slugify +python-slugify==8.0.1 # https://github.com/un33k/python-slugify Pillow==9.4.0 # https://github.com/python-pillow/Pillow {%- if cookiecutter.frontend_pipeline == 'Django Compressor' %} {%- if cookiecutter.windows == 'y' and cookiecutter.use_docker == 'n' %} From bee85e445429bf4b301e4b77b65bb6cade3df270 Mon Sep 17 00:00:00 2001 From: "pyup.io bot" Date: Sat, 25 Feb 2023 06:48:00 -0500 Subject: [PATCH 17/24] Update django-cors-headers to 3.14.0 (#4181) --- {{cookiecutter.project_slug}}/requirements/base.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/requirements/base.txt b/{{cookiecutter.project_slug}}/requirements/base.txt index 42188dd39..75a97340b 100644 --- a/{{cookiecutter.project_slug}}/requirements/base.txt +++ b/{{cookiecutter.project_slug}}/requirements/base.txt @@ -42,7 +42,7 @@ django-redis==5.2.0 # https://github.com/jazzband/django-redis {%- if cookiecutter.use_drf == 'y' %} # Django REST Framework djangorestframework==3.14.0 # https://github.com/encode/django-rest-framework -django-cors-headers==3.13.0 # https://github.com/adamchainz/django-cors-headers +django-cors-headers==3.14.0 # https://github.com/adamchainz/django-cors-headers # DRF-spectacular for api documentation drf-spectacular==0.25.1 # https://github.com/tfranzel/drf-spectacular {%- endif %} From 972b927a2c85cbc3353121fe8df644e35eafbb1e Mon Sep 17 00:00:00 2001 From: "pyup.io bot" Date: Sat, 25 Feb 2023 06:51:16 -0500 Subject: [PATCH 18/24] Update django-crispy-forms to 2.0 (#4158) --- {{cookiecutter.project_slug}}/requirements/base.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/requirements/base.txt b/{{cookiecutter.project_slug}}/requirements/base.txt index 75a97340b..7de2c4410 100644 --- a/{{cookiecutter.project_slug}}/requirements/base.txt +++ b/{{cookiecutter.project_slug}}/requirements/base.txt @@ -33,7 +33,7 @@ django==4.0.10 # pyup: < 4.1 # https://www.djangoproject.com/ django-environ==0.9.0 # https://github.com/joke2k/django-environ django-model-utils==4.3.1 # https://github.com/jazzband/django-model-utils django-allauth==0.52.0 # https://github.com/pennersr/django-allauth -django-crispy-forms==1.14.0 # https://github.com/django-crispy-forms/django-crispy-forms +django-crispy-forms==2.0 # https://github.com/django-crispy-forms/django-crispy-forms crispy-bootstrap5==0.7 # https://github.com/django-crispy-forms/crispy-bootstrap5 {%- if cookiecutter.frontend_pipeline == 'Django Compressor' %} django-compressor==4.3.1 # https://github.com/django-compressor/django-compressor From c2059693d8788efd89f5cad909f2d7815e047547 Mon Sep 17 00:00:00 2001 From: "pyup.io bot" Date: Sat, 25 Feb 2023 06:53:08 -0500 Subject: [PATCH 19/24] Update django-stubs to 1.15.0 (#4183) --- {{cookiecutter.project_slug}}/requirements/local.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/requirements/local.txt b/{{cookiecutter.project_slug}}/requirements/local.txt index e1927d06e..6335b52b9 100644 --- a/{{cookiecutter.project_slug}}/requirements/local.txt +++ b/{{cookiecutter.project_slug}}/requirements/local.txt @@ -14,7 +14,7 @@ watchfiles==0.18.1 # https://github.com/samuelcolvin/watchfiles # Testing # ------------------------------------------------------------------------------ mypy==1.0.1 # https://github.com/python/mypy -django-stubs==1.14.0 # https://github.com/typeddjango/django-stubs +django-stubs==1.15.0 # https://github.com/typeddjango/django-stubs pytest==7.2.1 # https://github.com/pytest-dev/pytest pytest-sugar==0.9.6 # https://github.com/Frozenball/pytest-sugar {%- if cookiecutter.use_drf == "y" %} From 961ec7df6bf07f6ae0346adfdb90899f4845ef41 Mon Sep 17 00:00:00 2001 From: "pyup.io bot" Date: Sat, 25 Feb 2023 06:53:35 -0500 Subject: [PATCH 20/24] Update whitenoise to 6.4.0 (#4180) --- {{cookiecutter.project_slug}}/requirements/base.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/requirements/base.txt b/{{cookiecutter.project_slug}}/requirements/base.txt index 7de2c4410..ac6f876f8 100644 --- a/{{cookiecutter.project_slug}}/requirements/base.txt +++ b/{{cookiecutter.project_slug}}/requirements/base.txt @@ -10,7 +10,7 @@ rcssmin==1.1.1 # https://github.com/ndparker/rcssmin {%- endif %} argon2-cffi==21.3.0 # https://github.com/hynek/argon2_cffi {%- if cookiecutter.use_whitenoise == 'y' %} -whitenoise==6.3.0 # https://github.com/evansd/whitenoise +whitenoise==6.4.0 # https://github.com/evansd/whitenoise {%- endif %} redis==4.5.1 # https://github.com/redis/redis-py {%- if cookiecutter.use_docker == "y" or cookiecutter.windows == "n" %} From 6433fc7b2b32b5c864c7b363eed9a73488bcace5 Mon Sep 17 00:00:00 2001 From: "pyup.io bot" Date: Sat, 25 Feb 2023 06:53:59 -0500 Subject: [PATCH 21/24] Update pygithub to 1.58.0 (#4182) --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index fda102826..564e70596 100644 --- a/requirements.txt +++ b/requirements.txt @@ -20,7 +20,7 @@ pyyaml==6.0 # Scripting # ------------------------------------------------------------------------------ -PyGithub==1.57 +PyGithub==1.58.0 gitpython==3.1.31 jinja2==3.1.2 requests==2.28.2 From ad1edba7110dcaef8adbde440b5424cdfa878ae9 Mon Sep 17 00:00:00 2001 From: "pyup.io bot" Date: Sat, 25 Feb 2023 07:02:35 -0500 Subject: [PATCH 22/24] Update djangorestframework-stubs to 1.9.1 (#4184) --- {{cookiecutter.project_slug}}/requirements/local.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/requirements/local.txt b/{{cookiecutter.project_slug}}/requirements/local.txt index 6335b52b9..27fa30b36 100644 --- a/{{cookiecutter.project_slug}}/requirements/local.txt +++ b/{{cookiecutter.project_slug}}/requirements/local.txt @@ -18,7 +18,7 @@ django-stubs==1.15.0 # https://github.com/typeddjango/django-stubs pytest==7.2.1 # https://github.com/pytest-dev/pytest pytest-sugar==0.9.6 # https://github.com/Frozenball/pytest-sugar {%- if cookiecutter.use_drf == "y" %} -djangorestframework-stubs==1.8.0 # https://github.com/typeddjango/djangorestframework-stubs +djangorestframework-stubs==1.9.1 # https://github.com/typeddjango/djangorestframework-stubs {%- endif %} # Documentation From b74af5b1d1005fa7ee1bbf27761a32e82b86a496 Mon Sep 17 00:00:00 2001 From: Hoai-Thu Vuong Date: Sat, 25 Feb 2023 19:09:52 +0700 Subject: [PATCH 23/24] Add instuction to run celery beat (#4162) * add instuction to run celery beat * Extend explanations for celery beat --------- Co-authored-by: Bruno Alla --- {{cookiecutter.project_slug}}/README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/{{cookiecutter.project_slug}}/README.md b/{{cookiecutter.project_slug}}/README.md index 16ee6d1fe..83f9a7e48 100644 --- a/{{cookiecutter.project_slug}}/README.md +++ b/{{cookiecutter.project_slug}}/README.md @@ -63,6 +63,20 @@ celery -A config.celery_app worker -l info Please note: For Celery's import magic to work, it is important *where* the celery commands are run. If you are in the same folder with *manage.py*, you should be right. +To run [periodic tasks](https://docs.celeryq.dev/en/stable/userguide/periodic-tasks.html), you'll need to start the celery beat scheduler service. You can start it as a standalone process: + +``` bash +cd {{cookiecutter.project_slug}} +celery -A config.celery_app beat +``` + +or you can embed the beat service inside a worker with the `-B` option (not recommended for production use): + +``` bash +cd {{cookiecutter.project_slug}} +celery -A config.celery_app worker -B -l info +``` + {%- endif %} {%- if cookiecutter.use_mailhog == "y" %} From 52bdda5bc05a35f8b0c326b1f2a4fbd4f212f2bf Mon Sep 17 00:00:00 2001 From: browniebroke Date: Sat, 25 Feb 2023 12:10:26 +0000 Subject: [PATCH 24/24] Update Contributors --- .github/contributors.json | 5 +++++ CONTRIBUTORS.md | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/.github/contributors.json b/.github/contributors.json index b97140005..30bc0107e 100644 --- a/.github/contributors.json +++ b/.github/contributors.json @@ -1367,5 +1367,10 @@ "name": "Delphine LEMIRE", "github_login": "DelphineLemire", "twitter_username": "" + }, + { + "name": "Hoai-Thu Vuong", + "github_login": "thuvh", + "twitter_username": "" } ] \ No newline at end of file diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 0670ff448..8a541c945 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -915,6 +915,13 @@ Listed in alphabetical order. + + Hoai-Thu Vuong + + thuvh + + + Howie Zhao