Skip to content

jo2y/rules_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bazel Python Rules

Build Status

Rules

Overview

This is a placeholder repository that provides aliases for the native Bazel python rules. In the future, this will also become the home for rules that download pip packages, and other non-Core Python functionality.

Setup

Add the following to your WORKSPACE file to add the external repositories:

git_repository(
    name = "io_bazel_rules_python",
    remote = "https://github.com/bazelbuild/rules_python.git",
    commit = "{HEAD}",
)

Then in your BUILD files load the python rules with:

load(
  "@io_bazel_rules_python//python:python.bzl",
  "py_binary", "py_library"
)

py_binary(
  name = "main",
  ...
)

py_library

See Bazel core documentation.

py_binary

See Bazel core documentation.

About

Experimental Bazel Python Rules

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 49.1%
  • Starlark 47.4%
  • Shell 1.8%
  • Dockerfile 1.7%