From 215dd29abe7514bddd7e18e2156f42db67d09be4 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 5 Jan 2026 00:07:52 +0000 Subject: [PATCH] Fix RTD version by importing from package - Update docs/conf.py to dynamically import version from diff_diff.__version__ instead of hardcoding it (was showing 0.6.0 instead of 1.0.2) - Sync pyproject.toml version to 1.0.2 to match __init__.py --- docs/conf.py | 4 +++- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index e835268..68ee03a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -9,11 +9,13 @@ # Add the project root to the path for autodoc sys.path.insert(0, os.path.abspath("..")) +import diff_diff + # -- Project information ----------------------------------------------------- project = "diff-diff" copyright = "2026, diff-diff contributors" author = "diff-diff contributors" -release = "0.6.0" +release = diff_diff.__version__ # -- General configuration --------------------------------------------------- extensions = [ diff --git a/pyproject.toml b/pyproject.toml index d23b5b8..109a08a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "diff-diff" -version = "1.0.0" +version = "1.0.2" description = "A library for Difference-in-Differences causal inference analysis" readme = "README.md" license = "MIT"