Skip to content

Instantly share code, notes, and snippets.

@echochamber
Last active May 30, 2023 07:15
Show Gist options
  • Save echochamber/c54f7241fe887cf721feb3734bbf294a to your computer and use it in GitHub Desktop.
Save echochamber/c54f7241fe887cf721feb3734bbf294a to your computer and use it in GitHub Desktop.
betterproto[compiler]==1.2.5
black==23.3.0
click==8.1.3
grpclib==0.4.4
h2==4.1.0
hpack==4.0.0
hyperframe==6.0.1
install==1.3.5
Jinja2==3.1.2
MarkupSafe==2.1.2
multidict==6.0.4
mypy-extensions==1.0.0
packaging==23.1
pathspec==0.11.1
platformdirs==3.5.1
protobuf==4.23.2
stringcase==1.2.0
tomli==2.0.1
# ...
# Create a central repo that knows about the dependencies needed from
# requirements_lock.txt.
pip_parse(
name = "pip_deps",
python_interpreter_target = interpreter,
requirements_lock = "//path/to:requirements_lock.txt",
)
# Load the starlark macro which will define your dependencies.
load("@pip_deps//:requirements.bzl", "install_deps")
# Call it to define repos for your requirements.
install_deps()
# ...
# Test this using:
# bazel query @pip_deps_betterproto//...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment