-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Support alternative pip-compile setup #1475
Comments
👋 I THINK this may have to do with the way we parse dependencies, but I'm not 100% sure on that. @feelepxyz, thoughts? |
@tatablack good question, we definitely have some support for parsing |
Closing this due to age and low demand. If this scenario is critical to your workflow please feel free to comment. |
Hi @feelepxyz and @infin8x, sorry for the very late reply on this but we weren't aware of it (read we forgot) until I started looking for open issues months down the line when we faced problems. So our current setup is fairly straight forward, we define all our dependencies constraints in the
That way, as part or our CI/CD workflow, we can use the locked However, whilst the title of this announcement says you support pip-compile, you do only seems to support it if based on a We tried to improve our fork so that wherever I hope that clarifies the scenario and the need. I'm sure we are not alone in the industry having this setup, otherwise I don't see why Thanks for your time, help and consideration. We look forward to hearing from you. |
Thanks for the write-up. Reopening. |
@infin8x no problem, thanks for reopening it and for any help/support you could provide. Also, if something is not clear and you require any further clarification do not hesitate to ask. |
👋🏻 We'd love to use Dependabot too, and our current workflow is similar to what's described here. Applications define their primary dependencies in I also saw this PR just get merged to add support for parsing dependencies from So, I'm hoping that if you add support for |
If I understood correctly, I guess the problem here is, dependabot doesn't know whether a dependency in |
A few things I don't understand yet:
|
Not quite, the problem is that at the moment dependabot does this to detect whether |
@honnix if I understood correctly the before/after is used to keep track of actual upgradability, it's actually quite useful for logging and such, again, it's been a little while ago now so my memories are a bit blurry. About our use case the problem is that PR changes only one file and not the other. We experimented using a |
@debo Thanks for explaining in details. I assumed there was a Do you mean if you have both |
I think I misunderstood this thread a bit. I thought it was about when running dependabot-core/python/lib/dependabot/python/file_updater/pip_compile_file_updater.rb Line 76 in 9308874
*.in file if I read it correctly.
|
That is the issue, at least for us. We use pip-compile without Ideally, Dependabot would allow us to specify the input file to |
No, the problem is the following. We have our dependencies in the We modified the code to force |
Our use case is slightly different and is harder for me to understand the actual behaviour of dependabot. We use both |
I think that whichever is the case Dependabot should support the most combination of this workflow rather than be overly opinionated and support only one, but this is for their development team to take a final decision on. |
Hi! We standardised our Python projects to define dependencies using a
setup.py
file, and lock them to arequirements.txt
usingpip-compile
.The documentation for
pip-compile
says that using either arequirements.in
or asetup.py
as input is supported but, from what I can see independabot-core
,pip-compile
will be used to regenerate the lockfile ONLY when files ending in.in
are present (I'm simplifying a bit).Is there a reason why having a
setup.py
as input forpip-compile
is not supported? Have I overlooked something?We're currently using a fork of
dependabot-core
, so we can try to make it support our use case, but before contributing back we wanted to make sure the current behaviour wasn't, in fact, expected.The text was updated successfully, but these errors were encountered: