Bazel - Getting started with Python

preview_player
Показать описание
Tutorial to get started with bazel and Python.

Keywords: bazel, python, build system, getting started, tutorial.

It goes through the process of starting a new workspace from scratch, to use Python with bazel build system. It first integrates and runs a simple python script with bazel (with the py_binary rule), then shows how to create and use a library with the py_library rule and finally, adds a simple unit test with the py_test rule.

0:00 Intro
0:08 BUILD file
0:46 WORKSPACE file
0:58 bazel run
1:31 Create library
3:39 Create unit test

Рекомендации по теме
Комментарии
Автор

I know this video is a year old, but this was super helpful to me. I'm building out a new set of python libraries and packages, and I need a build system to keep them sane, so I picked bazel, but I didn't really know where to start. This is great. Thanks!

MattSimmonsSysAdmin