Skip to content

Commit 8338e16

Browse files
authored
Update project dependencies (#89)
* Update project dependencies: PIP 22.2.2 to 23.0 PDM 2.1.1 to 2.4.5 Django 4.0.7 to 4.1.6 django-celery-beat 2.3.0 to 2.4.0 psycopg2 2.9.3 to 2.9.5 redis 4.3.4 to 4.5.1 Update cookiecutter dependencies: cookiecutter 1.7.3 to 2.1.1 pytest 7.0.0 to 7.2.1 Start testing on Python 3.11. * Add release Github Action.
1 parent e4d53cd commit 8338e16

File tree

7 files changed

+451
-399
lines changed

7 files changed

+451
-399
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: "ubuntu-latest"
1212
strategy:
1313
matrix:
14-
python-version: ["3.7", "3.8", "3.9", "3.10"]
14+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
1515
steps:
1616
- uses: actions/checkout@v2
1717

@@ -21,7 +21,7 @@ jobs:
2121
python-version: ${{ matrix.python-version }}
2222

2323
- name: "Set up PDM"
24-
run: pip install --user pdm
24+
run: pip install --user pdm==2.4.5
2525

2626
- name: "Test Cookiecutter"
2727
run: make test

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "Create Release"
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build:
10+
name: "Create Release"
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: "Checkout"
14+
uses: actions/checkout@v2
15+
16+
- name: "Create Release"
17+
id: create_release
18+
uses: actions/create-release@v1
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
with:
22+
tag_name: ${{ github.ref }}
23+
release_name: Release ${{ github.ref }}
24+
body: Auto-generate release notes
25+
draft: true
26+
prerelease: false

pdm.lock

Lines changed: 288 additions & 204 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ authors = [
66
{name = "Michal Nakoneczny", email = "michal@nakoneczny.pl"},
77
]
88
dependencies = [
9-
"cookiecutter==1.7.3",
9+
"cookiecutter==2.1.1",
1010
]
1111
requires-python = ">=3.7"
1212
license = {text = "MIT"}
1313

1414
[project.optional-dependencies]
1515
dev = [
16-
"pytest==7.0.0",
16+
"pytest==7.2.1",
1717
"pytest-timeout==2.1.0",
1818
]
1919
[tool]

{{ cookiecutter.project_name }}/webapp/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN groupadd --force --gid ${GROUP_ID} --system usergroup && \
1313
USER user
1414

1515
WORKDIR /app
16-
RUN python -m pip install --upgrade pip==22.2.2 && pip install --user pdm==2.1.1
16+
RUN python -m pip install --upgrade pip==23.0 && pip install --user pdm==2.4.5
1717
ENV PATH="/app/__pypackages__/3.10/bin:/home/user/.local/bin:${PATH}"
1818

1919
COPY pdm.lock pyproject.toml /app/

{{ cookiecutter.project_name }}/webapp/pdm.lock

Lines changed: 128 additions & 186 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

{{ cookiecutter.project_name }}/webapp/pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ authors = [
66
{name = "Michal Nakoneczny", email = "michal@nakoneczny.pl"},
77
]
88
dependencies = [
9+
"django==4.1.6",
910
"celery==5.2.7",
10-
"django-celery-beat==2.3.0",
11-
"django==4.0.7",
11+
"django-celery-beat==2.4.0",
1212
"gunicorn==20.1.0",
1313
"kombu==5.2.4",
14-
"psycopg2-binary==2.9.3",
15-
"redis==4.3.4",
14+
"psycopg2-binary==2.9.5",
15+
"redis==4.5.1",
1616
]
1717
requires-python = ">=3.10"
1818
license = {text = "MIT"}

0 commit comments

Comments
 (0)