{"id":29142368,"url":"https://github.com/buildkite/bazel-python-package-example","last_synced_at":"2026-02-25T16:02:19.782Z","repository":{"id":289550293,"uuid":"971605017","full_name":"buildkite/bazel-python-package-example","owner":"buildkite","description":"An example pipeline that builds, tests, and packages a Python library using Bazel.","archived":false,"fork":false,"pushed_at":"2025-07-18T05:08:32.000Z","size":159,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-11-03T07:04:15.539Z","etag":null,"topics":["bazel","buildkite","example","package","pipeline","python"],"latest_commit_sha":null,"homepage":"https://buildkite.com/buildkite/bazel-python-package-example/builds/latest?branch=main","language":"Starlark","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/buildkite.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-23T19:20:44.000Z","updated_at":"2025-09-17T00:19:47.000Z","dependencies_parsed_at":"2025-04-23T21:43:07.886Z","dependency_job_id":null,"html_url":"https://github.com/buildkite/bazel-python-package-example","commit_stats":null,"previous_names":["buildkite/bazel-python-package-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/buildkite/bazel-python-package-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildkite%2Fbazel-python-package-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildkite%2Fbazel-python-package-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildkite%2Fbazel-python-package-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildkite%2Fbazel-python-package-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buildkite","download_url":"https://codeload.github.com/buildkite/bazel-python-package-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildkite%2Fbazel-python-package-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29829408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T15:41:19.027Z","status":"ssl_error","status_checked_at":"2026-02-25T15:40:47.150Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bazel","buildkite","example","package","pipeline","python"],"created_at":"2025-06-30T19:37:25.315Z","updated_at":"2026-02-25T16:02:19.767Z","avatar_url":"https://github.com/buildkite.png","language":"Starlark","readme":"# Bazel Python Package Example\n\n[![Build status](https://badge.buildkite.com/f9b46d96710d254e34229ba68bb8797d0b8f1e64ac5abfecb9.svg)](https://buildkite.com/buildkite/bazel-python-package-example/builds/latest?branch=main)\n[![Add to Buildkite](https://img.shields.io/badge/Add%20to%20Buildkite-14CC80)](https://buildkite.com/new)\n\nThis repository is an example [Buildkite](https://buildkite.com/) pipeline that builds, tests, and packages a Python library using [Bazel](https://bazel.build).\n\n👉 **See this example in action:** [buildkite.com/buildkite/bazel-python-package-example](https://buildkite.com/buildkite/bazel-python-package-example/builds/latest?branch=main)\n\nSee the full [Getting Started Guide](https://buildkite.com/docs/guides/getting-started) for step-by-step instructions on how to get this running, or try it yourself:\n\n[![Add to Buildkite](https://buildkite.com/button.svg)](https://buildkite.com/new)\n\n\u003ca href=\"https://buildkite.com/buildkite/bazel-python-package-example/builds/latest?branch=main\"\u003e\n  \u003cimg width=\"2400\" alt=\"Screenshot of Buildkite Bazel Python Package example pipeline\" src=\".buildkite/screenshot.png\" /\u003e\n\u003c/a\u003e\n\u003cp align=\"left\"\u003e\u003cem\u003ehe Python package is built, tested, and uploaded as a Buildkite artifact using Bazel\u003c/em\u003e\u003c/p\u003e\n\n\n\u003c!-- docs:start --\u003e\n## How it works\n\nThis example uses Bazel to build and test a Python package and then use that package in another Python program configured with a third-party dependency. The repo is also configured with a Buildkite pipeline that uploads the Bazel-built Python package as a Buildkite [build artifact](https://buildkite.com/docs/pipelines/configure/artifacts).\n\n```bash\n$ bazel build //...\n\nINFO: Analyzed 6 targets (1 packages loaded, 2174 targets configured).\nINFO: Found 6 targets...\nINFO: Elapsed time: 0.301s, Critical Path: 0.01s\nINFO: 1 process: 1 internal.\nINFO: Build completed successfully, 1 total action\n```\n\n```bash\n$ bazel test //...\n\nINFO: Analyzed 6 targets (0 packages loaded, 0 targets configured).\nINFO: Found 4 targets and 2 test targets...\nINFO: Elapsed time: 0.130s, Critical Path: 0.00s\nINFO: 1 process: 1 internal.\nINFO: Build completed successfully, 1 total action\nPASSED: //app:test_main (see /private/var/tmp/_bazel_cnunciato/91877609f582aac2a59896b10bfc8689/execroot/_main/bazel-out/darwin_arm64-fastbuild/testlogs/app/test_main/test.log)\nINFO: From Testing //app:test_main\n==================== Test output for //app:test_main:\nThe Python package says, 'Hi!'\n================================================================================\nPASSED: //package:test_hello (see /private/var/tmp/_bazel_cnunciato/91877609f582aac2a59896b10bfc8689/execroot/_main/bazel-out/darwin_arm64-fastbuild/testlogs/package/test_hello/test.log)\nINFO: From Testing //package:test_hello\n==================== Test output for //package:test_hello:\n.\n----------------------------------------------------------------------\nRan 1 test in 0.000s\n\nOK\n================================================================================\n//app:test_main                                                 (cached) PASSED in 0.5s\n//package:test_hello                                            (cached) PASSED in 0.4s\n\nExecuted 0 out of 2 tests: 2 tests pass.\n```\n\n```bash\n$ bazel run requirements.update\nINFO: Analyzed target //app:requirements.update (15 packages loaded, 988 targets configured).\nINFO: Found 1 target...\nTarget //app:requirements.update up-to-date:\n  bazel-bin/app/requirements.update\nINFO: Elapsed time: 0.541s, Critical Path: 0.38s\nINFO: 5 processes: 5 internal.\nINFO: Build completed successfully, 5 total actions\nINFO: Running command line: bazel-bin/app/requirements.update '--src=_main/app/requirements.txt' _main/app/requirements_lock.txt //app:requirements.update '--resolver=backtracking' --allow-unsafe --generate-hashes\nUpdating app/requirements_lock.txt\n```\n\n```bash\n$ bazel run //app:main --ui_event_filters=-INFO --noshow_progress --show_result=0\n\nThe Python package says, 'Hi!'\n```\n\u003c!-- docs:end --\u003e\n\n## License\n\nSee [LICENSE.md](LICENSE.md) (MIT)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuildkite%2Fbazel-python-package-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuildkite%2Fbazel-python-package-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuildkite%2Fbazel-python-package-example/lists"}