Remove gRPC code generation

Aperta
#252 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
35/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
build-system

Direzione di ricerca

The gRPC generation is wired into [build-system].requires in pyproject.toml, the build_grpc command in setup.py, and the [build_grpc] section in setup.cfg; start by reading those three. Replace them with a python -m grpc_tools.protoc --python_out --pyi_out step, keeping grpcio-tools. Done when a wheel listing shows *_pb2.py and *_pb2.pyi but no *_pb2_grpc.py, and CI installs from source and sdist. This depends on #195 and #230, so check whether those have merged first.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Problem

No .proto defines a service, and nothing in src/ or tests/ imports *_pb2_grpc. Yet the 1.0.0 wheel ships et_def_pb2_grpc.py, and every build runs setuptools-grpc.

Task

  • Remove setuptools-grpc from [build-system].requires.
  • Remove the build_grpc command in setup.py and [build_grpc] in setup.cfg.
  • Generate code with python -m grpc_tools.protoc --python_out --pyi_out only. Keep grpcio-tools, pinned as in #195, because it bundles protoc.
  • Keep the import rewrite from #230 (Goal 3), and run it on the files the new step generates.

Acceptance criteria

  • The wheel contains *_pb2.py and *_pb2.pyi and no *_pb2_grpc.py. Evidence: wheel file listing.
  • Installing from source and from the sdist still works. Evidence: CI run.

Depends on

#195 (Goal 1; both edit [build-system].requires) and #230 (Goal 3).

Lingua principale
Python
Stelle
201
Fork
87
Merge medio
6g 43m
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mlcommons/chakra

Tutte le issue di mlcommons/chakra

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.