Improve workflow-to-tools#230
Conversation
|
Here is the error I get with the test under 3.9: ImportError while loading conftest '/home/runner/work/ephemeris/ephemeris/tests/conftest.py'.
tests/conftest.py:6: in <module>
from galaxy_test.driver.driver_util import GalaxyTestDriver
.tox/py39-pytest/lib/python3.9/site-packages/galaxy_test/driver/driver_util.py:45: in <module>
from galaxy.webapps.galaxy.fast_app import initialize_fast_app as init_galaxy_fast_app
.tox/py39-pytest/lib/python3.9/site-packages/galaxy/webapps/galaxy/fast_app.py:24: in <module>
from galaxy.webapps.openapi.utils import get_openapi
.tox/py39-pytest/lib/python3.9/site-packages/galaxy/webapps/openapi/utils.py:16: in <module>
from fastapi._compat import (
E ImportError: cannot import name 'GenerateJsonSchema' from 'fastapi._compat' (/home/runner/work/ephemeris/ephemeris/.tox/py39-pytest/lib/python3.9/site-packages/fastapi/_compat/__init__.py)
An error occurred: module 'importlib.metadata' has no attribute 'packages_distributions'
py39-pytest: exit 4 (10.45 seconds) /home/runner/work/ephemeris/ephemeris> pytest -v --cov=/home/runner/work/ephemeris/ephemeris/.tox/py39-pytest/lib/python3.9/site-packages/ephemeris --cov-report xml tests pid=2524
py39-pytest: FAIL code 4 (74.74=setup[64.29]+cmd[10.45] seconds)
evaluation failed :( (74.79 seconds) |
|
You can try to bump the minimum Python version to 3.10, 3.9 is EOL. |
|
For "3.10, pytest" we are hitting the issue fixed by galaxyproject/galaxy@31720da , which is only in Galaxy dev currently (future galaxy-files 26.0). |
|
Thanks for the code cleanups! |
|
Should we pin pydantic? Or leave it with a bug... |
|
It may be worth to backport the one-line fix to 25.1 and release a new galaxy-files 25.1.1 package. @mvdbeek thoughts? |
|
Let's move this forward with a pydantic pin if that is sufficient? |
|
pydantic pin is problematic, that's a widely used dependency we use in planemo, where we also use ephemeris. Let's just backport the fix. |
|
I see, the backport has happened already -- galaxyproject/galaxy#21518. I can create a new release. |
Co-authored-by: Marius van den Beek <m.vandenbeek@gmail.com>
|
The error in the test is always the same while it is using 25.1.1... |
|
Yep, 25.1.1 only fixed the pydantic error you had in commit a8bdd7c , now we are back to a FastAPI breaking change. |
|
Also I just noticed the py312-tests don't actually run any tests, |
|
For |
I'm on it, I'll tag you for a review. |
Finally solve #206
I hope this will make some admins happy...
This PR improves
workflow-to-tools:Dear reviewers, feel free to change the name of the parameters I used.