Skip to content

arcticpy: install 2.7 from GitHub until PyPI release (stopgap) #372

Done

Description

@Jammy2211

Overview

arcticpy 2.7 (numpy 2, Cython 3, Python 3.13 support, plus the 2026 Euclid DR2 well-filling and pixel-bounce updates) is merged upstream in jkeger/arctic but cannot reach PyPI for now: the only PyPI owner of arcticpy is Jammy2211, whose PyPI MFA is broken (an open PyPI support case), and the Hands PYPI token belongs to rhayes777, which a no-publish probe confirmed is refused (403) for arcticpy. This stopgap points the organism's single arcticpy installer at a pinned GitHub commit of 2.7, so cti-upkeep work is not stalled. It is reverted to arcticpy==2.7 from PyPI once the login is restored (draft/maintenance/pyautoheart/arcticpy_pin_bump_after_upstream_release.md).

Plan

  • Point Heart's arcticpy installer at a pinned GitHub commit of jkeger/arctic (2.7) instead of PyPI 2.6, keeping a version setting to go back to PyPI later.
  • Pin the exact commit, not a v2.7 tag, so nothing waits on upstream and the eventual PyPI 2.7 is built from the same code.
  • Update autocti's pyproject.toml note on how to install arcticpy.
  • Add a dated note to the workspace_test likelihood pins: checked against 2.7, unchanged.
  • Leave the existing PyPI-bump draft as the later switch back to arcticpy==2.7 and the DNA entry; the 2c install-docs rewrite is unblocked and goes separately.
  • Tier: effective level: human-required; merge mode: human /prm
Detailed implementation plan

Affected Repositories

  • PyAutoHeart (primary)
  • PyAutoCTI
  • autocti_workspace_test

Branch Survey

Repository Current Branch Dirty?
./organs/PyAutoHeart main clean
./cti/PyAutoCTI main clean
./cti/autocti_workspace_test main clean

Suggested branch: feature/arcticpy-27-git-source

Evidence (local pilot, 2026-11-26)

  • pip install --no-build-isolation --no-deps "arcticpy @ git+https://github.com/jkeger/arctic@6f5153582a" builds on Python 3.13 / numpy 2.5.4 / Cython 3.3 / libgsl-dev 2.7.1.
  • Heart arcticpy_smoke.py: OK. test_autocti: 279 passed with 2.7 imported (verified via importlib.metadata).
  • autocti_workspace_test scripts/{dataset_1d,imaging_ci}/likelihood/pins.py: both OK unchanged — the expected DR2 pin movement did not occur.

Implementation Steps

  1. PyAutoHeart
    • .github/actions/install-arcticpy/install_arcticpy.sh: add ARCTICPY_SOURCE defaulting to git+https://github.com/jkeger/arctic@6f5153582aca00b7b0cc11ab04b2c58a7502400d; when ARCTICPY_VERSION is set, install arcticpy==$ARCTICPY_VERSION from PyPI instead. Install line: pip install "arcticpy @ ${ARCTICPY_SOURCE}" --no-build-isolation --no-deps --no-cache-dir. Header comments explain the stopgap, why, and how to revert.
    • .github/actions/install-arcticpy/action.yml: version input description (empty = GitHub commit, a value = that PyPI version) and the comments naming the 2.6 pin.
    • .github/workflows/arcticpy-action.yml: comment touch only.
    • tests/test_smoke.py:573: update the default-line assertion to the new form, also asserting the ARCTICPY_SOURCE default.
    • Keep the narrow pip check exception in heart/smoke.py (harmless; removal belongs to the PyPI step).
    • Testing: pytest tests/test_smoke.py; dispatch arcticpy-action.yml on the branch (3.12, 3.13); one autocti lib-tests run.
  2. PyAutoCTI: pyproject.toml:27-32 comment → the git install command. No code change (arcticpy is not a pip dependency).
  3. autocti_workspace_test: dated provenance note in both pins.py docstrings — verified unchanged under arcticpy 2.7 (6f51535), 2026-11-26. No value changes.
  4. Ship order: Heart + PyAutoCTI (ship_library), then workspace_test (ship_workspace); human /prm for each.

Key Files

  • organs/PyAutoHeart/.github/actions/install-arcticpy/install_arcticpy.sh — the single arcticpy pin and recipe for CI, local smoke, the Hands python matrix and Nerves Colab setup
  • organs/PyAutoHeart/.github/actions/install-arcticpy/action.yml — composite action wrapper
  • organs/PyAutoHeart/tests/test_smoke.py — asserts the installer's default line
  • cti/PyAutoCTI/pyproject.toml — install note
  • cti/autocti_workspace_test/scripts/{dataset_1d,imaging_ci}/likelihood/pins.py — pin provenance

Overlap

PyAutoHeart#365 (smoke cache stats, awaiting input) works in Heart smoke code but holds no claim; the only possible shared file is tests/test_smoke.py, in a different test.

Original Prompt

Click to expand starting prompt

Heart: install arcticpy 2.7 from GitHub until it reaches PyPI (stopgap)

