Skip to content

Commit

Permalink
fixes tox matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
saxix committed Sep 28, 2024
1 parent 33e997d commit 67ca18f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ requires-python = ">=3.10"
readme = "README.md"
license = {text = "MIT"}

[project.optional-dependencies]
dj4 = [
"django>=4.2,<5",
]
dj5 = [
"django>=5.1",
]

[tool.pdm]
[[tool.pdm.source]]
url = "https://pypi.org/simple"
Expand All @@ -21,7 +29,6 @@ dev = [
"black>=24.8.0",
"bump2version>=1.0.1",
"check-manifest",
"django",
"django-reversion",
"django-webtest",
"flake8",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def test_initial_value(self):
if settings.IS_DJANGO_5:
self.assertHTMLEqual(
str(form["version"]),
'<input aria-describedby="id_version_helptext" id="id_version" name="version" type="hidden" value="">',
'<input id="id_version" name="version" type="hidden" value="">',
)
else:
self.assertHTMLEqual(
Expand Down
12 changes: 6 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,20 @@ setenv =
pg: DBENGINE = pg
mysql: DBENGINE = mysql
sqlite: DBENGINE = sqlite

d42: GROUP = dj4
d51: GROUP = dj5

deps =
.[dev]
pdm
pypy-pg: psycopg2cffi
mysql: mysqlclient
d42: django==4.2.*
d51: django==5.1.*
; d42: django==4.2.*
; d51: django==5.1.*


commands =
pdm install --dev
{posargs:pdm run pytest tests -vv -rw --create-db}
pdm sync -L {env:GROUP}.lock
{posargs:pdm run pytest tests -v -rw --create-db}

[testenv:mysql]
commands =
Expand Down

0 comments on commit 67ca18f

Please sign in to comment.