bazel-contrib / bazel-contrib/rules_python

Complete working example using a package from pypi

オープン
#1,741 コメント 8 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Starlark
スター
688
フォーク
721
平均マージ
15時間 7分
マージ済み PR(30日)
76

説明

# 🐞 bug report

### Description

I'm trying to create a project that uses restructured text and I want to use the
rstfmt package. I can install this manually on windows but I thought I'd try to
use bazel to make this easier for future users.

I tried following the [pip_parse](https://github.com/bazelbuild/rules_python/tree/main/examples/pip_parse) examples but it's not complete. No python
interpreter is specified and I can't figure out how to make it work. Can we add
a complete, working example? If specific versions of bazel is required please
specify as a comment in the example.

## 🌍 Your Environment

**Operating System:**

  

Window 10

**Output of `bazel version`:**

  

bazel version
Bazelisk version: v1.19.0
Build label: 7.0.2
Build target: @@//src/main/java/com/google/devtools/build/lib/bazel:BazelServer
Build time: Thu Jan 25 16:15:43 2024 (1706199343)
Build timestamp: 1706199343
Build timestamp as int: 1706199343

**Rules_python version:**

  

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "rules_python",
integrity = "sha256-1x0sZ+C86YbhxadzG0aTImhnxFv+C3xeAGciilNvxYA=",
strip_prefix = "rules_python-0.29.0",
url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/0.29.0.tar.gz",
)

**Anything else relevant?**

I'm invoking bazel in a user mode power shell.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start with the linked pip_parse examples and the rules_python 0.29.0 setup shown in the report; reproduce the rstfmt installation with Bazel 7.0.2 on Windows. Document a complete runnable example, including Python interpreter selection and any required Bazel version, and verify it from user-mode PowerShell.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
build-system, documentation
issue の種類
ドキュメント
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。