-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[Feature Request] Install dependencies without updating lockfile #602
Comments
Does |
Yes. That works suitably. Thanks |
@nickpresta do you have any more details on how you got this to work? I have exactly the same issue - I cannot get tests running against multiple Django versions, as |
There's no difference with using |
I'm experiencing the same issue. I'm using Travis CI and want to test my package against multiple versions of Tensorflow. My workaround for this has been to remove this package from the config and add it back with a strict version. Thankfully, Poetry's CLI makes it simple. So I changed the install workflow to this (note that
And it worked for me*. Note that Here's my full * due to #2271, my line actually reads, |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Feature Request
I am trying to install a dependency that will not result in a lockfile update, similar in behavior to
yarn install --no-lockfile
.The reason I am looking for this feature is the ability to better test with
tox
when having multiple "environments". For example, I want to test on Python 3.6 with several versions of Django (1.9, 1.11, 2.1, for example). Mytox.ini
looks like this:When I get rid of the additional Django dependency, everything works fine and as expected, but I need to be able to install Django in the virtualenv for that specific test run without actually updating the
poetry.lock
file for local development or subsequent runs.Thanks!
EDIT To add, I'm more than willing to help add this functionality, but I would need some help on where to start. I see
AddCommand
-- it seems like this could be solved by callinginstaller.update(False)
when the--no-lockfile
option is passed.The text was updated successfully, but these errors were encountered: