Defines a macro rule to generate a conda lockfile.
A user would define this rule, referring to a requirements.txt
file
and a target bzl file, to regenerate that file with bazel run
. The
target file contains an conda_environment
which can be loaded and
invoked in the repository WORKSPACE file to make the @conda_env target.
load("@com_github_10XGenomics_rules_conda//rules:conda_package_lock.bzl", "conda_package_lock") conda_package_lock(name, requirements, channels, exclude, extra_packages, target, glibc_version, build_file_name, kwargs)
Defines a build target for regenerating the conda package lock.
Consums the requirements.txt file, and produces the package lock file. Requires an existing package lock that includes conda itself.
Once the make_conda_spec tool has been run manually to bootstrap the
initial repository, a build target defined with this rule can be used
to maintain the package lock, by running
bazel run //:generate_package_lock
.
PARAMETERS