Skip to content

1.9.1

Choose a tag to compare

@github-actions github-actions released this 21 Nov 07:19
Immutable release. Only release title and notes can be modified.
31a90b5

πŸš€ Cortex v1.9.1 β€” Brain the Size of a Planet

"Here I am, brain the size of a planet, and they ask me to pick up a piece of paper." β€” Marvin, The Hitchhiker's Guide to the Galaxy

A whole release to hold a name. The core's distribution name was free on PyPI, and anyone could have taken it: this one is ours, reserved before anything announces it.

A patch. Nothing changes in the cortex command, the spec or a project's files.

The core's name is ours on PyPI (#86)

The command and the runtime depend on the core by its distribution name. They install it from ../core, but a pip install without it looks for that name on PyPI, where it was free: whoever registered it first would have had their code installed into the process that holds the API keys.

  • The core is distributed as xodlabs-cortex-core. cortex-core could not be reserved: PyPI refuses it as too close to cortexcore, another project. The command and the runtime depend on the new name, from 0.1.0, so that the placeholder never satisfies them: a pip install without ../core still fails at once. The core is still imported as cortex_core.
  • .github/workflows/pypi.yml reserves it: run by hand from main, approved by a maintainer in the pypi environment, it publishes a placeholder, 0.0.0, that installs nothing, through PyPI's trusted publishing, with no token stored.
  • A test holds it: the core's name, the packages that depend on it β€” their dependencies and their extras β€” and their lower bound, and the workflow reading it from core/pyproject.toml.

ADR-007 records the new name in its amendments.

Upgrading

cortex self-update, then cortex upgrade 1.9.1, or cortex upgrade --team 1.9.1 for a team's file. A project that stays on 1.9.0 keeps working: nothing it reads has changed. A development install runs pip uninstall cortex-core, then pip install -e ../core again: pip records the core under its new name, and the old one is gone.

Notes

  • The name is reserved once 1.9.1 is merged: the maintainer runs pypi from the Actions tab and approves its deployment. https://pypi.org/pypi/xodlabs-cortex-core/json then answers.
  • PyPI must trust the workflow first: a pending publisher for xodlabs-cortex-core β€” owner xod-labs, repository cortex, workflow pypi.yml, environment pypi. Without it, publish fails, and the name stays free.
  • Next: 1.10.0, the hardening, then wave 1 with #38 and #39.