Skip to content

Commit f89a396

Browse files
chore(release): bump to v1.15.3 — doc-only fix for PyPI hero banner
The v1.15.2 PyPI project page rendered the hero banner as a broken image because both READMEs pointed at the repo-relative path docs/logo/readme-1.png, which GitHub resolves correctly but PyPI's long-description renderer cannot. v1.15.3 rewrites the <img> tag in README.md and README_CN.md to the absolute raw GitHub URL so the banner loads on PyPI / TestPyPI / any off-GitHub README renderer. No code changes. All shipped module files match v1.15.2 exactly; only the long-description metadata baked into the wheel + sdist regenerates. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 34981eb commit f89a396

8 files changed

Lines changed: 62 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,24 @@ All notable changes to StatsPAI will be documented in this file.
44

55
## [Unreleased]
66

7+
## [1.15.3] — 2026-05-17
8+
9+
### Fixed — PyPI long-description hero banner
10+
11+
- The v1.15.2 PyPI project page rendered the hero banner as a broken
12+
image. Root cause: [`README.md`](README.md) and
13+
[`README_CN.md`](README_CN.md) referenced
14+
`docs/logo/readme-1.png` with a **repo-relative** path, which GitHub
15+
resolves against the rendered tree but PyPI's long-description
16+
renderer has no base URL for and therefore leaves as a 404. Both
17+
READMEs now point at the absolute raw GitHub URL
18+
`https://raw.githubusercontent.com/brycewang-stanford/StatsPAI/main/docs/logo/readme-1.png`
19+
so the banner loads on PyPI / TestPyPI / Open Source Insights /
20+
any other off-GitHub README renderer.
21+
- **No code changes.** All shipped artifacts have the same module
22+
hashes as v1.15.2 except for the regenerated long-description
23+
metadata baked into the wheel + sdist.
24+
725
## [1.15.2] — 2026-05-17
826

927
### Headline

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ authors:
1616
given-names: "Biaoyue"
1717
affiliation: "Stanford REAP, Stanford University"
1818
email: "brycew6m@stanford.edu"
19-
version: "1.15.2"
19+
version: "1.15.3"
2020
date-released: "2026-05-17"
2121
license: MIT
2222
# Zenodo *concept* DOI — always resolves to the latest archived version.

MIGRATION.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@ Internal version-to-version migrations are at the top; the long-form
77

88
<a id="sp-rdrobust-bwselect-cct-r-parity-opt-in"></a>
99

10+
## v1.15.2 → v1.15.3 — doc-only PyPI hero-banner fix
11+
12+
**No code changes, no migration step.** The v1.15.2 PyPI project page
13+
rendered the hero banner as a broken image because the `<img>` tag in
14+
`README.md` / `README_CN.md` used a repo-relative path
15+
(`docs/logo/readme-1.png`) that PyPI's long-description renderer
16+
cannot resolve. v1.15.3 swaps the path for the absolute raw GitHub
17+
URL so the banner loads on PyPI / TestPyPI / off-GitHub mirrors.
18+
Module hashes match v1.15.2 bit-for-bit; only the long-description
19+
metadata baked into the wheel + sdist changes.
20+
21+
---
22+
1023
## v1.15.1 → v1.15.2 — strict-JSON MCP wire, dual-track replicate, packaging
1124

