Skip to content

docs: unify quick-start examples and fix stale strings#10

Open
speckhard wants to merge 2 commits intoLeMaterial:mainfrom
speckhard:fix/docs-consistency
Open

docs: unify quick-start examples and fix stale strings#10
speckhard wants to merge 2 commits intoLeMaterial:mainfrom
speckhard:fix/docs-consistency

Conversation

@speckhard
Copy link
Copy Markdown

@speckhard speckhard commented Apr 26, 2026

Summary

  • README install command now references the correct PyPI name (atompack-db) and notes the package imports as atompack.
  • Remove a dead link to a release blog post that has no source doc in the repo.
  • Standardize the three Quick Start snippets (top-level README, atompack-py/README, init.py docstring) on Molecule.from_arrays(...) + Database(path, overwrite=True) so examples run cleanly when invoked twice (the previous form raised FileExistsError on the second run because overwrite defaults to False).
  • docs/source/conf.py release bumped to 0.2.1 to match the package version.
  • Stale "PyO3 0.22" comment in atompack-py/src/lib.rs updated to 0.26.

A second commit also unifies the __init__.pyi stub examples (those docstrings are consumed by IDEs and Sphinx autoapi).

Test plan

  • README renders correctly on GitHub
  • make docs builds without warnings
  • maturin develop --release builds clean, full pytest suite green:
$ uv run --extra dev --locked --with "maturin>=1.4,<2.0" maturin develop --release
   Compiling atompack-py v0.2.1
    Finished `release` profile [optimized] target(s) in 5.52s
🛠 Installed atompack-db-0.2.1

$ uv run --extra dev --locked pytest tests/ -q
123 passed, 6 skipped in 5.75s

Confirms the comment-only Rust edit doesn't break the build and no test regressed on the docs changes.

- README install command now references the correct PyPI name
  (atompack-db) and notes the package imports as `atompack`.
- Remove dead link to a release blog post that has no source doc.
- Standardize the three Quick Start snippets (top README,
  atompack-py/README, __init__.py docstring) on the canonical
  Molecule.from_arrays(...) + Database(path, overwrite=True) form so
  examples run cleanly when invoked twice.
- docs/source/conf.py release bumped to 0.2.1 to match package version.
- Stale "PyO3 0.22" comment in atompack-py/src/lib.rs updated to 0.26.
Independent review caught that the type-stub docstrings still showed the
pre-PR forms. Bring them into the same shape as the rest of the Quick
Start examples.
@speckhard speckhard marked this pull request as ready for review April 30, 2026 15:15
@speckhard speckhard changed the title [DRAFT] docs: unify quick-start examples and fix stale strings docs: unify quick-start examples and fix stale strings Apr 30, 2026
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