-
Notifications
You must be signed in to change notification settings - Fork 21
Closed
Description
Without these you can't run pytest (even with a -k downselect) due to the following chunk in pyproject.toml:
[tool.pytest.ini_options]
asyncio_mode = "auto"
addopts = "--numprocesses auto --dist worksteal"adding the dev dependencies "on-the-fly" can be challenging due to the root install of the uv environment. Because ursa-ai is being installed from wheel, I don't see a way to do this as part of the Dockerfile recipe alone. My proposal is to duplicate the following:
[dependency-groups]
dev = [
"fastmcp>=2.13.3",
"notebook>=7.3.3",
"pre-commit>=4.3.0",
"pytest>=8.4.2",
"pytest-asyncio>=1.3.0",
"pytest-xdist",
"scikit-optimize>=0.10.2",
]into:
[project.optional-dependencies]
dev = [
"fastmcp>=2.13.3",
"notebook>=7.3.3",
"pre-commit>=4.3.0",
"pytest>=8.4.2",
"pytest-asyncio>=1.3.0",
"pytest-xdist",
"scikit-optimize>=0.10.2",
]and
# in Dockerfile
RUN uv add "ursa-ai[dev] @ file:///`ls /wheelhouse/*.whl`"
unless you know of a way to avoid this duplication. PR incoming for your consideration.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels