Means for Running `hatch test` inside of virtualenv
See original GitHub issueCurrently, the only way to really run hatch test
in the project’s virtualenv
is by running hatch shell . pip install hatch
followed by hatch shell . hatch test
. This is a little awkward to use. It would be nice if there was some sort of -env
flag for hatch test
that could cause it to run inside of a virtualenv
. Presumably it would need to install hatch
(or just the tests_require
dependencies) inside of the virtualenv
to facilitate this, but that seems reasonable enough.
(The intuition here being that, since hatch install
automatically manages the virtualenv
, it would stand to reason that hatch test
should too)
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Determine if Python is running inside virtualenv - Stack Overflow
The most reliable way to check for this is to check whether sys.prefix == sys.base_prefix . If they are equal, you are not...
Read more >Python Tools for Managing Virtual Environments
What do you mean by project management? Do you mean building the package, linting, running tests, etc, as opposed to managing the environment?...
Read more >Is hatchling really needed? · Issue #120 · pypa/hatch - GitHub
Unfortunately, that means the hatch functionality being tested really does fail at runtime in my experimental RPM package, not just in the RPM ......
Read more >Venv Envy (A Guide to Python Virtual Environments) - Medium
zshrc stands for “run commands”.) That's why PATH is defined in your shell profile. Pyenv is the switchboard operator for your operating system....
Read more >12. Virtual Environments and Packages — Python 3.11.1 ...
This will create the tutorial-env directory if it doesn't exist, and also create directories inside it containing a copy of the Python interpreter...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@ofek Sorry I didn’t get to this last night, but yes, this seems to solve it. Thanks again!
Awesome! I’ll plan on giving it a shot later this evening and let you know. Thanks!