Skip to content

Commit 8c27590

Browse files
authored
chore: prepare 0.26.1 (#1840)
* bump version, update changelog * add dependabot; security.md; SLSA provenance * security.md * docs: add security md via GH; update changelog and readme.
1 parent 281307a commit 8c27590

5 files changed

Lines changed: 48 additions & 4 deletions

File tree

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/workflows/publish.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ jobs:
6666
runs-on: ubuntu-latest
6767

6868
permissions:
69-
contents: write # IMPORTANT: mandatory for making GitHub Releases
70-
id-token: write # IMPORTANT: mandatory for sigstore
69+
contents: write # mandatory for making GitHub Releases
70+
id-token: write # mandatory for sigstore
71+
attestations: write # mandatory for SLSA provenance
7172

7273
steps:
7374
- name: Download all the dists
@@ -81,6 +82,10 @@ jobs:
8182
inputs: >-
8283
./dist/*.tar.gz
8384
./dist/*.whl
85+
- name: Attest build provenance
86+
uses: actions/attest-build-provenance@a2bbfa25375fe432b6a289bc6b6cd05ecd0c4c32 # v4.1.0
87+
with:
88+
subject-path: "dist/*.tar.gz,dist/*.whl"
8489
- name: Ensure GitHub Release exists (no-op if already exists)
8590
env:
8691
GITHUB_TOKEN: ${{ github.token }}
@@ -100,3 +105,4 @@ jobs:
100105
gh release upload
101106
"$TAG_NAME" dist/**
102107
--repo '${{ github.repository }}'
108+
--clobber

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
# Changelog
22

3+
## v0.26.1
4+
5+
### ⚠️ Breaking Changes
6+
7+
* **Make PyMC and Pyro optional dependencies** ([#1835](https://github.com/sbi-dev/sbi/issues/1835)): `pip install sbi` no longer installs `pymc` or `pyro-ppl`. Users who need Pyro or PyMC MCMC samplers should install extras:
8+
* `pip install "sbi[pyro]"` for Pyro samplers (`hmc_pyro`, `nuts_pyro`)
9+
* `pip install "sbi[pymc]"` for PyMC samplers (`slice_pymc`, `hmc_pymc`, `nuts_pymc`)
10+
* `pip install "sbi[all]"` for both
11+
* Using a Pyro/PyMC method without the dependency installed raises a clear `ImportError` with install instructions.
12+
13+
### 🐛 Bug Fixes
14+
15+
* **Fix TARP z-scoring bug** ([#1832](https://github.com/sbi-dev/sbi/issues/1832)): Reference points are now z-scored alongside `thetas` and `posterior_samples` when `z_score_theta=True`, fixing incorrect distance calculations that masked bias detection.
16+
* **Fix broken `biased_toy_gaussian` test helper**: Rewrote to create actual location bias (posterior mean shifted from truth) instead of the previous NaN-producing formula.
17+
18+
### 📖 Documentation
19+
20+
* Streamlined README installation section, recommend `uv` as default.
21+
* Added optional dependency install instructions to README, installation guide, and relevant tutorials.
22+
23+
### 🔧 Improvements
24+
25+
* **Change default `num_bins` in TARP**: `run_tarp` and `_run_tarp` now default to `num_bins=None` (auto-scales to `num_sims // 10`) instead of the hardcoded `30`, improving KS test power for larger sample sizes.
26+
27+
### 🔒 Security
28+
29+
* Added SLSA build provenance attestations to the release workflow.
30+
* Added Dependabot for automated GitHub Actions version updates.
31+
* Added `SECURITY.md` with vulnerability disclosure policy.
32+
* Fixed release uploads with `--clobber` flag.
33+
334
## v0.26.0
435

536
### ✨ Highlights

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ We welcome any feedback on how `sbi` is working for your inference problems (see
186186
reports, pull requests, and other feedback (see
187187
[contribute](https://sbi-dev.github.io/sbi/latest/contribute/)). We wish to maintain a
188188
positive and respectful community; please read our [Code of
189-
Conduct](CODE_OF_CONDUCT.md).
189+
Conduct](CODE_OF_CONDUCT.md). To report a security vulnerability, please see our
190+
[Security Policy](SECURITY.md).
190191

191192
## Acknowledgments
192193

sbi/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is part of sbi, a toolkit for simulation-based inference. sbi is licensed
22
# under the Apache License Version 2.0, see <https://www.apache.org/licenses/>
33

4-
VERSION = (0, 26, 0)
4+
VERSION = (0, 26, 1)
55

66
__version__ = ".".join(map(str, VERSION))

0 commit comments

Comments
 (0)