Type: maintenance
Target: PyAutoHeart
Repos:

  • @PyAutoHeart
  • @PyAutoCTI
  • @autocti_workspace_test
    Themes:
  • cti
  • install
    Difficulty: small
    Autonomy: human-required
    Priority: high
    Status: formalised
    Consequence: judge
    Review-minutes: 15
    Unattended: never
    Lane: any
    Epic: cti-upkeep
    Phase: 2b
    Supersedes-blocker-of: draft/maintenance/pyautoheart/arcticpy_pin_bump_after_upstream_release.md (that draft stays as the switch back to PyPI)

Request (human, 2026-11-26, verbatim)

arcticpy 2.7 interim GitHub-install stopgap (cti-upkeep phase 2b unblock): tag v2.7 on
jkeger/arctic (after heads-up to Richard Massey), add an arcticpy source setting to
PyAutoHeart's install-arcticpy script defaulting to git+https://github.com/jkeger/arctic@v2.7
instead of PyPI 2.6, update PyAutoCTI pyproject comment + install docs to the git install.
Reason: PyPI arcticpy owner is only Jammy2211, whose PyPI MFA is broken (open PyPI support
issue); Hands PYPI token is rhayes777's and was probed 403 on arcticpy 2026-11-26. Revert to
arcticpy==2.7 on PyPI once login is restored.

Facts established 2026-11-26 (don't re-derive)

  • PyPI arcticpy roles: Owner Jammy2211 only. Hands secrets.PYPI is a whole-account token
    of rhayes777; a no-publish probe (re-upload of the identical 2.6 sdist) returned
    403 The user 'rhayes777' isn't allowed to upload to project 'arcticpy'.
  • Upstream jkeger/arctic main = 6f5153582aca00b7b0cc11ab04b2c58a7502400d (PR ci(workspace-validation): raise per-script timeout to 1800s for mode=release #73 + feat(validation): mode=release advisory tier — gate on correctness, not the perf-flake tail #75
    merged, pyproject version 2.7). No tags exist upstream.
  • Local pilot: pip install --no-build-isolation --no-deps "arcticpy @ git+…@6f51535" builds
    on Python 3.13 / numpy 2.5.4 / Cython 3.3 with libgsl-dev 2.7.1; Heart arcticpy_smoke.py
    OK; test_autocti 279 passed; autocti_workspace_test scripts/{dataset_1d,imaging_ci}/likelihood/pins.py
    both OK unchanged. The 2b draft's "pins will move" trap did not fire.
  • Every consumer (Heart lib-tests/smoke-tests/docs-build, Heart local smoke.py, Hands
    python_matrix, Nerves setup_colab) runs the single install_arcticpy.sh from Heart main.

Activity

  1. Jammy2211 commented on Nov 26, 2026

    @Jammy2211
    ContributorAuthor

    Heart RED override (development only)

    • Authorization (live human, 2026-11-26, this session): "Override, open PRs" — for PyAutoHeart#372, branch feature/arcticpy-27-git-source (PyAutoHeart + PyAutoCTI).
    • Current RED reason (verbatim, pyauto-heart readiness --dev --repos PyAutoHeart,PyAutoCTI): PyAutoHeart: Heart Tests failure on main
      • Cause: tests/test_smoke_sha_gate.py — test_main_writes_record_outputs_and_summary and test_main_reads_force_and_the_latest_run_from_the_environment[env2-no main moved since run 100] fail on main since 2026-11-26 (fixed fixture dates from 2026-11-19 now hit FULL_SWEEP_MAX_AGE_DAYS = 7). Unrelated to this branch, which does not claim to fix it.
    • Branch gates passed:
      • PyAutoHeart full suite: 1521 passed, 2 failed — exactly the two main failures above; tests/test_smoke.py 33 passed.
      • PyAutoCTI test_autocti: 279 passed with arcticpy 2.7 imported.
      • Smoke: pyauto-heart smoke autocti from the branch's Heart (environment built by the branch installer from the pinned commit, "arcticpy 2.7 imported successfully"): 44/44 scripts PASS.
      • autocti_workspace_test likelihood pins (dataset_1d, imaging_ci): OK unchanged under 2.7.
      • Independent review: CLEAN (nits only; the full-commit pin test and the local-smoke git note were applied).
    • Merge needs a separate /prm and every required check green. The Heart PR's own Heart Tests will show the same two main failures until main is fixed. Heart stays RED for release.
  2. Jammy2211 commented on Nov 26, 2026

    @Jammy2211
    ContributorAuthor

    Library PRs merged

    Remaining: the dated provenance note in autocti_workspace_test scripts/{dataset_1d,imaging_ci}/likelihood/pins.py (verified unchanged under 2.7). Later: switch back to arcticpy==2.7 from PyPI once the PyPI login is restored (Mind draft draft/maintenance/pyautoheart/arcticpy_pin_bump_after_upstream_release.md).

  3. Jammy2211 commented on Nov 26, 2026

    @Jammy2211
    ContributorAuthor

    Shipped

    All three PRs merged via human /prm:

    Evidence: test_autocti 279 passed, smoke autocti 44/44 and autocti_test 10/10 on 2.7, arcticpy action self-test green (3.12/3.13), all PR checks green.

    Follow-up (separate Mind draft draft/maintenance/pyautoheart/arcticpy_pin_bump_after_upstream_release.md): once the PyPI login is restored, publish 2.7 from this same commit and set the installer's ARCTICPY_VERSION default to 2.7.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions