From 5ef8cde04598b3c8928cd5594875f2400995c057 Mon Sep 17 00:00:00 2001 From: Danilo Horta Date: Fri, 6 Dec 2024 16:58:04 +0000 Subject: [PATCH] =?UTF-8?q?Update=20dependencies=20and=20fix=20test=20proc?= =?UTF-8?q?ess=20handling=20=F0=9F=9B=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Bumped version in python-core/pyproject.toml to "1.0.11" - Upgraded h3daemon dependency in both TOML files - Updated deciphon-core dependency in worker TOML file - Improved test process handling in test_hmmer.py These updates ensure compatibility with the latest features and fix potential issues in tests by properly managing asynchronous operations. --- python-core/pyproject.toml | 4 ++-- worker/pyproject.toml | 4 ++-- worker/tests/test_hmmer.py | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/python-core/pyproject.toml b/python-core/pyproject.toml index edde4e1..f70baa8 100644 --- a/python-core/pyproject.toml +++ b/python-core/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "deciphon-core" -version = "1.0.9" +version = "1.0.11" description = "Python wrapper around the Deciphon C library" authors = ["Danilo Horta "] license = "MIT" @@ -24,7 +24,7 @@ generate-setup-file = false [tool.poetry.group.dev.dependencies] pytest = "^8.2" -h3daemon = "^0.16.9" +h3daemon = "^0.16.14" gitpython = "^3.1.43" [tool.pytest.ini_options] diff --git a/worker/pyproject.toml b/worker/pyproject.toml index e5bf72b..8cfb500 100644 --- a/worker/pyproject.toml +++ b/worker/pyproject.toml @@ -8,8 +8,8 @@ readme = "README.md" [tool.poetry.dependencies] python = "^3.9" -h3daemon = "^0.16.11" -deciphon-core = "^1.0.8" +h3daemon = "^0.16.14" +deciphon-core = "^1.0.10" loguru = "^0.7.2" tenacity = "^9.0.0" deciphon-snap = "^1.0.3" diff --git a/worker/tests/test_hmmer.py b/worker/tests/test_hmmer.py index 718a3ba..26647ff 100644 --- a/worker/tests/test_hmmer.py +++ b/worker/tests/test_hmmer.py @@ -11,6 +11,7 @@ def test_hmmer(tmp_path, files_path: Path): os.chdir(tmp_path) shutil.copy(files_path / "minifam.hmm", Path("minifam.hmm")) hmmfile = HMMFile(path=Path("minifam.hmm")) - hmmer = launch_hmmer(hmmfile).result() + future = launch_hmmer(hmmfile) + hmmer = future.result() with hmmer: hmmer.port