Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
279 changes: 179 additions & 100 deletions dev/requirements.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/pypi/lock.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ load("@rules_python//python:pip.bzl", "compile_pip_requirements")

compile_pip_requirements(
name = "requirements",
src = "requirements.in",
src = "pyproject.toml",
requirements_txt = "requirements_lock.txt",
)
```
Expand Down
12 changes: 6 additions & 6 deletions examples/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ licenses(["notice"]) # Apache 2.0

lock(
name = "bzlmod_requirements_3_12",
srcs = ["bzlmod/requirements.in"],
srcs = ["bzlmod/pyproject.toml"],
out = "bzlmod/requirements_lock_3_12.txt",
args = [
"--emit-index-url",
Expand All @@ -31,7 +31,7 @@ lock(

lock(
name = "bzlmod_requirements_3_12_windows",
srcs = ["bzlmod/requirements.in"],
srcs = ["bzlmod/pyproject.toml"],
out = "bzlmod/requirements_windows_3_12.txt",
args = [
"--emit-index-url",
Expand All @@ -44,7 +44,7 @@ lock(

lock(
name = "bzlmod_requirements_3_13",
srcs = ["bzlmod/requirements.in"],
srcs = ["bzlmod/pyproject.toml"],
out = "bzlmod/requirements_lock_3_13.txt",
args = [
"--emit-index-url",
Expand All @@ -56,7 +56,7 @@ lock(

lock(
name = "bzlmod_requirements_3_13_windows",
srcs = ["bzlmod/requirements.in"],
srcs = ["bzlmod/pyproject.toml"],
out = "bzlmod/requirements_windows_3_13.txt",
args = [
"--emit-index-url",
Expand All @@ -69,7 +69,7 @@ lock(

lock(
name = "bzlmod_requirements_3_14",
srcs = ["bzlmod/requirements.in"],
srcs = ["bzlmod/pyproject.toml"],
out = "bzlmod/requirements_lock_3_14.txt",
args = [
"--emit-index-url",
Expand All @@ -81,7 +81,7 @@ lock(

lock(
name = "bzlmod_requirements_3_14_windows",
srcs = ["bzlmod/requirements.in"],
srcs = ["bzlmod/pyproject.toml"],
out = "bzlmod/requirements_windows_3_14.txt",
args = [
"--emit-index-url",
Expand Down
2 changes: 1 addition & 1 deletion examples/build_file_generation/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ load("@rules_python_gazelle_plugin//modules_mapping:def.bzl", "modules_mapping")

compile_pip_requirements(
name = "requirements",
src = "requirements.in",
src = "pyproject.toml",
requirements_txt = "requirements_lock.txt",
requirements_windows = "requirements_windows.txt",
)
Expand Down
2 changes: 1 addition & 1 deletion examples/build_file_generation/gazelle_python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ manifest:
werkzeug: werkzeug
pip_repository:
name: pip
integrity: d775f39a5dd4a17ddda29d6f216e29a14fbfdfaa3ec1d7a213fda9e4bcafb350
integrity: b50a3e8b0d0fd2c648b1ae93e081c2c32a5f289d2df5a12aa1679ee4b6fd809c
8 changes: 8 additions & 0 deletions examples/build_file_generation/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[project]
name = "build_file_generation"
version = "0.0.0"
dependencies = [
"flask",
"sphinx",
"sphinxcontrib-serializinghtml",
]
3 changes: 0 additions & 3 deletions examples/build_file_generation/requirements.in

This file was deleted.

6 changes: 3 additions & 3 deletions examples/build_file_generation/requirements_lock.txt
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ docutils==0.22.4 \
flask==3.1.3 \
--hash=sha256:0ef0e52b8a9cd932855379197dd8f94047b359ca0a78695144304cb45f87c9eb \
--hash=sha256:f4bcbefc124291925f1a26446da31a5178f9483862233b23c0c96a20701f670c
# via -r requirements.in
# via build_file_generation (pyproject.toml)
idna==3.19 \
--hash=sha256:5e0811a4383b21dc5838069f801c4fb62113b7447663d2530d2bd6e77b49bf15 \
--hash=sha256:815e7be7a7806d54abb586dc943addc79e8b2ee16915059658cbeff4b1b43bf4
Expand Down Expand Up @@ -341,7 +341,7 @@ snowballstemmer==3.1.1 \
sphinx==9.1.0 \
--hash=sha256:7741722357dd75f8190766926071fed3bdc211c74dd2d7d4df5404da95930ddb \
--hash=sha256:c84fdd4e782504495fe4f2c0b3413d6c2bf388589bb352d439b2a3bb99991978
# via -r requirements.in
# via build_file_generation (pyproject.toml)
sphinxcontrib-applehelp==2.0.0 \
--hash=sha256:2f29ef331735ce958efa4734873f084941970894c6090408b079c61b2e1c06d1 \
--hash=sha256:4cd3f0ec4ac5dd9c17ec65e9ab272c9b867ea77425228e68ecf08d6b28ddbdb5
Expand All @@ -366,7 +366,7 @@ sphinxcontrib-serializinghtml==2.0.0 \
--hash=sha256:6e2cb0eef194e10c27ec0023bfeb25badbbb5868244cf5bc5bdc04e4464bf331 \
--hash=sha256:e9d912827f872c029017a53f0ef2180b327c3f7fd23c87229f7a8e8b70031d4d
# via
# -r requirements.in
# build_file_generation (pyproject.toml)
# sphinx
urllib3==2.7.0 \
--hash=sha256:231e0ec3b63ceb14667c67be60f2f2c40a518cb38b03af60abc813da26505f4c \
Expand Down
6 changes: 3 additions & 3 deletions examples/build_file_generation/requirements_windows.txt
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ docutils==0.22.4 \
flask==3.1.3 \
--hash=sha256:0ef0e52b8a9cd932855379197dd8f94047b359ca0a78695144304cb45f87c9eb \
--hash=sha256:f4bcbefc124291925f1a26446da31a5178f9483862233b23c0c96a20701f670c
# via -r requirements.in
# via build_file_generation (pyproject.toml)
idna==3.19 \
--hash=sha256:5e0811a4383b21dc5838069f801c4fb62113b7447663d2530d2bd6e77b49bf15 \
--hash=sha256:815e7be7a7806d54abb586dc943addc79e8b2ee16915059658cbeff4b1b43bf4
Expand Down Expand Up @@ -347,7 +347,7 @@ snowballstemmer==3.1.1 \
sphinx==9.1.0 \
--hash=sha256:7741722357dd75f8190766926071fed3bdc211c74dd2d7d4df5404da95930ddb \
--hash=sha256:c84fdd4e782504495fe4f2c0b3413d6c2bf388589bb352d439b2a3bb99991978
# via -r requirements.in
# via build_file_generation (pyproject.toml)
sphinxcontrib-applehelp==2.0.0 \
--hash=sha256:2f29ef331735ce958efa4734873f084941970894c6090408b079c61b2e1c06d1 \
--hash=sha256:4cd3f0ec4ac5dd9c17ec65e9ab272c9b867ea77425228e68ecf08d6b28ddbdb5
Expand All @@ -372,7 +372,7 @@ sphinxcontrib-serializinghtml==2.0.0 \
--hash=sha256:6e2cb0eef194e10c27ec0023bfeb25badbbb5868244cf5bc5bdc04e4464bf331 \
--hash=sha256:e9d912827f872c029017a53f0ef2180b327c3f7fd23c87229f7a8e8b70031d4d
# via
# -r requirements.in
# build_file_generation (pyproject.toml)
# sphinx
urllib3==2.7.0 \
--hash=sha256:231e0ec3b63ceb14667c67be60f2f2c40a518cb38b03af60abc813da26505f4c \
Expand Down
6 changes: 5 additions & 1 deletion examples/bzlmod/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ load("@rules_python//python:py_test.bzl", "py_test")
compile_pip_requirements_3_10(
name = "requirements_3_10",
timeout = "moderate",
src = "requirements.in",
src = "pyproject.toml",
extra_args = [
"--extra-index-url",
"https://pypi.org/simple/",
],
requirements_txt = "requirements_lock_3_10.txt",
requirements_windows = "requirements_windows_3_10.txt",
)
Expand Down
2 changes: 1 addition & 1 deletion examples/bzlmod/other_module/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ load("@rules_python//python:pip.bzl", "compile_pip_requirements")
# override in the MODULE.bazel.
compile_pip_requirements(
name = "requirements",
src = "requirements.in",
src = "pyproject.toml",
python_version = "3.11",
requirements_txt = "requirements_lock_3_11.txt",
)
6 changes: 6 additions & 0 deletions examples/bzlmod/other_module/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[project]
name = "other_module"
version = "0.0.0"
dependencies = [
"absl-py",
]
1 change: 0 additions & 1 deletion examples/bzlmod/other_module/requirements.in

This file was deleted.

4 changes: 2 additions & 2 deletions examples/bzlmod/other_module/requirements_lock_3_11.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# bazel run //other_module/pkg:requirements.update
# bazel run //:requirements.update
#
absl-py==1.4.0 \
--hash=sha256:0d3fe606adfa4f7db64792dd4c7aee4ee0c38ab75dfd353b7a83ed3e957fcb47 \
--hash=sha256:d2c244d01048ba476e7c080bd2c6df5e141d211de80223460d5b3b8a2a58433d
# via -r other_module/pkg/requirements.in
# via other_module (pyproject.toml)
17 changes: 17 additions & 0 deletions examples/bzlmod/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[project]
name = "example_bzlmod"
version = "0.0.0"
dependencies = [
"wheel",
"websockets",
"requests~=2.34.2",
"s3cmd~=2.1.0",
"yamllint>=1.28.0",
"tabulate~=0.9.0",
"pylint~=2.17.7",
"pylint-print",
"python-dateutil>=2.8.2",
"sphinx",
"sphinxcontrib-serializinghtml",
"colorama",
]
14 changes: 0 additions & 14 deletions examples/bzlmod/requirements.in

This file was deleted.

24 changes: 12 additions & 12 deletions examples/bzlmod/requirements_lock_3_10.txt
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ charset-normalizer==3.5.1 \
colorama==0.4.6 \
--hash=sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44 \
--hash=sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6
# via -r requirements.in
# via example_bzlmod (pyproject.toml)
dill==0.3.6 \
--hash=sha256:a07ffd2351b8c678dfc4a856a3005f8067aea51d6ba6c700796a4d9e280f39f0 \
--hash=sha256:e5db55f3687856d8fbdab002ed78544e1c4559a130302693d839dfe8f93f2373
Expand Down Expand Up @@ -350,17 +350,17 @@ pylint==2.17.7 \
--hash=sha256:27a8d4c7ddc8c2f8c18aa0050148f89ffc09838142193fdbe98f172781a3ff87 \
--hash=sha256:f4fcac7ae74cfe36bc8451e931d8438e4a476c20314b1101c458ad0f05191fad
# via
# -r requirements.in
# example_bzlmod (pyproject.toml)
# pylint-print
pylint-print==1.0.1 \
--hash=sha256:30aa207e9718ebf4ceb47fb87012092e6d8743aab932aa07aa14a73e750ad3d0 \
--hash=sha256:a2b2599e7887b93e551db2624c523c1e6e9e58c3be8416cd98d41e4427e2669b
# via -r requirements.in
# via example_bzlmod (pyproject.toml)
python-dateutil==2.8.2 \
--hash=sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86 \
--hash=sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9
# via
# -r requirements.in
# example_bzlmod (pyproject.toml)
# s3cmd
python-magic==0.4.27 \
--hash=sha256:c1ba14b08e4a5f5c31a302b7721239695b2f0f058d125bd5ce1ee36b9d9d3c3b \
Expand Down Expand Up @@ -412,12 +412,12 @@ requests==2.34.2 \
--hash=sha256:2a0d60c172f83ac6ab31e4554906c0f3b3588d37b5cb939b1c061f4907e278e0 \
--hash=sha256:f288924cae4e29463698d6d60bc6a4da69c89185ad1e0bcc4104f584e960b9ed
# via
# -r requirements.in
# example_bzlmod (pyproject.toml)
# sphinx
s3cmd==2.1.0 \
--hash=sha256:49cd23d516b17974b22b611a95ce4d93fe326feaa07320bd1d234fed68cbccfa \
--hash=sha256:966b0a494a916fc3b4324de38f089c86c70ee90e8e1cae6d59102103a4c0cc03
# via -r requirements.in
# via example_bzlmod (pyproject.toml)
six==1.16.0 \
--hash=sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926 \
--hash=sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254
Expand All @@ -430,7 +430,7 @@ sphinx==7.2.6 \
--hash=sha256:1e09160a40b956dc623c910118fa636da93bd3ca0b9876a7b3df90f07d691560 \
--hash=sha256:9a5160e1ea90688d5963ba09a2dcd8bdd526620edbb65c328728f1b2228d5ab5
# via
# -r requirements.in
# example_bzlmod (pyproject.toml)
# sphinxcontrib-applehelp
# sphinxcontrib-devhelp
# sphinxcontrib-htmlhelp
Expand Down Expand Up @@ -460,12 +460,12 @@ sphinxcontrib-serializinghtml==1.1.9 \
--hash=sha256:0c64ff898339e1fac29abd2bf5f11078f3ec413cfe9c046d3120d7ca65530b54 \
--hash=sha256:9b36e503703ff04f20e9675771df105e58aa029cfcbc23b8ed716019b7416ae1
# via
# -r requirements.in
# example_bzlmod (pyproject.toml)
# sphinx
tabulate==0.9.0 \
--hash=sha256:0095b12bf5966de529c0feb1fa08671671b3368eec77d7ef7ab114be2c068b3c \
--hash=sha256:024ca478df22e9340661486f85298cff5f6dcdba14f3813e8830015b9ed1948f
# via -r requirements.in
# via example_bzlmod (pyproject.toml)
tomli==2.0.1 \
--hash=sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc \
--hash=sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f
Expand Down Expand Up @@ -553,11 +553,11 @@ websockets==11.0.3 \
--hash=sha256:f61bdb1df43dc9c131791fbc2355535f9024b9a04398d3bd0684fc16ab07df74 \
--hash=sha256:fb06eea71a00a7af0ae6aefbb932fb8a7df3cb390cc217d51a9ad7343de1b8d0 \
--hash=sha256:ffd7dcaf744f25f82190856bc26ed81721508fc5cbf2a330751e135ff1283564
# via -r requirements.in
# via example_bzlmod (pyproject.toml)
wheel==0.46.2 \
--hash=sha256:33ae60725d69eaa249bc1982e739943c23b34b58d51f1cb6253453773aca6e65 \
--hash=sha256:3d79e48fde9847618a5a181f3cc35764c349c752e2fe911e65fa17faab9809b0
# via -r requirements.in
# via example_bzlmod (pyproject.toml)
wrapt==1.15.0 \
--hash=sha256:02fce1852f755f44f95af51f69d22e45080102e9d00258053b79367d07af39c0 \
--hash=sha256:077ff0d1f9d9e4ce6476c1a924a3332452c1406e59d90a2cf24aeb29eeac9420 \
Expand Down Expand Up @@ -638,4 +638,4 @@ wrapt==1.15.0 \
yamllint==1.32.0 \
--hash=sha256:d01dde008c65de5b235188ab3110bebc59d18e5c65fc8a58267cd211cd9df34a \
--hash=sha256:d97a66e48da820829d96077d76b8dfbe6c6140f106e558dae87e81ac4e6b30b7
# via -r requirements.in
# via example_bzlmod (pyproject.toml)
Loading