Skip to content

128technology/rules_pip

 
 

Repository files navigation

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()

About

Bazel rules for pip requirements

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 51.9%
  • Starlark 43.6%
  • Shell 4.5%