Skip to content

Commit

Permalink
Fix Python and Django versions in test matrix (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyve committed Oct 8, 2023
1 parent f4d0831 commit aab7522
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Changelog

## 23.4 (in development)
## In development

- Drop support for Python 3.7 in test matrix (#533).
- Fix support for Django 4.2 in test matrix (#533).
- Pass "horizontal_field_offset_class" to child renderers (#391, #521).

## 23.3 (2023-06-03)
Expand Down
13 changes: 4 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ classifiers = [
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand All @@ -35,7 +34,7 @@ dynamic = [
license = "BSD-3-Clause"
name = "django-bootstrap5"
readme = "README.md"
requires-python = ">=3.7"
requires-python = ">=3.8"

[project.urls]
Changelog = "https://github.com/zostera/django-bootstrap5/blob/main/CHANGELOG.md"
Expand Down Expand Up @@ -67,10 +66,6 @@ cov-report = [
test = "python manage.py test {args:tests}"
test-cov = "coverage run manage.py test {args:tests}"

[[tool.hatch.envs.all.matrix]]
django = ["3.2"]
python = ["3.7"]

[[tool.hatch.envs.all.matrix]]
django = ["3.2", "4.1", "4.2"]
python = ["3.8", "3.9"]
Expand All @@ -86,17 +81,17 @@ python = ["3.11"]
[tool.hatch.envs.all.overrides]
matrix.django.dependencies = [
{value = "django~=3.2.0", if = ["3.2"]},
{value = "django~=4.0.0", if = ["4.0"]},
{value = "django~=4.1.0", if = ["4.1"]},
{value = "django~=4.2.0", if = ["4.2"]},
{value = "django @ git+https://github.com/django/django.git", if = ["main"]},
]

[tool.hatch.envs.example]
python = "3.11"
template = "example"
dependencies = [
"django>=3.2",
]
python = "3.11"
template = "example"

[tool.hatch.envs.example.scripts]
runserver = [
Expand Down

0 comments on commit aab7522

Please sign in to comment.