M23: Remove Stale "If the package is not yet on PyPI…" Caveat from README.md¶
- Task ID:
M23 - Priority:
P1(Master Rank#12, Track B — Simple Fixes, Docs & CI Hygiene) - Status:
Done - Dependencies:
M10,M11 - Target Repository:
/Users/ivan/Project/3t.tools.intellij/verityredteam-free(verity-redteam-core) - GitHub Project #5: Verity RedTeam Free Task Board
1. Context & Problem Statement¶
README.md still contains a stale caveat above the quickstart:
verity-redteam-core==0.2.0 is live on PyPI and installable via pip install verity-redteam-core and uvx --from verity-redteam-core. The caveat (a) contradicts the immediately preceding block that already shows the PyPI install, (b) undermines trust that the published package is authoritative, and (c) pushes contributor source-build steps onto end-user onboarding. tests/unit/test_documentation_parity.py has no guard against this regression.
2. Requirements & Target Files¶
- Rewrite quickstart (
README.md, lines 17-24): delete the "If the package is not yet on PyPI…" sentence and the top-levelgit clone/uv build/pip install dist/*.whlblock. Keep the direct PyPI install block as the only primary path. - Move source build into a collapsible section: wrap the source-build steps in
<details><summary>Install from source (contributors)</summary>with a short intro line so end users see only PyPI. - Parity guard (
tests/unit/test_documentation_parity.py): add a test asserting the literal substringnot yet on PyPIis absent fromREADME.md, and thatpip install verity-redteam-coreplusuvx --from verity-redteam-coreremain documented. - Container E2E (
tests/e2e_containers/run_e2e.sh): verify theINSTALL_SOURCE=pypimode that cold-installsverity-redteam-core==0.2.0from public PyPI into a fresh container.
3. Automated Tests to Verify (tests/unit/test_documentation_parity.py)¶
test_readme_has_no_stale_pypi_caveat:README_PATH.read_text(encoding="utf-8")must not containnot yet on PyPI(case-insensitive).test_readme_documents_pypi_quickstart: README must containpip install verity-redteam-coreanduvx --from verity-redteam-core.- Existing
test_readme_cli_commands_are_valid,test_relative_links_and_media_resolve, andtest_readme_documents_free_capabilitiescontinue to pass unchanged. - Container E2E assertion (see §4) verifies the cold PyPI install produces a working
verityentrypoint.
4. Acceptance Scenario in Clean Container with Cold PyPI Install¶
Verify tests/e2e_containers/run_e2e.sh with INSTALL_SOURCE=pypi:
1. Spawn a fresh container with no local wheel and no --find-links overrides.
2. Cold install from public PyPI only: pip install "verity-redteam-core==0.2.0".
3. Assert pip show verity-redteam-core reports Version: 0.2.0.
4. Run verity scan and verity test --demo; assert both exit successfully and combined output contains no not yet on PyPI text.
5. INSTALL_SOURCE=pypi ./tests/e2e_containers/run_e2e.sh passes; the existing INSTALL_SOURCE=wheel scenario remains green.
5. Verification Commands¶
cd /Users/ivan/Project/3t.tools.intellij/verityredteam-free
uv run ruff check src tests
uv run pytest tests/unit/test_documentation_parity.py -v
uv run pytest tests/
INSTALL_SOURCE=pypi ./tests/e2e_containers/run_e2e.sh
6. Acceptance Criteria¶
- [ ]
README.mdno longer contains the "If the package is not yet on PyPI…" caveat; PyPI install is the only top-level quickstart. - [ ] Source build instructions remain available inside a
<details>"Install from source (contributors)" block. - [ ]
tests/unit/test_documentation_parity.pyfails ifnot yet on PyPIreappears inREADME.md. - [ ]
INSTALL_SOURCE=pypicontainer scenario cold-installsverity-redteam-core==0.2.0from PyPI and passesverity scan/verity test --demo. - [ ]
ruff check src tests, fullpytest tests/, and the pypi E2E scenario pass cleanly.