From 8015226804481b05fd381c3d065a10f12f752c86 Mon Sep 17 00:00:00 2001 From: Jorge Alvarez Jarreta Date: Fri, 26 Apr 2024 08:46:45 +0100 Subject: [PATCH 1/2] remove tmp_dir fixture as pytest offers tmp_path since v6.2 --- src/python/ensembl/plugins/pytest_unittest.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/python/ensembl/plugins/pytest_unittest.py b/src/python/ensembl/plugins/pytest_unittest.py index 11f23f5..23d723f 100644 --- a/src/python/ensembl/plugins/pytest_unittest.py +++ b/src/python/ensembl/plugins/pytest_unittest.py @@ -158,19 +158,3 @@ def test_method(..., multi_dbs: Dict[str, UnitTestDB], ...): key = name if name else src.name databases[key] = db_factory(src, name) return databases - - -@pytest.fixture(scope='session') -def tmp_dir(request: FixtureRequest, tmp_path_factory: TempPathFactory) -> Generator: - """Yields a :class:`Path` object pointing to a newly created temporary directory. - - Args: - request: Access to the requesting test context. - tmp_path_factory: Session-scoped fixture that creates arbitrary temporary directories. - - """ - tmpdir = tmp_path_factory.mktemp(f"test_{request.node.name}") - yield tmpdir - # Delete the temporary directory unless the user has requested to keep it - if not request.config.getoption("keep_data"): - shutil.rmtree(tmpdir) From 7503da873a459339e7d6fad91ac6119528d5d72c Mon Sep 17 00:00:00 2001 From: Jorge Alvarez Jarreta Date: Fri, 26 Apr 2024 16:25:29 +0100 Subject: [PATCH 2/2] update version for the last code updates --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 50391b9..f5e7d92 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ name = "ensembl-py" description = "Ensembl Python Base Library" requires-python = ">= 3.8" -version = "1.2.4" +version = "1.3.0" readme = "README.md" authors = [ {name = "Ensembl", email = "dev@ensembl.org"},