-
Notifications
You must be signed in to change notification settings - Fork 1
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
make virtual-environment does not work with new version of poetry #63
Comments
Thanks for the bug report @Ida-droid. I've verified that $ poetry --version
Poetry (version 1.8.3)
$ make virtual-environment
poetry lock --no-update
The currently activated Python version 3.12.3 is not supported by the project (>=3.11,<3.12).
Trying to find and use a compatible version.
Using python3.11 (3.11.11)
Creating virtualenv openmethane-prior in /home/linds/TSI/test/openmethane-prior/.venv
Resolving dependencies... (0.2s)
# Put virtual environments in the project
poetry config virtualenvs.in-project true
poetry install --all-extras
Installing dependencies from lock file
Package operations: 51 installs, 0 updates, 0 removals
- Installing certifi (2024.8.30)
... lines elided ...
- Installing towncrier (24.8.0)
Installing the current project: openmethane_prior (0.3.1a0)
# TODO: Add last line back in when pre-commit is set up
# poetry run pre-commit install
$ pipx upgrade poetry
$ poetry --version
Poetry (version 2.0.1)
$ make virtual-environment
poetry lock --no-update
The currently activated Python version 3.12.3 is not supported by the project (>=3.11,<3.12).
Trying to find and use a compatible version.
Using python3.11 (3.11.11)
Creating virtualenv openmethane-prior in /home/linds/TSI/test/openmethane-prior/.venv
The option "--no-update" does not exist
make: *** [Makefile:7: virtual-environment] Error 1 |
It appears as though there are a number of changes from poetry Unfortunately, since Once the performance issue is fixed, we can re-evaluate if it's ready to migrate to. When it is, I'll open issues in the other repos and coordinate with @prayner to get our projects updated to poetry v2. In the meantime, I'd advise downgrading your poetry version using pip: |
Ok, thank you very much for your detailed comment. I suggest adding this information in README under the topic |
The problem
The text was updated successfully, but these errors were encountered: