Skip to content

Commit

Permalink
feat: add syntax sugar to avoid meaningless requirements.in files (#134)
Browse files Browse the repository at this point in the history
This is a minor quality-of-life improvement for some cases, like
bazelbuild/rules_python#1016 where you just
need a requirements file for the `twine` package so it's nice to write
it as

```
uv_pip_compile(
    name = "twine_requirements",
    requirements_in = ["twine"],
    requirements_txt = "requirements.twine",
)
```
  • Loading branch information
alexeagle authored Sep 23, 2024
1 parent 79091a4 commit 1f92655
Show file tree
Hide file tree
Showing 3 changed files with 341 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/typical/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ pip_compile(
requirements_txt = "requirements_linux.txt",
)

pip_compile(
name = "generate_requirements_twine",
requirements_in = ["twine"],
requirements_txt = "requirements_twine.txt",
)

create_venv(name = "create-venv")

create_venv(
Expand Down
Loading

0 comments on commit 1f92655

Please sign in to comment.