1

The official recommendation from pip-tools for cross-compilation is:

As the resulting requirements.txt can differ for each environment, users must execute pip-compile on each Python environment separately to generate a requirements.txt valid for each said environment.

I have multiple requirements files. One is called requirements.txt, another is reqiurements-silicon.txt

I have dependabot configured on github, but how do I get it to check multiple files?

tripleee
  • 175,061
  • 34
  • 275
  • 318
dfrankow
  • 20,191
  • 41
  • 152
  • 214

1 Answers1

1

Based on the unit tests for dependabot with requirements.txt, naming for requirements.txt variants has to include requirements.txt at the end - otherwise it will not be detected as a requirements.txt. I'd assume that is because there could be other txt files with the word requirements in them.

So change your file from requirements-silicon.txt to silicon-requirements.txt. This makes the ordering weird, but it at least gets picked up by Dependabot.

timmeinerzhagen
  • 772
  • 7
  • 10
  • Thanks, but they are multiple files in the same directory. Requirements.txt, requirements-silicon.txt. – dfrankow Apr 03 '23 at 12:35
  • Ah that would be the issue then. Naming has to have `requirements.txt` at the end to be picked up. See my updated answer. – timmeinerzhagen Apr 03 '23 at 13:22
  • Can't propose an edit right now, but please include that your files are named `requirements.txt` and `requirements-silicon.txt` in the question, so that others can understand it more easily. Thanks! – timmeinerzhagen Apr 03 '23 at 13:24
  • So if they are "requirements.txt" and "silicon-requirements.txt" that might work? – dfrankow Apr 03 '23 at 17:32
  • Yeah tried it out and that worked for me. Also per the unit testing done in the dependabot project, that seems to be part of their specification (see my updated answer). – timmeinerzhagen Apr 03 '23 at 18:27