diff --git a/README.md b/README.md index 0323f5b..7253f36 100644 --- a/README.md +++ b/README.md @@ -145,6 +145,12 @@ training. Keep each algorithm's data-access and cluster approval rules in its ow ## Changes +### 0.4.0a7 (2026-11-24) + +- `execution=slurm` accepts a released, non-editable installed distribution of the algorithm (e.g. installed from + PyPI) as well as a clean committed checkout. The plan records the distribution's name and version, and each SLURM + worker checks that the same version is still installed before running its stage. + ### 0.4.0a6 (2026-11-24) - Add temporal-leakage conformance (`conformance/temporal.py`): `test_end_to_end` reruns the lifecycle with every diff --git a/RELEASING.md b/RELEASING.md index 7547112..8976e43 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -38,7 +38,7 @@ and [publishing action](https://docs.pypi.org/trusted-publishers/using-a-publish ## 2. Release the shared package first -Current candidate: **0.4.0a6**. Run the following in Bash/WSL with Git, GitHub CLI and uv installed. +Current candidate: **0.4.0a7**. Run the following in Bash/WSL with Git, GitHub CLI and uv installed. Use the reviewed `main` commit, and wait for its CI checks before tagging. Do not move or reuse a published release tag/version; increment `project.version` for a replacement. @@ -53,11 +53,11 @@ uv run ruff format --check . uv run pytest -q uv build uvx --from 'twine>=6' twine check --strict dist/* -git tag v0.4.0a6 -git push origin v0.4.0a6 +git tag v0.4.0a7 +git push origin v0.4.0a7 gh workflow run publish.yml --repo McDermottHealthAI/meds-algorithm \ - --ref v0.4.0a6 -f index=testpypi + --ref v0.4.0a7 -f index=testpypi gh run list --repo McDermottHealthAI/meds-algorithm --workflow publish.yml --limit 5 # Select the run created above and watch it: gh run watch RUN_ID --repo McDermottHealthAI/meds-algorithm --exit-status @@ -76,7 +76,7 @@ check_env=$(mktemp -d) uv venv "$check_env" uv pip install --python "$check_env/bin/python" 'pyyaml>=6' uv pip install --python "$check_env/bin/python" --no-deps \ - --index-url https://test.pypi.org/simple/ 'meds-algorithm==0.4.0a6' + --index-url https://test.pypi.org/simple/ 'meds-algorithm==0.4.0a7' "$check_env/bin/python" -I tests/wheel_smoke.py uv pip check --python "$check_env/bin/python" ``` @@ -85,11 +85,11 @@ After the test release is verified, publish the same tag to PyPI and approve its ```bash gh workflow run publish.yml --repo McDermottHealthAI/meds-algorithm \ - --ref v0.4.0a6 -f index=pypi + --ref v0.4.0a7 -f index=pypi # Find and watch the new run as above. After it succeeds: pypi_env=$(mktemp -d) uv venv "$pypi_env" -uv pip install --python "$pypi_env/bin/python" 'meds-algorithm==0.4.0a6' +uv pip install --python "$pypi_env/bin/python" 'meds-algorithm==0.4.0a7' "$pypi_env/bin/python" -I tests/wheel_smoke.py uv pip check --python "$pypi_env/bin/python" ``` @@ -99,7 +99,7 @@ See the official [TestPyPI guide](https://packaging.python.org/en/latest/guides/ ## 3. Cut over and release the template -Only after `meds-algorithm==0.4.0a6` installs from PyPI, follow the +Only after `meds-algorithm==0.4.0a7` installs from PyPI, follow the [template release guide](https://github.com/McDermottHealthAI/MEDS_algorithm_template/blob/main/RELEASING.md). It switches the development and generated dependencies from the Git pin to the released package, updates the lockfile/docs, and publishes the generator at **0.4.0a2** with tag **v0.4.0a2**. diff --git a/docs/core-package.md b/docs/core-package.md index 9d4d271..eef20b8 100644 --- a/docs/core-package.md +++ b/docs/core-package.md @@ -1,7 +1,7 @@ # Shared core package -The core lives in its own [repository](https://github.com/McDermottHealthAI/meds-algorithm), pinned by the template to PyPI version `0.4.0a6`. -See its [layout and usage](https://github.com/McDermottHealthAI/meds-algorithm/blob/v0.4.0a6/README.md) for its artifact, runtime, task, evaluation, integration and conformance APIs. +The core lives in its own [repository](https://github.com/McDermottHealthAI/meds-algorithm), pinned by the template to PyPI version `0.4.0a7`. +See its [layout and usage](https://github.com/McDermottHealthAI/meds-algorithm/blob/v0.4.0a7/README.md) for its artifact, runtime, task, evaluation, integration and conformance APIs. The [specification](reference/spec.md) and [architecture and UML](reference/architecture.md) are rendered directly from this core checkout, the same sources included in its distributions. The `latest` documentation follows core `main`; generated algorithms use their pinned installed release. diff --git a/pyproject.toml b/pyproject.toml index d1a6b52..d0caa62 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "meds-algorithm" -version = "0.4.0a6" +version = "0.4.0a7" description = "Shared MEDS algorithm contracts and conformance boundaries." readme = "README.md" license = "MIT" diff --git a/uv.lock b/uv.lock index 3178e06..d4cba6a 100644 --- a/uv.lock +++ b/uv.lock @@ -438,7 +438,7 @@ wheels = [ [[package]] name = "meds-algorithm" -version = "0.4.0a6" +version = "0.4.0a7" source = { editable = "." } dependencies = [ { name = "pyyaml" },