Skip to content
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

Update project in venv on each build #125

Open
lordmauve opened this issue Oct 1, 2024 · 0 comments
Open

Update project in venv on each build #125

lordmauve opened this issue Oct 1, 2024 · 0 comments

Comments

@lordmauve
Copy link

Description

When running thx test I noticed had a test failure. When I fixed the test failure in my project source, thx test still shows the failure.

This is because the project itself is installed into the virtualenv with pip install -U . and pip only replaces it when the version number increases. I'm using flit_scm so version numbers will increase with commits, but uncommitted staged/unstaged changes are not causing a reinstall.

This could be fixed by passing --force-reinstall or --editable to pip install.

Details

  • OS: Linux
  • Python version: 3.10 to 3.12
  • thx version: 0.6.0
  • Can you repro on main? Haven't tried but analysis says yes
  • Can you repro in a clean virtualenv? Haven't tried but analysis says yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant