Open
Description
Bug Description
The Github-action generated by Maturin may contain default steps for running pytest
. The juicy parts of those pytest
-step are:
set -e
pip install [package] --find-links dist --force-reinstall
pip install pytest
pytest
I noticed that CI started to fail after releasing a new version, and then adding new commits. The problem is that the pip install [package]
prefers the remote package over the locally built wheel in dist
if the version-number is the same. Therefor, the tests execute against an outdated package as long as the version number is not bumped. This seems highly surprising behavior.
Your maturin version (maturin --version
)
1.4.0
Your Python version (python -V
)
3.11
Your pip version (pip -V
)
23.3
What bindings you're using
pyo3
Does cargo build
work?
- Yes, it works
If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash /
)?
- Yes
Steps to Reproduce
- Bump version, release to pypi
- Add commits
- The CI-pipeline provided by Maturin starts testing the pypi-provided package, instead of
HEAD
. - Bump the package-version and push;
pytest
now (and only now) starts using the package built bysdist
fromHEAD
.