-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test error with new versioning #471
Comments
Hmmm, this is weird. If you haven't installed the package pytest should use (an old) installed version of your enviroment, which should not have the _version.py. And once you installed it the file should be present. May I ask why are you using pytest directly and not via tox in an isolated environment? |
I like using pytest directly because it's much faster (no new environment to create) and because it gives me control over the environment that I'm running the tests in I don't know if it's expected, but, as long as I was installing with |
I assume when you use these flags the build process is not triggered fully and setuptools-scm is not triggered to create the version file. I thinl there is not mhuch we can do. Basically these extra options are dangerous and you have to know what you are doing 😝 |
I see that a |
It is... |
You really should not need |
Overall, I think this is not an officially supported workflow, only |
|
We don't need |
Running the tests locally with
python -m pytest
errors due to the fact that_version
is not present (I believe pytest tests from themetatrain
folder and not its installation, which would instead contain the module)@PicoCentauri
@Luthaf
The text was updated successfully, but these errors were encountered: