Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from cookiecutter:master #734

Merged
merged 37 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
099d0f2
Update sentry-sdk from 1.43.0 to 1.44.0
pyup-bot Mar 28, 2024
b9e88f9
Change pytest import mode to importlib
GvS666 Mar 29, 2024
719fa5d
Update gitpython from 3.1.42 to 3.1.43
pyup-bot Mar 31, 2024
5af055b
Update pillow from 10.2.0 to 10.3.0
pyup-bot Apr 1, 2024
349679e
Use main over master for branch name in deployment-on-heroku instruction
PatDuJour Apr 1, 2024
a3f3268
Update ruff from 0.3.4 to 0.3.5
pyup-bot Apr 1, 2024
a43cbf0
Update ruff from 0.3.4 to 0.3.5
pyup-bot Apr 1, 2024
79b2828
Update django-model-utils from 4.4.0 to 4.5.0
pyup-bot Apr 1, 2024
3081397
Update drf-spectacular from 0.27.1 to 0.27.2
pyup-bot Apr 1, 2024
1c9c91b
Update werkzeug from 3.0.1 to 3.0.2
pyup-bot Apr 1, 2024
8899824
Auto-update pre-commit hooks
browniebroke Apr 2, 2024
525ebf2
change obsolete docker image "docker/compose:1.29.2" to "docker:25.0"
simonliska Apr 2, 2024
0c5b738
Merge pull request #4961 from simonliska/master
foarsitter Apr 2, 2024
38406ca
Merge pull request #4959 from cookiecutter/update/pre-commit-autoupdate
foarsitter Apr 2, 2024
10f6402
Merge pull request #4958 from cookiecutter/pyup-update-werkzeug-3.0.1…
foarsitter Apr 2, 2024
4b9873a
Merge pull request #4957 from cookiecutter/pyup-update-drf-spectacula…
foarsitter Apr 2, 2024
101bfdb
Merge pull request #4956 from cookiecutter/pyup-update-django-model-u…
foarsitter Apr 2, 2024
53e360c
Merge pull request #4953 from cookiecutter/pyup-update-pillow-10.2.0-…
foarsitter Apr 2, 2024
7e41971
Merge pull request #4951 from cookiecutter/pyup-update-gitpython-3.1.…
foarsitter Apr 2, 2024
668ee33
Merge pull request #4955 from cookiecutter/pyup-update-ruff-0.3.4-to-…
foarsitter Apr 2, 2024
ccdb6a4
Merge pull request #4948 from cookiecutter/pyup-update-sentry-sdk-1.4…
foarsitter Apr 2, 2024
4abd083
Merge pull request #4954 from PatDuJour/patch-1
foarsitter Apr 2, 2024
d430e2f
Update Contributors
foarsitter Apr 2, 2024
9956f2b
Merge pull request #4950 from GvS666/master
foarsitter Apr 2, 2024
ab69189
Update Contributors
foarsitter Apr 2, 2024
2773489
Release 2024.04.02
actions-user Apr 3, 2024
39af435
Update sentry-sdk from 1.44.0 to 1.44.1 (#4963)
pyup-bot Apr 3, 2024
559fae8
Update ci.yml (#4964)
DavidPacioianu Apr 3, 2024
1661e55
Update Contributors
browniebroke Apr 3, 2024
831ce14
Release 2024.04.03
actions-user Apr 4, 2024
aa0e49a
Update django-webpack-loader from 3.0.1 to 3.1.0
pyup-bot Apr 4, 2024
e2b2d36
Merge pull request #4965 from cookiecutter/pyup-update-django-webpack…
foarsitter Apr 5, 2024
83ceb39
Release 2024.04.05
actions-user Apr 6, 2024
8060df4
Fix syntax error in GitHub CI workflow (#4972)
arnav13081994 Apr 6, 2024
b99ad39
Release 2024.04.06
actions-user Apr 7, 2024
eae5c9c
Auto-update pre-commit hooks (#4974)
github-actions[bot] Apr 7, 2024
681c13e
Release 2024.04.07
actions-user Apr 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/contributors.json
Original file line number Diff line number Diff line change
Expand Up @@ -1538,5 +1538,20 @@
"name": "Simeon Emanuilov",
"github_login": "s-emanuilov",
"twitter_username": "s_emanuilov"
},
{
"name": "Patrick Zhang",
"github_login": "PatDuJour",
"twitter_username": ""
},
{
"name": "GvS",
"github_login": "GvS666",
"twitter_username": ""
},
{
"name": "David Păcioianu",
"github_login": "DavidPacioianu",
"twitter_username": ""
}
]
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ default_language_version:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand Down
61 changes: 61 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,67 @@ All enhancements and patches to Cookiecutter Django will be documented in this f

<!-- GENERATOR_PLACEHOLDER -->

## 2024.04.07


### Updated

- Auto-update pre-commit hooks ([#4974](https://github.com/cookiecutter/cookiecutter-django/pull/4974))

## 2024.04.06


### Fixed

- Fix syntax error in GitHub CI workflow ([#4972](https://github.com/cookiecutter/cookiecutter-django/pull/4972))

## 2024.04.05


### Updated

- Update django-webpack-loader to 3.1.0 ([#4965](https://github.com/cookiecutter/cookiecutter-django/pull/4965))

## 2024.04.03


### Changed

- Update GH actions to resolve deprecation warnings ([#4964](https://github.com/cookiecutter/cookiecutter-django/pull/4964))

### Updated

- Update sentry-sdk to 1.44.1 ([#4963](https://github.com/cookiecutter/cookiecutter-django/pull/4963))

## 2024.04.02


### Changed

- Change pytest import mode to importlib ([#4950](https://github.com/cookiecutter/cookiecutter-django/pull/4950))

- Use main over master for branch name in deployment-on-heroku instruction ([#4954](https://github.com/cookiecutter/cookiecutter-django/pull/4954))

- change obsolete docker image &#34;docker/compose:1.29.2&#34; to &#34;docker:25.0&#34; ([#4961](https://github.com/cookiecutter/cookiecutter-django/pull/4961))

### Updated

- Update sentry-sdk to 1.44.0 ([#4948](https://github.com/cookiecutter/cookiecutter-django/pull/4948))

- Update ruff to 0.3.5 ([#4955](https://github.com/cookiecutter/cookiecutter-django/pull/4955))

- Update gitpython to 3.1.43 ([#4951](https://github.com/cookiecutter/cookiecutter-django/pull/4951))

- Update pillow to 10.3.0 ([#4953](https://github.com/cookiecutter/cookiecutter-django/pull/4953))

- Update django-model-utils to 4.5.0 ([#4956](https://github.com/cookiecutter/cookiecutter-django/pull/4956))

- Update drf-spectacular to 0.27.2 ([#4957](https://github.com/cookiecutter/cookiecutter-django/pull/4957))

- Update werkzeug to 3.0.2 ([#4958](https://github.com/cookiecutter/cookiecutter-django/pull/4958))

- Auto-update pre-commit hooks ([#4959](https://github.com/cookiecutter/cookiecutter-django/pull/4959))

## 2024.03.29


Expand Down
21 changes: 21 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,13 @@ Listed in alphabetical order.
</td>
<td>DavidDiazPinto</td>
</tr>
<tr>
<td>David Păcioianu</td>
<td>
<a href="https://github.com/DavidPacioianu">DavidPacioianu</a>
</td>
<td></td>
</tr>
<tr>
<td>Davit Tovmasyan</td>
<td>
Expand Down Expand Up @@ -915,6 +922,13 @@ Listed in alphabetical order.
</td>
<td></td>
</tr>
<tr>
<td>GvS</td>
<td>
<a href="https://github.com/GvS666">GvS666</a>
</td>
<td></td>
</tr>
<tr>
<td>Hamish Durkin</td>
<td>
Expand Down Expand Up @@ -1664,6 +1678,13 @@ Listed in alphabetical order.
</td>
<td></td>
</tr>
<tr>
<td>Patrick Zhang</td>
<td>
<a href="https://github.com/PatDuJour">PatDuJour</a>
</td>
<td></td>
</tr>
<tr>
<td>Paul Wulff</td>
<td>
Expand Down
2 changes: 1 addition & 1 deletion docs/deployment-on-heroku.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Run these commands to deploy the project to Heroku:
# Assign with AWS_STORAGE_BUCKET_NAME
heroku config:set DJANGO_AWS_STORAGE_BUCKET_NAME=

git push heroku master
git push heroku main

heroku run python manage.py createsuperuser

Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ binaryornot==0.4.4

# Code quality
# ------------------------------------------------------------------------------
ruff==0.3.4
ruff==0.3.5
django-upgrade==1.16.0
djlint==1.34.1
pre-commit==3.7.0
Expand All @@ -21,6 +21,6 @@ pyyaml==6.0.1
# Scripting
# ------------------------------------------------------------------------------
PyGithub==2.3.0
gitpython==3.1.42
gitpython==3.1.43
jinja2==3.1.3
requests==2.31.0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from distutils.core import setup

# We use calendar versioning
version = "2024.03.29"
version = "2024.04.07"

with open("README.md") as readme_file:
long_description = readme_file.read()
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.project_slug}}/.drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ steps:
- name: test
pull: if-not-exists
{%- if cookiecutter.use_docker == 'y' %}
image: docker/compose:1.29.2
image: docker:25.0
environment:
DATABASE_URL: pgsql://$POSTGRES_USER:$POSTGRES_PASSWORD@postgres/$POSTGRES_DB
commands:
Expand Down
8 changes: 5 additions & 3 deletions {{cookiecutter.project_slug}}/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ jobs:
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.12'

{%- 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/[email protected].0
uses: pre-commit/[email protected].1

# With no caching at all the entire ci process takes 3m to complete!
pytest:
Expand Down Expand Up @@ -70,7 +70,9 @@ jobs:

- name: Build the Stack
run: docker compose -f local.yml build django
run: docker compose -f local.yml build docs

- name: Build the docs
run: docker compose -f docs.yml build docs

- name: Run DB Migrations
run: docker compose -f local.yml run --rm django python manage.py migrate
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.project_slug}}/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ precommit:
pytest:
stage: test
{%- if cookiecutter.use_docker == 'y' %}
image: docker/compose:1.29.2
image: docker:25.0
tags:
- docker
services:
Expand Down
4 changes: 2 additions & 2 deletions {{cookiecutter.project_slug}}/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ default_language_version:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand Down Expand Up @@ -35,7 +35,7 @@ repos:

# Run the Ruff linter.
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.4
rev: v0.3.5
hooks:
# Linter
- id: ruff
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.project_slug}}/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ==== pytest ====
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--ds=config.settings.test --reuse-db"
addopts = "--ds=config.settings.test --reuse-db --import-mode=importlib"
python_files = [
"tests.py",
"test_*.py",
Expand Down
8 changes: 4 additions & 4 deletions {{cookiecutter.project_slug}}/requirements/base.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
python-slugify==8.0.4 # https://github.com/un33k/python-slugify
Pillow==10.2.0 # https://github.com/python-pillow/Pillow
Pillow==10.3.0 # https://github.com/python-pillow/Pillow
{%- if cookiecutter.frontend_pipeline == 'Django Compressor' %}
{%- if cookiecutter.windows == 'y' and cookiecutter.use_docker == 'n' %}
rcssmin==1.1.0 --install-option="--without-c-extensions" # https://github.com/ndparker/rcssmin
Expand Down Expand Up @@ -30,7 +30,7 @@ uvicorn[standard]==0.29.0 # https://github.com/encode/uvicorn
# ------------------------------------------------------------------------------
django==4.2.11 # pyup: < 5.0 # https://www.djangoproject.com/
django-environ==0.11.2 # https://github.com/joke2k/django-environ
django-model-utils==4.4.0 # https://github.com/jazzband/django-model-utils
django-model-utils==4.5.0 # https://github.com/jazzband/django-model-utils
django-allauth[mfa]==0.61.1 # https://github.com/pennersr/django-allauth
django-crispy-forms==2.1 # https://github.com/django-crispy-forms/django-crispy-forms
crispy-bootstrap5==2024.2 # https://github.com/django-crispy-forms/crispy-bootstrap5
Expand All @@ -43,8 +43,8 @@ django-redis==5.4.0 # https://github.com/jazzband/django-redis
djangorestframework==3.15.1 # https://github.com/encode/django-rest-framework
django-cors-headers==4.3.1 # https://github.com/adamchainz/django-cors-headers
# DRF-spectacular for api documentation
drf-spectacular==0.27.1 # https://github.com/tfranzel/drf-spectacular
drf-spectacular==0.27.2 # https://github.com/tfranzel/drf-spectacular
{%- endif %}
{%- if cookiecutter.frontend_pipeline == 'Webpack' %}
django-webpack-loader==3.0.1 # https://github.com/django-webpack/django-webpack-loader
django-webpack-loader==3.1.0 # https://github.com/django-webpack/django-webpack-loader
{%- endif %}
4 changes: 2 additions & 2 deletions {{cookiecutter.project_slug}}/requirements/local.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-r production.txt

Werkzeug[watchdog]==3.0.1 # https://github.com/pallets/werkzeug
Werkzeug[watchdog]==3.0.2 # https://github.com/pallets/werkzeug
ipdb==0.13.13 # https://github.com/gotcha/ipdb
{%- if cookiecutter.use_docker == 'y' %}
psycopg[c]==3.1.18 # https://github.com/psycopg/psycopg
Expand Down Expand Up @@ -28,7 +28,7 @@ sphinx-autobuild==2024.2.4 # https://github.com/GaretJax/sphinx-autobuild

# Code quality
# ------------------------------------------------------------------------------
ruff==0.3.4 # https://github.com/astral-sh/ruff
ruff==0.3.5 # https://github.com/astral-sh/ruff
coverage==7.4.4 # https://github.com/nedbat/coveragepy
djlint==1.34.1 # https://github.com/Riverside-Healthcare/djLint
pre-commit==3.7.0 # https://github.com/pre-commit/pre-commit
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.project_slug}}/requirements/production.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ psycopg[c]==3.1.18 # https://github.com/psycopg/psycopg
Collectfast==2.2.0 # https://github.com/antonagestam/collectfast
{%- endif %}
{%- if cookiecutter.use_sentry == "y" %}
sentry-sdk==1.43.0 # https://github.com/getsentry/sentry-python
sentry-sdk==1.44.1 # https://github.com/getsentry/sentry-python
{%- endif %}
{%- if cookiecutter.use_docker == "n" and cookiecutter.windows == "y" %}
hiredis==2.3.2 # https://github.com/redis/hiredis-py
Expand Down