You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First off, congratulations on the amazing project! I've started using Hatch in my workflows, and it fills several gaps I experienced with Pipenv—great work!
I'm using Hatch with a standard default environment (type="virtual") and would like to extend its functionality to retrieve artifacts from Artifactory, not just Python packages. For example, I may need to fetch a zip file containing a front-end for a FastAPI app or test data for Pytest.
I already have a tool (arti_resolve) that fetches these artifacts based on a dependency file (artifactory.deps) in the project root. Here's what I'd like to achieve:
When the environment is created:
Python dependencies are installed.
Artifactory artifacts are fetched (arti_resolve).
When dependencies change:
Python packages are updated (already supported).
Artifactory artifacts are updated when artifactory.deps changes.
I'm implementing an EnvironmentInterface plugin, inheriting from VirtualEnvironment. I’ve managed to handle:
install_project
install_project_dev_mode
dependencies_in_sync
sync_dependencies
However, dependencies_in_sync is only triggered when Python dependencies change. How can I also check for changes in artifactory.deps and invoke the sync logic, something like:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there,
First off, congratulations on the amazing project! I've started using Hatch in my workflows, and it fills several gaps I experienced with Pipenv—great work!
I'm using Hatch with a standard default environment (
type="virtual"
) and would like to extend its functionality to retrieve artifacts from Artifactory, not just Python packages. For example, I may need to fetch a zip file containing a front-end for a FastAPI app or test data for Pytest.I already have a tool (
arti_resolve
) that fetches these artifacts based on a dependency file (artifactory.deps
) in the project root. Here's what I'd like to achieve:arti_resolve
).artifactory.deps
changes.I'm implementing an
EnvironmentInterface
plugin, inheriting fromVirtualEnvironment
. I’ve managed to handle:install_project
install_project_dev_mode
dependencies_in_sync
sync_dependencies
However,
dependencies_in_sync
is only triggered when Python dependencies change. How can I also check for changes inartifactory.deps
and invoke the sync logic, something like:Any guidance or suggestions would be greatly appreciated. Let me know if anything needs clarification—thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions