-
Notifications
You must be signed in to change notification settings - Fork 239
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
installing nornir branches requires poetry, which may be a problem #332
Comments
I don't really like this proposal, but I am biased because I really like
or
|
Ok, I will test your pip examples, if that works I don't think there is much to discuss here. My understanding was that it didn't work. @optiz0r would you mind testing as well? |
I don't see an issue with installing Poetry from downloading it and executing it. Poetry is the more fundamental tool so it probably should be outside of the relevant virtual environment. Reading on this thread here, it looks like the Poetry should install Nornir as being editable. In other words, if we do 'poetry install'; a 'pip install -e' is executed. I do see that when I test it:
Note, this was using Poetry that was installed via downloading and executing get-poetry.py I did still run into This I suspect the problem is an issue in the interaction between poetry and pip. Pip is invoking Poetry as the build tool, but then tries to use the older version of jsonschema that it just installed (instead of jsonschema that Poetry requires). But given that For now I say we just update the lock file to use jsonschema 3.0.0 (assuming that works for our dependencies which I think it probably does). Then maybe submit an issue to poetry if our pip-poetry-jsonschema interaction issue is actually a bug. My reaction would be pretty strongly against adding a setup.py file (i.e. I would be more inclined to march forward and try to work out the issues we are seeing). Note, I was testing using the following:
|
As also commented in #326 , python -m pip install --user poetry
poetry install Is indeed doing the trick, and poetry continues working after the first run. This resolves this issue from my perspective. |
Awesome, glad to see it was easier than expected :) |
Poetry may be harder to install in production systems while at the same time users may need to make use of development branches to satisfy their needs while the work is done upstream to integrate their changes.
A way of removing poetry as a dependency would be to combine poetry with a setup.py file instead of using the pyproject.toml file. This way
poetry
could still be used for our build pipeline (main use) while allowing users to install it directly with pip.The text was updated successfully, but these errors were encountered: