Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add a datasets-only mode to `policyengine bundle install` (inverse of --no-datasets)

クローズ
#452 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
58/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
python
領域
cli, data

調査の方向性

policyengine bundle install の実装から始め、既存の --no-datasets オプションとレシート書き込みのフローを追跡します。データセット専用インターフェースを定義し、Python パッケージをインストールまたは変更せずに、選択した国のデータセットとバンドルレシートが --data-dir に書き込まれることを確認します。

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

説明

Motivation

policyengine bundle install currently couples two responsibilities: installing the bundle's package scaffold and downloading certified datasets (+ writing the bundle receipt). The CLI offers --no-datasets (packages only) but no inverse — there is no way to obtain just the certified datasets and receipt for a bundle without also having the bundle installer manage packages.

In PolicyEngine/policyengine-api-v2 we are moving the simulation service's Modal images to canonical uv-lockfile installs (PolicyEngine/policyengine-api-v2#609): uv sync --frozen against a committed uv.lock should own all Python packages in the image, so that image environments are byte-identical to the CI-tested environment and can only change through a relock. The bundle's model-package pins are already mirrored into that project's pyproject.toml/uv.lock by automation, so uv can install them — but the bundle install step must still run for the datasets and receipt, and today that drags its package installer along with it. As a bridge we currently run bundle install --venv /.uv/.venv so both installers at least share one environment.

Request

A datasets-only mode, e.g.:

policyengine bundle install <version> --no-packages --data-dir /opt/policyengine/data --yes
# or a dedicated subcommand:
policyengine bundle fetch-data <version> --data-dir /opt/policyengine/data --yes

Behavior: download/verify the bundle's certified datasets for the selected countries into --data-dir and write the bundle receipt, without installing or modifying any Python packages. Symmetric with the existing --no-datasets.

With that available, consumers who manage packages via uv (or any other resolver) can keep the bundle as the source of truth for certified data while their lockfile is the sole source of truth for packages.

主要言語
Python
スター
8
フォーク
10
平均マージ
12時間 26分
マージ済み PR(30日)
22

環境構築

はじめの一歩

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

PolicyEngine/policyengine.py のほかの issue

PolicyEngine/policyengine.py の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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