Proper versioning

Aperta
#232 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
github-actions, python

Direzione di ricerca

Start by reading the repository’s existing packaging and CI configuration to see how releases and PyPI publishing currently work; the issue does not name specific files or workflows. The requested work spans release branching, changelog generation, and version updates. Done means changes to the release branch can produce an updated version, changelog, and automatic PyPI release; the issue does not specify the release trigger or versioning policy.

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

Descrizione

enhancement feature help wanted packaging

Problem

pyproject.toml hard-codes version = "1.0.0". That version is already on PyPI from the old pypi branch, and PyPI won't accept it again.

Task

  • Add setuptools-scm to [build-system].requires, pinned to an exact version.
  • Declare the version as dynamic (dynamic = ["version"]), remove version = "1.0.0", and add [tool.setuptools_scm].
  • Expose chakra.__version__ from the installed metadata: importlib.metadata.version("mlc-chakra").
  • Builds of untagged commits get a dev version locally. Those are never published.

Acceptance criteria

  • A wheel built at tag vX.Y.Z has Version: X.Y.Z in its metadata. Evidence: the Version: line from the wheel's metadata.
  • No file holds a hand-edited version. Evidence: PR link.
  • python -c "import chakra; print(chakra.__version__)" prints the installed version. Evidence: CI log.

Depends on

The rename (above), and the protobuf pin (#195), which also edits [build-system].requires.

Lingua principale
Python
Stelle
204
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.