question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pyup cant find a requirements.txt file when there are brackets in the name

See original GitHub issue

Problem

Pyup tells me in the dashboard that it can’t find my requirements.txt file.

Context

I run an open source project called django-cookiecutter-rest. It’s a project template for Django apps. Because of that, it uses bracketed template variables in the project’s folder names. Pyupbot is unable to find my requirements.txt file at: {{cookiecutter.github_repository_name}}/requirements.txt.

Here’s my .pyup.yml config:

update: all
pin: True
branch: master

requirements:
  - /{/{cookiecutter.github_repository_name/}/}/requirements.txt

schedule: "every day"
search: True
label_prs: update
assignees:
- agconti

I’ve tried a few ways to specify the file but none have worked yet:

  • /{/{cookiecutter.github_repository_name/}/}/requirements.txt
  • “{{cookiecutter.github_repository_name}}/requirements.txt”
  • {{cookiecutter.github_repository_name}}/requirements.txt

Thanks for your help!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
agconticommented, May 4, 2020

@rafaelpivato this fixed my issue. Thank you!

0reactions
rafaelpivatocommented, May 1, 2020

@agconti a deployment was made to https://pyup.io/ using latest pyupio/pyup version. Such latest version includes a fix handling filenames with stuff like {. Before moving forward looking further deep into the code, I would like to make sure that was not all you needed to fix your issue here.

Can you share a feedback about this issue again with this latest updates?

Read more comments on GitHub >

github_iconTop Results From Across the Web

setup.py doesn't see my requirements.txt - Stack Overflow
Can you share the folder structure? the exception is saying it can't find the requirements.txt file, is it on the same directory as...
Read more >
Producing constraints.txt files · Issue #1300 · jazzband/pip-tools
pip -compile app1 app2 app3 --output-file constraints.txt # build ... we found is to use sed to search for brackets and remove them:....
Read more >
Requirements File Format - pip documentation v22.3.1
You have to use the POSIX format for variable names including brackets around the uppercase name as shown in this example: ${API_TOKEN} ....
Read more >
music21 Changelog - pyup.io
MusicXML and MIDI files that give a part name like "flute" but no instrument or program code will get a Flute object in...
Read more >
pipenv Documentation
define dependencies, see Pipfile vs setup.py. ... They work together. • Managing a requirements.txt file can be problematic, so Pipenv uses ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found