1225
**No estimator numerical path changes.** Three classes of consumers

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[English](https://github.com/brycewang-stanford/statspai/blob/main/README.md) | [中文](https://github.com/brycewang-stanford/statspai/blob/main/README_CN.md)
22

33
<p align="center">
4-
<img src="docs/logo/readme-1.png" alt="StatsPAI — Agent-Native Causal Inference for Python" width="780">
4+
<img src="https://raw.githubusercontent.com/brycewang-stanford/StatsPAI/main/docs/logo/readme-1.png" alt="StatsPAI — Agent-Native Causal Inference for Python" width="780">
55
</p>
66

77
# StatsPAI: The Agent-Native Causal Inference & Econometrics Toolkit for Python
@@ -128,6 +128,18 @@ StatsPAI's focus is **causal inference** — and on this axis we aim to be the m
128128

129129
---
130130

131+
**📦 v1.15.3 (2026-05-17) — Doc-only patch: PyPI hero banner image fix**
132+
133+
The v1.15.2 PyPI project page rendered the hero banner as a broken
134+
image because both READMEs pointed at the repo-relative path
135+
`docs/logo/readme-1.png`, which GitHub resolves correctly but PyPI's
136+
long-description renderer cannot. v1.15.3 rewrites the `<img>` tag in
137+
[`README.md`](README.md) and [`README_CN.md`](README_CN.md) to the
138+
absolute raw GitHub URL so the banner loads on PyPI / TestPyPI / any
139+
off-GitHub README renderer. **No code changes** — all shipped module
140+
files match v1.15.2 exactly; only the long-description metadata baked
141+
into the wheel + sdist regenerates.
142+
131143
**📦 v1.15.2 (2026-05-17) — Strict-JSON MCP wire + dual-track replicate guides + release-packaging hardening**
132144

133145
Patch release on top of v1.15.1 with **no estimator numerical change**.
@@ -1363,7 +1375,7 @@ resolves to the latest version):
13631375
author = {Wang, Biaoyue},
13641376
title = {StatsPAI: The Agent-Native Causal Inference \& Econometrics Toolkit for Python},
13651377
year = {2026},
1366-
version = {1.15.2},
1378+
version = {1.15.3},
13671379
doi = {10.5281/zenodo.19933900},
13681380
url = {https://doi.org/10.5281/zenodo.19933900},
13691381
license = {MIT},

README_CN.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[English](https://github.com/brycewang-stanford/statspai/blob/main/README.md) | [中文](https://github.com/brycewang-stanford/statspai/blob/main/README_CN.md)
22

33
<p align="center">
4-
<img src="docs/logo/readme-1.png" alt="StatsPAI — 面向 Agent 的 Python 因果推断工具包" width="780">
4+
<img src="https://raw.githubusercontent.com/brycewang-stanford/StatsPAI/main/docs/logo/readme-1.png" alt="StatsPAI — 面向 Agent 的 Python 因果推断工具包" width="780">
55
</p>
66

77
# StatsPAI:面向 Agent 的因果推断与计量经济学 Python 工具包
@@ -50,6 +50,17 @@ StatsPAI 聚焦**因果推断**——在这条主线上,我们的目标是成
5050

5151
---
5252

53+
**📦 v1.15.3(2026-05-17)— 文档 patch:修复 PyPI 主页 banner 图加载失败**
54+
55+
v1.15.2 PyPI 项目主页的 hero banner 渲染成裂图,原因是两份 README
56+
里的 `<img>` 写的是仓库相对路径 `docs/logo/readme-1.png`,GitHub 能解
57+
析但 PyPI 的 long-description 渲染器没有 base URL 概念。v1.15.3 把
58+
[`README.md`](README.md)[`README_CN.md`](README_CN.md) 的图片地
59+
址改成 `raw.githubusercontent.com` 绝对 URL,PyPI / TestPyPI / 其他
60+
脱离 GitHub 的 README 渲染器都能正常加载。**代码零变化**——
61+
wheel/sdist 里所有模块文件与 v1.15.2 一致,只有 long-description
62+
元数据重新生成。
63+
5364
**📦 v1.15.2(2026-05-17)— MCP 严格 JSON + Replicate 双轨指南 + 发布打包加固**
5465

5566
v1.15.1 之上的 patch 发布,**估计器数值路径零变化**,三条独立的加固
@@ -581,7 +592,7 @@ sp.__citation__ # 与 sp.citation("bibtex") 等价
581592
author = {Wang, Biaoyue},
582593
title = {StatsPAI: The Agent-Native Causal Inference \& Econometrics Toolkit for Python},
583594
year = {2026},
584-
version = {1.15.2},
595+
version = {1.15.3},
585596
doi = {10.5281/zenodo.19933900},
586597
url = {https://doi.org/10.5281/zenodo.19933900},
587598
license = {MIT},

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ method that returns the correct BibTeX entry) and this package:
171171
title = {StatsPAI: A Unified, Agent-Native Python Toolkit for
172172
Causal Inference and Applied Econometrics},
173173
year = {2026},
174-
version = {1.15.2},
174+
version = {1.15.3},
175175
url = {https://github.com/brycewang-stanford/StatsPAI}
176176
}
177177
```

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "StatsPAI"
7-
version = "1.15.2"
7+
version = "1.15.3"
88
description = "The Agent-Native Causal Inference & Econometrics Toolkit for Python"
99
readme = "README.md"
1010
license = "MIT"

src/statspai/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
>>> sp.outreg2(result, filename="results.xlsx")
2323
"""
2424

25-
__version__ = "1.15.2"
25+
__version__ = "1.15.3"
2626
__author__ = "Biaoyue Wang"
2727
__email__ = "brycew6m@stanford.edu"
2828

0 commit comments

Comments
 (0)