Skip to content

Commit d072ea2

Browse files
committed
Update templates.
1 parent bb1bb61 commit d072ea2

File tree

5 files changed

+24
-23
lines changed

5 files changed

+24
-23
lines changed

src/makeapp/app_templates/django/.github/workflows/python-package.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,31 +14,32 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
python-version: [3.7, 3.8, 3.9, "3.10"]
18-
django-version: [2.0, 2.1, 2.2, 3.0, 3.1, 3.2, 4.0, 4.1]
17+
python-version: [3.11, 3.12, 3.13]
18+
django-version: [4.2, 5.1, 5.2]
1919

2020
exclude:
21+
- python-version: 3.8
22+
django-version: 5.0
2123

22-
- python-version: 3.7
23-
django-version: 4.0
24-
25-
- python-version: 3.7
26-
django-version: 4.1
27-
28-
{% raw %}
2924
steps:
30-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v4
3126
- name: Set up Python ${{ matrix.python-version }} & Django ${{ matrix.django-version }}
32-
uses: actions/setup-python@v2
27+
uses: actions/setup-python@v5
3328
with:
3429
python-version: ${{ matrix.python-version }}
30+
- name: Setup uv
31+
uses: astral-sh/setup-uv@v6
3532
- name: Install deps
3633
run: |
37-
python -m pip install pytest coverage coveralls "Django~=${{ matrix.django-version }}.0"
34+
uv sync --only-group tests
35+
uv pip install coveralls "Django~=${{ matrix.django-version }}.0"
36+
- uses: astral-sh/ruff-action@v3
37+
with:
38+
version: 0.13.1
39+
args: check
3840
- name: Run tests
3941
env:
4042
GITHUB_TOKEN: ${{ secrets.github_token }}
41-
{% endraw %}
4243
run: |
43-
coverage run --source={{ package_name }} setup.py test
44-
coveralls --service=github
44+
uv run coverage run -m pytest
45+
uv run coveralls --service=github

src/makeapp/app_templates/django/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% extends parent_template %}
22

33
{% block deps_tests %}{{ super() }}
4-
"pytest-djangoapp>=1.0.0",
4+
"pytest-djangoapp>=1.6.0",
55
{% endblock %}
66

77
{% block cov_omit %}{{ super() }}

src/makeapp/app_templates/webscaff/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
{% endblock %}
66

77
{% block deps_tests %}{{ super() }}
8-
"pytest-djangoapp>=1.0.0",
8+
"pytest-djangoapp>=1.6.0",
99
{% endblock %}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Don't forget to pin down these requirements to certain versions in your project.
22

3-
Django>=4.1.5
3+
Django>=5.2.7
44
envbox>=1.3.0
5-
psycopg2>=2.9.5
6-
uwsgi>=2.0.21
7-
uwsgiconf[cli]>=1.0.0
5+
psycopg2>=2.9.10
6+
uwsgi>=2.0.30
7+
uwsgiconf[cli]>=2.2.1
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Don't forget to pin down these requirements to certain versions in your project.
22

3-
pytest>=8.0.0
4-
pytest-djangoapp>=1.0.0
3+
pytest>=8.4.0
4+
pytest-djangoapp>=1.6.0

0 commit comments

Comments
 (0)