Skip to content

feat(distribution): broad-distribution packaging (PyPI, Nix, container, cask, brew) #953

Closed

Description

@Sinity

Navigation: This is a tracking umbrella. Active work happens in the child issues below.

Children (decomposed 2026-05-17), one per distribution channel:

Each child is independently closable. Do not implement at this umbrella level.


Why this exists (original context preserved)

Summary

Set up Polylogue for broad distribution across packaging channels so an external user can install it without cloning the repo.

Why

Today the only supported install path is `nix develop` inside this repo. `pyproject.toml` declares a wheel and Nix has a flake output, but neither is published. The browser extension is unpacked-only. There's no container image. For external adoption, each missing channel is a barrier.

Acceptance criteria

Pick a phased rollout, all phases tracked here:

Phase 1 — Python

  • Publish `polylogue` to PyPI on tag (`vX.Y.Z`)
  • Publish a console-only wheel that omits Drive/voyage extras unless requested
  • `pip install polylogue` produces working `polylogue`, `polylogued`, `polylogue-mcp` binaries
  • Documented install in `README.md`

Phase 2 — Nix flake

  • Confirm `nix run github:Sinity/polylogue` works end-to-end without a checkout
  • Provide a NixOS module example (already partially in `nix/module.nix`) with documented options
  • Publish on flakehub or equivalent registry

Phase 3 — OCI container

  • A multi-stage Containerfile producing a single image with all three binaries
  • Volumes documented for `/data` and `/config`
  • Pushed to GHCR on tag

Phase 4 — Browser extension

  • Manifest hardening for the Chrome Web Store reviewer (privacy policy, optional permissions, justification)
  • Submit to Chrome Web Store
  • Firefox MV3 compat check (Firefox is mostly MV3-compatible now) → submit to AMO

Phase 5 — Optional convenience channels

  • Homebrew tap or formula
  • Arch AUR package

Each phase ships behind its own PR and updates `docs/release.md`.

Out of scope

  • Hosting the daemon as a SaaS (this is a local-first project)
  • Mobile builds

Related

Activity

  1. Sinity commented on May 8, 2026

    @Sinity
    OwnerAuthor

    Closing: distribution packaging is deferred. Current distribution is via Nix flake (nix run, nix develop) and source checkout. PyPI, Homebrew, and container packaging require build infrastructure that's tracked as future work.

  2. Sinity commented on May 9, 2026

    @Sinity
    OwnerAuthor

    Reopening: closeout deferred this to "MK2/future" without explicit authorization. Per CLAUDE.md §10 (Completion Stewardship) and the issue-closeout-honesty rule, deferral isn't a close reason unless the user agrees. Either complete or convert to a tracked successor with explicit user sign-off.

  3. reopened this on May 9, 2026
  4. Sinity commented on May 11, 2026

    @Sinity
    OwnerAuthor

    Strengthening pass — distribution packaging phases

    This issue should be phased by install contract, not by packaging wish list.

    Recommended phases:

    1. Python package: PyPI release workflow, wheel/sdist metadata, console scripts, optional extras for Drive/Voyage/browser tooling, installed smoke tests.
    2. Nix flake: nix run and module/service path work outside the repo devshell, with generated docs matching actual commands.
    3. Container: decide whether the image is daemon-only, CLI+daemon, or lab/test; define volume paths, healthcheck, user IDs, and backup expectations.
    4. Browser extension: packed artifact/release instructions if the extension is in scope.
    5. Homebrew/cask: only after Python/Nix install contracts are stable.

    Acceptance for each phase:

    • Fresh install command works without repo checkout.
    • polylogue, polylogued, and polylogue-mcp entrypoints are present where intended.
    • First-run archive/config path is documented and tested under isolated XDG paths.
    • Optional dependencies fail gracefully with actionable install guidance.
    • CI/release automation publishes or at least builds artifacts reproducibly.

    Implementation anchors: pyproject.toml, hatch_build.py, flake.nix, nix/module.nix, installed script smoke tests, release docs, and devtools verify-distribution-surface.

  5. Sinity commented on May 17, 2026

    @Sinity
    OwnerAuthor

    Decomposed into: #1234 #1235 #1236 #1237 #1238

  6. Sinity commented on May 24, 2026

    @Sinity
    OwnerAuthor

    Done: all 5 distribution-channel children (#1234 PyPI, #1235 Nix flake, #1236 OCI, #1237 Homebrew, #1238 browser extension) are CLOSED. Umbrella complete. Onboarding doc references absorbed into #869.

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