Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix(release): set towncrier name to skip package import (#4071)

LearningCircuitda0d18ed256d
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index efd187145e..3888fe5a99 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -382,9 +382,10 @@ jobs:
- name: Sparse checkout release sources
# changelog.d/ + pyproject.toml are needed by the "Render changelog"
# step below (towncrier reads its [tool.towncrier] config from
- # pyproject and consumes fragments from changelog.d/). The --version
- # CLI flag bypasses towncrier's package-import path, so we don't need
- # src/ or pdm.lock here.
+ # pyproject and consumes fragments from changelog.d/). src/ is
+ # deliberately not checked out: the [tool.towncrier] `name` field
+ # in pyproject.toml lets towncrier skip its package-import path,
+ # and --version on the CLI bypasses package-based version lookup.
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
sparse-checkout: |
diff --git a/pyproject.toml b/pyproject.toml
index 5bcd8147eb..c62bc34bb0 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -417,8 +417,13 @@ ignore_errors = true
# catches dep bumps, CI churn, etc., so changelog.d/ fragments are just
# for user-visible changes worth highlighting.
[tool.towncrier]
-package = "local_deep_research"
-package_dir = "src"
+# `name` is set explicitly so towncrier never tries to import the
+# `local_deep_research` package. The release workflow runs towncrier
+# in a sparse checkout that omits src/, so an import-based lookup
+# would fail with ModuleNotFoundError. `package`/`package_dir` are
+# intentionally not set — with `name` provided and `--version` always
+# passed on the CLI, towncrier has no remaining reason to import.
+name = "local-deep-research"
# single_file=false + a {version}-templated filename makes towncrier
# write a fresh per-release file each build instead of appending to one
# growing CHANGELOG. Matches the pre-existing