Repository navigation
1.9.1
π 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-corecould not be reserved: PyPI refuses it as too close tocortexcore, another project. The command and the runtime depend on the new name, from0.1.0, so that the placeholder never satisfies them: apip installwithout../corestill fails at once. The core is still imported ascortex_core. .github/workflows/pypi.ymlreserves it: run by hand frommain, approved by a maintainer in thepypienvironment, 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
pypifrom the Actions tab and approves its deployment.https://pypi.org/pypi/xodlabs-cortex-core/jsonthen answers. - PyPI must trust the workflow first: a pending publisher for
xodlabs-cortex-coreβ ownerxod-labs, repositorycortex, workflowpypi.yml, environmentpypi. Without it,publishfails, and the name stays free. - Next: 1.10.0, the hardening, then wave 1 with #38 and #39.