bazel-contrib / bazel-contrib/rules_python

Complete working example using a package from pypi

Abierto
#1,741 8 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Starlark
Estrellas
688
Forks
721
Merge medio
15 h 7 min
PR fusionados (30 d)
76

Descripción

# 🐞 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.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza con los ejemplos de pip_parse enlazados y la configuración de rules_python 0.29.0 mostrada en el informe; reproduce la instalación de rstfmt con Bazel 7.0.2 en Windows. Documenta un ejemplo completo y ejecutable, incluida la selección del intérprete de Python y cualquier versión de Bazel necesaria, y verifícalo desde PowerShell en modo usuario.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
build-system, documentation
Tipo de issue
Documentación
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.