-
-
Notifications
You must be signed in to change notification settings - Fork 614
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
Improve README regarding how to sync "dev" requirements #1523
Comments
The important word here is "layered". In your case
If you want |
Thanks, this makes it a bit clearer. I was not aware of the pip flag
or, really, why
produces a list of dependencies that seem to be self-consistent: In Following your explanation I would have expected instead that only those requirements from (Actually I like the behavior that I get, but I would like to be sure about how it works.) |
First I have to say, that I am just a user.
This is the behavior I am seeing in my setup. But not only for directly linked dependencies, but as exected also for transitive dependencies. For example
With |
I think I understand now how it works. I believe that got confused because of my special setup. My
That is, when developing my package, I required the package itself (that corresponds to the Python project, for which I was about to pin dependency versions) to be installed in the virtual environment, in editable manner (because I was using console scripts that become available through installation). But the transitive transitions of this very package simply correspond to the Thank you @aberres for helping me clean this up in my head. |
I have a slight problem understanding a detail in the README file. In the section "Workflow for layered requirements" it basically says that I should do:
My question is: Do I really need to provide both, dev-requirements.txt AND requirements.txt to pip-sync?
In my case, the dev-requirements.in already contains a reference to the base requirements (-c requirements.txt).
Therefore I would have thought that it is sufficient to do:
Maybe this question could be addressed in the README?
I might just have overlooked the answer or misunderstood something, of course.
The text was updated successfully, but these errors were encountered: