From 7599c010352e160a7941f4d8146cf5621a1de7ec Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Sat, 4 Nov 2023 10:21:30 +0100 Subject: [PATCH 1/3] Move everything from the setup.cfg to pyproject.toml --- pyproject.toml | 2 ++ setup.cfg | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml index 059659c..7e1055a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,4 +1,6 @@ # Only a configuration storage, for now +[tool.aliases] +test = "pytest" [tool.black] line-length = 100 diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 31ad82b..0000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[aliases] -test = pytest From bb6dfc8993c44fc4bbb7070e1d521d4eb6bddb87 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Sun, 15 Oct 2023 11:08:14 +0200 Subject: [PATCH 2/3] Drop python 3.6 and 3.7 https://github.com/pylint-dev/pylint-pytest/pull/8#issuecomment-1763326663 --- .github/workflows/run-tests.yaml | 13 ++----------- CHANGELOG.md | 4 ++++ setup.py | 4 +--- tox.ini | 2 +- 4 files changed, 8 insertions(+), 15 deletions(-) diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index 9355304..ed2ea22 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -20,20 +20,11 @@ jobs: - windows-latest - macos-latest python-version: - - '3.6' - - '3.7' - '3.8' - '3.9' - '3.10' - '3.11' - # - '3.12' # FixMe: https://github.com/pylint-dev/pylint-pytest/issues/3 - # Python 3.6 is not available in `ubuntu-latest`. - exclude: - - python-version: '3.6' - os: ubuntu-latest - include: - - python-version: '3.6' - os: ubuntu-20.04 +# - '3.12' # FixMe: https://github.com/pylint-dev/pylint-pytest/issues/3 defaults: run: @@ -68,7 +59,7 @@ jobs: env: FORCE_COLOR: 1 PYTEST_CI_ARGS: --cov-report=xml --junitxml=test_artifacts/test_report.xml --color=yes - run: tox ${{ matrix.python-version == '3.6' && '--skip-missing-interpreters=true' || '' }} + run: tox --skip-missing-interpreters=true - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3 diff --git a/CHANGELOG.md b/CHANGELOG.md index 65527d9..af876db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased] +### Removed + +- Support for Python 3.6 & 3.7 (#23) + ## [1.1.6] - 2023-11-20 This is a small bugfix release. diff --git a/setup.py b/setup.py index 9641df3..08cb721 100755 --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ "pylint<3", "pytest>=4.6", ], - python_requires=">=3.6", + python_requires=">=3.8", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", @@ -39,8 +39,6 @@ "Topic :: Software Development :: Quality Assurance", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", diff --git a/tox.ini b/tox.ini index 09dd02e..3430831 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py36,py37,py38,py39,py310,py311 +envlist = py38,py39,py310,py311 skipsdist = True passenv = FORCE_COLOR From 65fa52b466374d7bf527db7d9a0d6abe82186e27 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Sat, 4 Nov 2023 11:12:50 +0100 Subject: [PATCH 3/3] Upgrade python version to python 3.8 in tooling configuration Co-authored-by: Irtaza Akram --- pyproject.toml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7e1055a..5759d31 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ paths.source = [ ] [tool.mypy] -python_version = "3.7" +python_version = "3.8" check_untyped_defs = true explicit_package_bases = true namespace_packages = true @@ -91,8 +91,7 @@ ignore = [ "RUF012", # Mutable class attributes should be annotated with `typing.ClassVar` ] -# py36, but ruff does not support it :/ -target-version = "py37" +target-version = "py38" [tool.ruff.pydocstyle] convention = "google" @@ -115,7 +114,7 @@ convention = "google" [tool.pylint] -py-version = "3.6" +py-version = "3.8" ignore-paths="tests/input" # Ignore test inputs