Skip to content
Bazel rules for pip requirements
Python Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
rules
runtime runtime: convert to posix compatible Jan 6, 2019
src
test
thirdparty/pip
tools Correct sorting for deps Oct 10, 2019
.Brewfile.travis
.bazelrc
.gitignore Added support for user-specific bazelrc Mar 10, 2019
.travis.yml
BUILD
README.md
WORKSPACE
python.bzl

README.md

Bazel rules for pip requirements

Build Status

Overview

This repository provides rules for the Bazel build tool that allow your Python code to depend on pip packages using a standard requirements file. It is built in pure Python and uses the pip and wheel libraries to ensure that the resulting dependency set is the same as it would be by using those tools.

This repository is designed to be compatible with both Python 2 and 3 in a single repo, as well as support multiple platforms.

Setup

Add the following to your WORKSPACE file:

git_repository(
    name = "com_apt_itude_rules_pip",
    commit = "e5ed5e72bf5a7521244e1d2119821628bbf17263",
    remote = "https://github.com/apt-itude/rules_pip.git",
)

load("@com_apt_itude_rules_pip//rules:dependencies.bzl", "pip_rules_dependencies")

pip_rules_dependencies()
You can’t perform that action at this time.