Skip to content

Point PHEP 8 readers to local usage and clarify project-file - #35

Merged
sapols merged 3 commits into
mainfrom
readme-local-usage
Nov 4, 2026
Merged

sapols merged 3 commits into
mainfrom
readme-local-usage

Conversation

@sapols

@sapols sapols commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

PHEP 8 (heliophysicsPy/standards#51) moved its step-by-step directions for running the PyHC Environment Compatibility Checker out of the PHEP and into this README, and now links readers to the checker's section here (request). This PR makes that section and the local-usage directions work for those readers. It's docs and action metadata only, with no code changes.

Changes

Clarify the project-file input description (both README Inputs tables and both action.yml files)

  • Before: "Path to pyproject.toml". That implied only pyproject.toml projects are supported.
  • After: "Path to the project directory or its pyproject.toml; only needed if the project isn't at the repository root".
  • Both actions pass project-file straight to the CLIs. The CLIs accept a project directory or its pyproject.toml, and with the default value they fall back to setup.py/setup.cfg when there's no pyproject.toml.

Point readers to local usage and fix its install step

  • Sections 1 and 2 each get one line pointing to the Local Usage section. Readers who land on section 2 from PHEP 8 used to see only the GitHub Actions workflow.
  • Local Usage used to start with pip install -e ., which only works from inside a clone of this repository. It now installs the released code directly: pip install git+https://github.com/heliophysicsPy/pyhc-actions.git@v1. Pinning @v1 gives local runs the same release that workflows using @v1 get.
  • It notes that the env compatibility check requires uv, linking uv's installation guide rather than hardcoding an install command, and says to run the checks from the package's root directory. The existing command list is unchanged.
  • A regular (non-editable) install works fully as of v1.2.0 (#32), so no editable-install caveat is needed.

Testing

Followed the new directions exactly in a fresh virtualenv, from a small package's root directory:

  • pip install git+https://github.com/heliophysicsPy/pyhc-actions.git@v1 installs, including the bundled pyhc_actions/phep3/schedule.json.
  • phep3-check with no arguments prints "Downloading schedule.json from the latest pyhc-actions release..." and runs core package checks, with no "No schedule.json found" warning.
  • pyhc-env-compat-check --check-uv finds uv, and pyhc-env-compat-check --extras none with no arguments passes.
  • Both action.yml files still parse, and git diff --check is clean.

🤖 Generated with Claude Code

sapols and others added 3 commits November 3, 2026 18:49
Both actions pass project-file straight to the CLIs, which accept a project directory or its pyproject.toml and fall back to setup.py/setup.cfg when pyproject.toml is absent. "Path to pyproject.toml" implied only pyproject.toml projects are supported, so the description now leads with the directory and says the input is only needed when the project isn't at the repository root.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PHEP 8 (heliophysicsPy/standards#51) sends readers to the PyHC Environment Compatibility Checker section for how to run the checker, but that section only showed the GitHub Actions workflow, and the Local Usage install step (`pip install -e .`) only worked from inside a clone of this repository. Both checker sections now point to Local Usage, which installs the released `@v1` code straight from GitHub and notes the uv prerequisite. A regular install works fully since v1.2.0, which bundles schedule.json and downloads the latest one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sapols
sapols marked this pull request as ready for review November 4, 2026 01:59
@sapols
sapols merged commit 75d94e4 into main Nov 4, 2026
7 checks passed
@sapols
sapols deleted the readme-local-usage branch November 4, 2026 01:59
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