-
I suspect this question will show my naiveté as I am new to packaging projects. I'm playing around with hatch, and I am using hatchling to build & publish my first python package. As best as I can tell, hatch creates & maintains virtual environments completely outside my editable project. On my windows machine that's I would like to keep the virtual environment with the editable project, under: Is there anyway to adapt hatch to handle virtual environments as I desire? If not, is there a better way to think about the virtual environment issue? Hatch appears to solve some of the build\publish\clean\version issues, but the forced location of virtual environments in %USERPROFILE%\AppData seems like a non-starter to me. Any thoughts? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Set the If you are using multiple environments then you want to use the second option so it provides a little bit of nesting |
Beta Was this translation helpful? Give feedback.
-
The entire project is here: From my project root (same dir as LICENSE.txt), I execute: My hatch config.toml is pasted below: [dirs] [dirs.env] [publish.index] [template] [template.licenses] [template.plugins.default] [terminal.styles] |
Beta Was this translation helpful? Give feedback.
Set the
path
in the environment config inpyproject.toml
to.venv
https://hatch.pypa.io/latest/plugins/environment/virtual/#locationIf you are using multiple environments then you want to use the second option so it provides a little bit of nesting