0.3.0
New Features
compile_pip_requirements
- rule for easily producing a requirements.lock file (experimental).
Contributions
- 03c4523 Smarter namespace pkg detection in pip_install (issue #381) (#483)
- 6202ed2 Replace
<code>
with backticks in docs. Addresses #255 (#486) - f1b6b74 Check pip-compile failed to resolve requirements (#482). Thanks to @reiyw
- 915f21b Make lazily fetching dependencies compatible to disallow_empty_glob (#477). Thanks to @martis42
- ce19337 pip_install: avoid assuming 'Root-Is-Purelib' is provided in all WHEEL files
- d95e89f Migrate from bazelbuild/skydoc to bazelbuild/stardoc (#484)
- bccb3c5 Add a buildifier pre-commit hook (#481). Thanks to @alexeagle
- 4b114a4 Ignore global pip config files for pip-compile (#473). Thanks to @keith
- eaed210 Added packaging docs (#480). Thanks to @UebelAndre
- ed6cc8f Allow overriding CUSTOM_COMPILE_COMMAND (#472). Thanks to @keith
- 53ba6cb Remove leading ./ in compile_pip_requirements (#471). Thanks to @person142
- ef4d735 fix defaulted macro args behaviour so users can actually set their values (#467)
- 1dc8ed9 Introduce compile_pip_requirements rule (#373). Thanks to @alexeagle
- 1b4f61b Replace old pip_install_incremental reference (#462). Thanks to @person142
- 6a9311c Add
py_import
rule (#174). Thanks to @beasleyr-vmw - a4c375b
requirements.bzl
is now visible outsidepip_repository
s (#463). Thanks to @UebelAndre - 017eb4f Don't delete wheels from external repos with pip_parse (#458). Thanks to @person142
- 04c6d7f Also name the BUILD file in external repository roots BUILD.bazel (#457). Thanks to @person142
- 37f04a4 Parse requirements files for global pip flags. (#456). Thanks to @hrfuller
- bc256ef Ran buildifier (#449). Thanks to @UebelAndre
Incompatible Changes
None
WORKSPACE setup
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_python",
url = "https://github.com/bazelbuild/rules_python/releases/download/0.3.0/rules_python-0.3.0.tar.gz",
sha256 = "934c9ceb552e84577b0faf1e5a2f0450314985b4d8712b2b70717dc679fdc01b",
)
Using the rules
See the source.