Proper versioning

オープン
#232 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github-actions, python

調査の方向性

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.

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

説明

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.

主要言語
Python
スター
204
フォーク
87
平均マージ
7日 4時間
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

mlcommons/chakra のほかの issue

mlcommons/chakra の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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