Skip to content

docs: document local packaging flow and wheel metadata - #221

Merged
mindfn merged 2 commits into
mainfrom
codex/local-package-readme
Mar 11, 2026
Merged

docs: document local packaging flow and wheel metadata#221
mindfn merged 2 commits into
mainfrom
codex/local-package-readme

Conversation

@mindfn

@mindfn mindfn commented Mar 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add a repository-level README that documents local editable installs, wheel builds, and downstream dare_framework imports
  • normalize CLI documentation to use environment-agnostic python -m pip and python -m client commands instead of hard-coded .venv/bin/... paths
  • add project.readme metadata plus custom backend support and regression coverage so built wheels expose the markdown README in package metadata

Verification

  • /Users/lang/workspace/github/Deterministic-Agent-Runtime-Engine/.venv/bin/pytest -q
  • /Users/lang/workspace/github/Deterministic-Agent-Runtime-Engine/.venv/bin/python -m pip wheel . -w /tmp/dare-local-package-readme-dist-2 --no-deps
  • verified the generated wheel metadata contains Description-Content-Type: text/markdown and the README install section

Add a repository-level README that explains local editable installs, wheel builds, and downstream imports via dare_framework.

Normalize client-facing command examples to use python -m pip/python -m client instead of hard-coded .venv paths so the docs work across environments.

Wire pyproject readme metadata into the custom PEP 517 backend and add a regression test so built wheel metadata now includes the markdown README content.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3da1c7b58b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread _local_backend.py
readme = project.get("readme")
if isinstance(readme, str):
path = _project_root() / readme
return path.read_text(encoding="utf-8"), _infer_readme_content_type(path)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Handle missing readme file when building from sdist

_metadata_text now always loads project.readme, and this line unconditionally reads README.md from disk, but build_sdist still does not include the repository root README.md in the tarball. As a result, pip wheel <generated-sdist> (or any metadata hook run from the unpacked sdist) fails with FileNotFoundError during prepare_metadata_for_build_wheel, so source-distribution installs are broken in that environment.

Useful? React with 👍 / 👎.

Include the configured project readme file in sdists so metadata hooks and wheel builds from generated source archives can still load README.md.

Tighten the local backend regression test to assert the root README is present in the sdist archive and keep the markdown metadata coverage intact.
@mindfn

mindfn commented Mar 11, 2026

Copy link
Copy Markdown
Collaborator Author

Addressed the review note about project.readme metadata breaking wheel builds from generated sdists.

Fixed in 4b5c859 on codex/local-package-readme:

  • include the configured project readme file in the sdist payload
  • keep the metadata hook reading the markdown README for wheel metadata
  • tighten the sdist regression test so root README.md presence is asserted explicitly

Verification:

  • /Users/lang/workspace/github/Deterministic-Agent-Runtime-Engine/.venv/bin/pytest -q tests/unit/test_local_backend.py -> 5 passed
  • build an sdist with _local_backend.build_sdist(...), then run python -m pip wheel <generated-sdist> --no-deps -> succeeded

Reference discussion: #221 (comment)

@mindfn

mindfn commented Mar 11, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@mindfn
mindfn merged commit ff94ad3 into main Mar 11, 2026
3 of 11 checks passed
@mindfn
mindfn deleted the codex/local-package-readme branch March 11, 2026 09:27
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