Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ contract-first MEDS algorithm repositories.

Shared contracts and the canonical specification live in
[`meds-algorithm`](https://github.com/McDermottHealthAI/meds-algorithm). Generated repositories pin its PyPI release
`meds-algorithm==0.4.0a6` for reproducible installations.
`meds-algorithm==0.4.0a7` for reproducible installations.
The core owns the reusable infrastructure and conformance helpers; generated repositories import it directly.

The template fixes the external contract—MEDS input, six algorithm profiles and standard arguments, typed
Expand All @@ -38,7 +38,7 @@ GitHub repository. It needs Git and network access; it does not bundle a second
Install the pinned generator with:

```bash
uvx --from 'meds-algorithm-template==0.4.0a3' meds-algorithm-template ../my-meds-algorithm --trust
uvx --from 'meds-algorithm-template==0.4.0a4' meds-algorithm-template ../my-meds-algorithm --trust
```

Use `--defaults --data-file answers.yaml` for unattended generation. The answers file records the
Expand Down Expand Up @@ -211,11 +211,16 @@ repositories. Files under `template/` are the generated payload; root tests
validate that payload without imposing a algorithm implementation.

Profile selection and the distinct version 4 step names are described in [profiles](https://meds-algorithm.readthedocs.io/en/latest/profiles/).
See the [software contract](https://github.com/McDermottHealthAI/meds-algorithm/blob/v0.4.0a6/src/meds_algorithm/CONTRACT.md), [migration guide](https://meds-algorithm.readthedocs.io/en/latest/migration-v4/),
See the [software contract](https://github.com/McDermottHealthAI/meds-algorithm/blob/v0.4.0a7/src/meds_algorithm/CONTRACT.md), [migration guide](https://meds-algorithm.readthedocs.io/en/latest/migration-v4/),
and [shared-package assessment](https://meds-algorithm.readthedocs.io/en/latest/shared-package-assessment/).

## Changes

### 0.4.0a4 (2026-11-24)

- Generate projects using `meds-algorithm==0.4.0a7`: `execution=slurm` also runs an algorithm installed from PyPI
(a released, non-editable distribution), not only a clean Git checkout.

### 0.4.0a3 (2026-11-24)

- Generate projects using `meds-algorithm==0.4.0a6`, the first release with the temporal-leakage conformance
Expand Down
26 changes: 13 additions & 13 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ and hosting are managed entirely by the core repository and Read the Docs.

## 1. Switch generated projects to the published shared package

The generator pins the published `meds-algorithm==0.4.0a6` release (`0.4.0a2` pinned `0.4.0a5`). For future updates,
The generator pins the published `meds-algorithm==0.4.0a7` release (`0.4.0a2` pinned `0.4.0a5`). For future updates,
release the shared package first, then keep all dependency pins and install examples aligned:

| File | Change |
|---|---|
| `pyproject.toml`, development dependencies | Pin the shared conformance dependency to `meds-algorithm[conformance,orchestration]==0.4.0a6` |
| `template/pyproject.toml.jinja`, project dependencies | Use `meds-algorithm[data]==0.4.0a6` |
| `template/pyproject.toml.jinja`, test extra | Use `meds-algorithm[conformance]==0.4.0a6` |
| `template/pyproject.toml.jinja`, orchestration extra | Use `meds-algorithm[orchestration]==0.4.0a6` |
| `README.md` | Document the shared PyPI version and update the generator install example to `0.4.0a3` |
| `pyproject.toml`, development dependencies | Pin the shared conformance dependency to `meds-algorithm[conformance,orchestration]==0.4.0a7` |
| `template/pyproject.toml.jinja`, project dependencies | Use `meds-algorithm[data]==0.4.0a7` |
| `template/pyproject.toml.jinja`, test extra | Use `meds-algorithm[conformance]==0.4.0a7` |
| `template/pyproject.toml.jinja`, orchestration extra | Use `meds-algorithm[orchestration]==0.4.0a7` |
| `README.md` | Document the shared PyPI version and update the generator install example to `0.4.0a4` |
| `uv.lock` | Regenerate with `uv lock` |
| `template/pyproject.toml.jinja`, Hatch metadata | Remove `allow-direct-references` after replacing all Git requirements |

Expand Down Expand Up @@ -61,15 +61,15 @@ update URL without creating a real release tag or fetching a nonexistent release

## 2. Tag and rehearse on TestPyPI

Candidate generator version: **0.4.0a3**. Once the release changes are merged and CI passes:
Candidate generator version: **0.4.0a4**. Once the release changes are merged and CI passes:

```bash
git switch main
git pull --ff-only
git tag v0.4.0a3
git push origin v0.4.0a3
git tag v0.4.0a4
git push origin v0.4.0a4
gh workflow run publish.yml --repo McDermottHealthAI/MEDS_algorithm_template \
--ref v0.4.0a3 -f index=testpypi
--ref v0.4.0a4 -f index=testpypi
gh run list --repo McDermottHealthAI/MEDS_algorithm_template --workflow publish.yml --limit 5
gh run watch RUN_ID --repo McDermottHealthAI/MEDS_algorithm_template --exit-status
```
Expand All @@ -85,7 +85,7 @@ check_env=$(mktemp -d)
uv venv "$check_env"
uv pip install --python "$check_env/bin/python" 'copier>=9.17.1,<10' 'pyyaml>=6'
uv pip install --python "$check_env/bin/python" --no-deps \
--index-url https://test.pypi.org/simple/ 'meds-algorithm-template==0.4.0a3'
--index-url https://test.pypi.org/simple/ 'meds-algorithm-template==0.4.0a4'
"$check_env/bin/meds-algorithm-template" --version
"$check_env/bin/meds-algorithm-template" "$check_env/generated" --defaults --trust
uv pip install --python "$check_env/bin/python" "$check_env/generated[test]"
Expand All @@ -102,12 +102,12 @@ After the TestPyPI rehearsal succeeds:

```bash
gh workflow run publish.yml --repo McDermottHealthAI/MEDS_algorithm_template \
--ref v0.4.0a3 -f index=pypi
--ref v0.4.0a4 -f index=pypi
# Find and watch the new run, then approve the pypi environment deployment.
# After it succeeds, verify in another clean environment:
pypi_env=$(mktemp -d)
uv venv "$pypi_env"
uv pip install --python "$pypi_env/bin/python" 'meds-algorithm-template==0.4.0a3'
uv pip install --python "$pypi_env/bin/python" 'meds-algorithm-template==0.4.0a4'
"$pypi_env/bin/meds-algorithm-template" "$pypi_env/generated" --defaults --trust
uv pip install --python "$pypi_env/bin/python" "$pypi_env/generated[test]"
"$pypi_env/bin/minimal-meds-algorithm" profiles
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "meds-algorithm-template"
version = "0.4.0a3"
version = "0.4.0a4"
description = "A minimal, contract-first Copier template for MEDS algorithm repositories."
readme = "README.md"
license = "MIT"
Expand All @@ -23,7 +23,7 @@ Documentation = "https://meds-algorithm.readthedocs.io/en/latest/"
packages = ["src/meds_algorithm_template"]

[dependency-groups]
dev = ["meds-algorithm[conformance,orchestration]==0.4.0a6", "polars>=1", "pyarrow>=15", "pytest>=8", "pyyaml>=6", "ruff"]
dev = ["meds-algorithm[conformance,orchestration]==0.4.0a7", "polars>=1", "pyarrow>=15", "pytest>=8", "pyyaml>=6", "ruff"]

[tool.pytest.ini_options]
testpaths = ["tests"]
Expand Down
6 changes: 3 additions & 3 deletions template/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ authors = [{name = {{ author_name | tojson }}, email = {{ author_email | tojson
license-files = ["LICENSE*"]
{% endif %}
requires-python = ">=3.11"
dependencies = ["pyyaml>=6", "meds-algorithm[data]==0.4.0a6"]
dependencies = ["pyyaml>=6", "meds-algorithm[data]==0.4.0a7"]

[project.optional-dependencies]
orchestration = ["meds-algorithm[orchestration]==0.4.0a6"]
orchestration = ["meds-algorithm[orchestration]==0.4.0a7"]
# meds-evaluation is pinned to the version MEDS-DEV evaluates predictions with.
test = ["meds-algorithm[conformance]==0.4.0a6"]
test = ["meds-algorithm[conformance]==0.4.0a7"]

{% if repository_url %}[project.urls]
Repository = {{ repository_url | tojson }}
Expand Down
10 changes: 5 additions & 5 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading