Azure / Azure/draft

add support for requirements.txt

Open
#228 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
644
Forks
74
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
Make the python dockerfile run `pip install requirements.txt` if the file exists at the root

we could inline it with something like `[ -f "/requirements.txt" ] && pip install requirements.txt` so that it only runs if the file is there

**Mention what platform you want to support the new feature**
oss draft

**Describe the solution you'd like**
when a repo is supplied to draft with a requirements.txt, it should install them

when a repo is supplied without a requirements.txt, this step should be skipped

**Describe alternatives you've considered**
making a new prompt or separated dockerfile for "python_with_requirements"- but this seems like extra complexity and maintenance burden when we could just add it to the one dockerfile we already have

**Additional context**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.