Support local version identifiers
まだ誰も着手していません。
評価
調査の方向性
Start with PEP 440 local version identifiers and incremental's Version implementation, especially public() and short(). Compare the proposed local argument with the existing version behavior; done means a value such as local='lp1' produces 20.3.0+lp1 for distribution files without a subclass or downstream workaround.
索引モデルが issue の本文から書いたものです。
説明
PEP 440 defines local version identifiers which can be used when applying local patches to upstream projects. For example, in Launchpad we occasionally have to backport fixes from later releases that we can't upgrade to wholesale yet, or apply patches that haven't been integrated yet upstream; we do this by making distributions with local version identifiers that we commit to a git repository containing our dependencies.
This works fine with most Python projects, but it's awkward for ones that use incremental because incremental doesn't directly support local version identifiers: there's a Version.local, but it's just equal to Version.public. Let's say we're making a fork of Twisted 20.3.0, which has:
__version__ = Version('Twisted', 20, 3, 0)
Ideally we'd just be able to change that to something like:
__version__ = Version('Twisted', 20, 3, 0, local='lp1')
... and have that generate 20.3.0+lp1. However, since incremental doesn't support local version identifiers and since Twisted uses __version__.short(), I guess we end up doing something like this (obviously incomplete, but just for the purpose of getting distribution files with the right version number in them):
class LocalVersion(Version):
def __init__(self, *args, **kwargs):
self._local = kwargs.pop('local')
super(LocalVersion, self).__init__(*args, **kwargs)
def public(self):
public = super(LocalVersion, self).public()
if self._local:
public += '+%s' % self._local
return public
__version__ = LocalVersion('Twisted', 20, 3, 0, local='lp1')
Or alternatively I suppose that we could make src/twisted/__init__.py say:
__version__ = version.short() + '+lp1'
Either way, this seems like a lot of awkwardness just to make a temporary local backport distribution! I think incremental could usefully help to make this easier.
- 主要言語
- Python
- スター
- 144
- フォーク
- 21
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
twisted/incremental のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
twisted/incremental#209 ·
-
[24.11.0] Incorrect Version and GIT Tag for 25.11.0?対応中かも @twm が 242 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
twisted/incremental#185 · コメント 3 件 · リアクション 1 件 ·
-
enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
twisted/incremental#111 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
twisted/incremental#110 · コメント 8 件 ·
-
enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
twisted/incremental#109 · コメント 3 件 ·
twisted/incremental の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
microsoft/agent-lightning#661 ·
メンテナーはふだん 2 日以内に返信
-
area/profiles comp/cli P3 type/feature
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
NousResearch/hermes-agent#146372 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] OpenAI-compatible embedding model alias breaks embedder construction対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
[oblt-aw][autodoc] Document obs-aw-automerge contract and fix automerge doc inconsistencies対応中かも @github-actions が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
GeoSeries scale and skew tests fail with pytest 9.2.0対応中かも @jiayuasu が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信