Skip to content

Commit

Permalink
Support for django 5.1, use pylint 3.0+, drop python 3.8 following EO…
Browse files Browse the repository at this point in the history
…L 2024-10-07
  • Loading branch information
Pierre-Sassoulas committed Oct 9, 2024
1 parent 24cb268 commit 745f803
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
python-version: ["3.12"]
toxenv: [django_not_installed, ruff, pylint, readme]

steps:
Expand Down Expand Up @@ -40,7 +40,7 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
django-version: ["5.0", "-main"]
django-version: ["5.0", "5.1", "-main"]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
django-version: ["4.0", "4.1", "4.2"]

steps:
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
strategy: # TODO: use a YAML anchor - not supported in GitHub actions "yet"
fail-fast: false
matrix:
python-version: [3.8, 3.9]
python-version: [3.9]
django-version: [3.2, 3.1, "3.0", "2.2"]

steps:
Expand Down
9 changes: 5 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ classifiers = [
"Operating System :: Unix",
"Topic :: Software Development :: Quality Assurance",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand All @@ -32,6 +31,7 @@ classifiers = [
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
]
keywords = [ "pylint", "django", "plugin" ]
Expand All @@ -42,20 +42,21 @@ include = [ "pylint_django/LICENSE" ]
exclude = [ "**/tests/**", "**/testutils.py", "**/tests.py" ]

[tool.poetry.dependencies]
python = ">=3.8,<4.0"
python = ">=3.9,<4.0"
pylint-plugin-utils = ">=0.8"
pylint = ">=2.0,<4"
pylint = ">=3.0,<4"
Django = { version = ">=2.2", optional = true }

[tool.poetry.group.dev.dependencies]
tox = ">=4.9"
pytest = "^7.3.1"
ruff = ">=0.1.1"
ruff = ">=0.6.9"
wheel = "^0.40"
pytest-cov = "^4"
django-tables2 = "^2.6"
factory-boy = "^3.3"
django-tastypie = "^0.14"
pre-commit = ">=1"

[tool.poetry.extras]
with_django = [ "Django" ]
Expand Down
13 changes: 7 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ envlist =
flake8
pylint
readme
py{38,39}-django{22,30,31,32}
py{38,39,310,311,312}-django{40,41,42}
py{310,311,312}-django{50,-main}
py{39}-django{22,30,31,32}
py{39,310,311,312}-django{40,41,42}
py{310,311,312}-django{50,51,-main}

requires =
pip >=21.0.1
Expand All @@ -21,13 +21,13 @@ commands =
django_not_installed: bash pylint_django/tests/test_django_not_installed.sh
pylint: pylint pylint_django
readme: bash -c "poetry build && twine check dist/*"
py{37,38,39,310,311,312}-django{22,30,31,32,40,41,42,50}: bash scripts/test.sh --cov=pylint_django
py{38,39,310,311,312}-django{22,30,31,32,40,41,42,50}: bash scripts/test.sh --cov=pylint_django
clean: find . -type f -name '*.pyc' -delete
clean: find . -type d -name __pycache__ -delete
clean: rm -rf build/ .cache/ dist/ .eggs/ pylint_django.egg-info/ .tox/
deps =
ruff: ruff
pylint: pylint<3
pylint: pylint>3
pylint: Django
readme: twine
readme: wheel
Expand All @@ -39,6 +39,7 @@ deps =
django41: Django>=4.1,<4.2
django42: Django>=4.2,<4.3
django50: Django>=5.0,<5.1
django51: Django>=5.1,<5.2
django-main: Django
django-main: git+https://github.com/pylint-dev/astroid@main
django-main: git+https://github.com/pylint-dev/pylint@main
Expand All @@ -48,6 +49,6 @@ setenv =
allowlist_externals =
django_not_installed: bash
readme: bash
django{22,30,31,32,40,41,42,50,-main}: bash
django{22,30,31,32,40,41,42,50,51,-main}: bash
clean: find
clean: rm

0 comments on commit 745f803

Please sign in to comment.