From 7a6d28a8e87f2c1c67ae8018693d5b6f37517930 Mon Sep 17 00:00:00 2001 From: Neil Wadhvana Date: Thu, 11 Apr 2024 10:27:32 -0400 Subject: [PATCH 1/3] Support Python 3.8 --- .github/workflows/ci.yml | 4 ++++ README.md | 7 ++++--- pyproject.toml | 9 ++++++--- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e44696..3d647ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,6 +21,10 @@ jobs: strategy: matrix: tox_env: + - py38-pytest7 + - py38-pytest8 + - py39-pytest7 + - py39-pytest8 - py310-pytest7 - py310-pytest8 - py311-pytest7 diff --git a/README.md b/README.md index 692a102..4834194 100644 --- a/README.md +++ b/README.md @@ -43,11 +43,12 @@ Runtime : min 11.66s, max 12.59s, average 12.10s ## Development -[Poetry](https://python-poetry.org/) (dependencies) and [pre-commit](https://pre-commit.com/) (coding standards) are required for development. +[Poetry](https://python-poetry.org/) is required for development. ```shell -$ poetry install -$ pre-commit install +$ poetry install --with dev +$ poetry run pre-commit install +$ poetry shell ``` ## Thanks diff --git a/pyproject.toml b/pyproject.toml index d6f990b..b9d08f3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,6 +13,8 @@ classifiers = [ "Topic :: Software Development :: Testing", "Operating System :: OS Independent", "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", @@ -26,13 +28,14 @@ keywords = ["pytest", "xdist", "pytest-xdist"] pytest-xdist-worker-stats = "pytest_xdist_worker_stats" [tool.poetry.dependencies] -python = ">3.9" +python = ">=3.8" pytest = ">7.3.2" pytest-xdist = "^3.3" [tool.poetry.group.dev.dependencies] black = "^23.9.1" ruff = "^0.0.291" +pre-commit = "^3.3.0" [build-system] requires = ["poetry-core"] @@ -40,7 +43,7 @@ build-backend = "poetry.core.masonry.api" [tool.black] line-length = 120 -target_version = ['py310', 'py311', 'py312'] +target_version = ['py38', 'py39', 'py310', 'py311', 'py312'] include = '\.pyi?$' exclude = ''' ( @@ -83,7 +86,7 @@ select = [ ] line-length = 120 -target-version = "py310" +target-version = "py38" # Never enforce... ignore = [ From 0e1b4a3c5e5feccd1701023fee1e6389b249bea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikul=C3=A1=C5=A1=20Poul?= Date: Thu, 11 Apr 2024 15:36:13 +0100 Subject: [PATCH 2/3] Revert pre-commit changes --- README.md | 7 +++---- pyproject.toml | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4834194..692a102 100644 --- a/README.md +++ b/README.md @@ -43,12 +43,11 @@ Runtime : min 11.66s, max 12.59s, average 12.10s ## Development -[Poetry](https://python-poetry.org/) is required for development. +[Poetry](https://python-poetry.org/) (dependencies) and [pre-commit](https://pre-commit.com/) (coding standards) are required for development. ```shell -$ poetry install --with dev -$ poetry run pre-commit install -$ poetry shell +$ poetry install +$ pre-commit install ``` ## Thanks diff --git a/pyproject.toml b/pyproject.toml index b9d08f3..338a507 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,6 @@ pytest-xdist = "^3.3" [tool.poetry.group.dev.dependencies] black = "^23.9.1" ruff = "^0.0.291" -pre-commit = "^3.3.0" [build-system] requires = ["poetry-core"] From ecbc10d2fe9655d1b14ca9d7ff26ecb95df78f6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikul=C3=A1=C5=A1=20Poul?= Date: Thu, 11 Apr 2024 15:37:36 +0100 Subject: [PATCH 3/3] Bump version --- pyproject.toml | 2 +- pytest_xdist_worker_stats/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 338a507..31b77e1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pytest-xdist-worker-stats" -version = "0.1.5" +version = "0.1.6" description = "A pytest plugin to list worker statistics after a xdist run." authors = ["Mikuláš Poul "] license = "MIT" diff --git a/pytest_xdist_worker_stats/__init__.py b/pytest_xdist_worker_stats/__init__.py index 1533a81..d545f0c 100644 --- a/pytest_xdist_worker_stats/__init__.py +++ b/pytest_xdist_worker_stats/__init__.py @@ -1,3 +1,3 @@ from .options import pytest_configure # noqa: F401 -__version__ = "0.1.2" +__version__ = "0.1.6"