Skip to content

Fetch citation information with zenodo-bibtex-exporter - #575

Draft
schroedtert wants to merge 1 commit into
PedestrianDynamics:mainfrom
schroedtert:bibtex-export-tool
Draft

schroedtert wants to merge 1 commit into
PedestrianDynamics:mainfrom
schroedtert:bibtex-export-tool

Conversation

@schroedtert

Copy link
Copy Markdown
Collaborator

Replace the hand rolled Zenodo lookup in scripts/generate_bibtex.py with the zenodo-bibtex-exporter tool, which resolves the record by concept id instead of searching for the project name.

The search based lookup read a single page of results, and Zenodo caps that at 25 records for anonymous requests. PedPy has 21 published versions, so it was close to the point where older versions stop being findable and the citation block would quietly vanish from documentation built off a release branch.

Failure handling changes too. The previous script warned and carried on with an empty citation, which produced a page that looked finished but had no entry in it. Development builds hit that on every build, since their version suffix matches no release. They now fall back to the most recent release, and an unreachable Zenodo degrades to a link rather than to nothing.

Also corrects the trailing example, which was marked as bash while containing Python.

The dependency is pinned to a branch in docs/requirements.txt until the tool is released to PyPI.

Replace the hand rolled Zenodo lookup in scripts/generate_bibtex.py with
the zenodo-bibtex-exporter tool, which resolves the record by concept id
instead of searching for the project name.

The search based lookup read a single page of results, and Zenodo caps
that at 25 records for anonymous requests. PedPy has 21 published
versions, so it was close to the point where older versions stop being
findable and the citation block would quietly vanish from documentation
built off a release branch.

Failure handling changes too. The previous script warned and carried on
with an empty citation, which produced a page that looked finished but
had no entry in it. Development builds hit that on every build, since
their version suffix matches no release. They now fall back to the most
recent release, and an unreachable Zenodo degrades to a link rather than
to nothing.

Also corrects the trailing example, which was marked as bash while
containing Python.

The dependency is pinned to a branch in docs/requirements.txt until the
tool is released to PyPI.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Sep 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.01%. Comparing base (5ca5c85) to head (49809ae).

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant