#i'm having some trouble with
1 messages · Page 1 of 1 (latest)
probably not, re-create the environment and try again
metadata is not dynamic so updates wouldn't be picked up automatically
still failing after hatch clean
is there another way to reset envs?
hatch env prune
that did it, thanks
np
is there a way to tell the env to clean before running any scripts? it's a bit inconvenient to have to execute hatch env prune after making any change
to be clear, what do you mean by scripts?
i believe the ask is to have tox-alike behaviour of reinstall before run
specifically, hatch test
i'm using the scikit-build-core plugin, so i can't use editable installs
when you say scripts do you mean project metadata or environment scripts? just to confirm
environment scripts
those are always available and reflect changes you have made
it isn't with dev-mode = false, changes made to both the C extension and python code are not reflected (since it's not reinstalled)
you have to hatch env prune first
okay then you aren't talking about environment scripts but rather project.scripts
i'm using the hatch-test env
is there something blatantly wrong with this configuration?
[envs.hatch-test]
features = ["full"]
dev-mode = false
dependencies = [
"coverage",
"pytest",
"pytest-memray",
"pytest-asyncio",
]
platforms = ["linux", "macos"]
[envs.hatch-test.overrides]
platform.windows.dependencies = [
"coverage",
"pytest",
"pytest-asyncio",
]
also note that, as Ronny mentioned, what you actually want is an option to reinstall every time
the dev-mode actually even if true is not updating your extension
ok, what should i do?
I suppose you could add a script that invokes pip install and then does whatever you actually want
i'll try that. could a reinstall feature be added in future?
there is an open request for that
can you link the issue, so i can watch it :)