Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Question about Python requirements.txt #435

Closed
RohanNagar opened this issue Apr 9, 2019 · 3 comments
Closed

Question about Python requirements.txt #435

RohanNagar opened this issue Apr 9, 2019 · 3 comments

Comments

@RohanNagar
Copy link

RohanNagar commented Apr 9, 2019

I currently have a python setup in my repository that I have enabled dependabot on. I use both Pipfile and a requirements.txt file due to different requirements on development machines vs. build machines.

My question is, will dependabot update both files at the same time when a new version of a dependency is out? I did receive a PR updating the version of a package in the Pipfile, but there was no corresponding update to the requirements.txt. I manually updated the file in the PR as you can see: RohanNagar/thunder#428

Is the reason dependabot didn't update the requirements file because it is named readthedocs-requirements.txt and not requirements.txt? If that is the case, would it be possible to expand the allowed names of the requirements files, or should I rename my file to requirements.txt?

Thanks for the help

@greysteil
Copy link
Contributor

This is a bit of a tricky one. Dependabot will try to do both, but it's not perfect at it yet. If you generate your requirements file with pipenv lock -r or pipenv lock -r -d then Dependabot should realise that it needs to update those, too. If you don't and are using Pipenv then it will skip them. We could definitely do better there.

@RohanNagar
Copy link
Author

RohanNagar commented Apr 15, 2019

Ah I see. I'll try generating the requirements file with pipenv lock, thanks!

@stale
Copy link

stale bot commented Oct 23, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within seven days. Thank you for your contributions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants