diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..be006de --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,13 @@ +# Keep GitHub Actions up to date with GitHub's Dependabot... +# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot +# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + groups: + github-actions: + patterns: + - "*" # Group all Actions updates into a single larger pull request + schedule: + interval: weekly diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5cd3df9..3209983 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -75,7 +75,7 @@ jobs: strategy: fail-fast: false matrix: - python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + python: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v4.1.7 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d35a652..415bdd8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -40,4 +40,4 @@ repos: files: src/ args: [] additional_dependencies: - - pytest>=7 + - pytest diff --git a/CHANGELOG.md b/CHANGELOG.md index df064fc..5ff1913 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ -# UNRELEASED +# 2.6.0 + +*2024-09-17* - Catch2: recognize `FAIL()` calls ([#147](https://github.com/pytest-dev/pytest-cpp/pull/147)). +- Dropped support for EOL Python 3.7. # 2.5.0 (2023-11-01) diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..e66f759 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +build-backend = "setuptools.build_meta" +requires = ["setuptools>=61"] diff --git a/setup.py b/setup.py index 8887413..657537c 100644 --- a/setup.py +++ b/setup.py @@ -10,11 +10,8 @@ entry_points={ "pytest11": ["cpp = pytest_cpp.plugin"], }, - install_requires=[ - "pytest >=7.0", - "colorama", - ], - python_requires=">=3.7", + install_requires=["pytest"], + python_requires=">=3.8", author="Bruno Oliveira", author_email="nicoddemus@gmail.com", description="Use pytest's runner to discover and execute C++ tests", @@ -30,7 +27,6 @@ "License :: OSI Approved :: MIT 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", diff --git a/src/pytest_cpp/plugin.py b/src/pytest_cpp/plugin.py index 1013d86..138c654 100644 --- a/src/pytest_cpp/plugin.py +++ b/src/pytest_cpp/plugin.py @@ -6,7 +6,6 @@ from fnmatch import fnmatch from pathlib import Path from typing import Any -from typing import cast from typing import Iterator from typing import Sequence from typing import Type @@ -143,11 +142,8 @@ def from_parent( # type:ignore[override] arguments: Sequence[str], **kwargs: Any, ) -> CppFile: - return cast( - CppFile, - super().from_parent( - parent=parent, path=path, facade=facade, arguments=arguments - ), + return super().from_parent( + parent=parent, path=path, facade=facade, arguments=arguments ) def collect(self) -> Iterator[CppItem]: @@ -188,11 +184,8 @@ def from_parent( # type:ignore[override] arguments: Sequence[str], **kwargs: Any, ) -> CppItem: - return cast( - CppItem, - super().from_parent( - name=name, parent=parent, facade=facade, arguments=arguments, **kwargs - ), + return super().from_parent( + name=name, parent=parent, facade=facade, arguments=arguments, **kwargs ) def runtest(self) -> None: diff --git a/tox.ini b/tox.ini index 079bcad..9264d9f 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py{37, 38, 39, 310, 311} +envlist = py{38, 39, 310, 311, 312} [testenv] deps=