Releases are cut from master of MolCrafts/molpy, the project repository;
MolCrafts/molrs is retired. 0.20.0 is the first release of the unified
project, and the downstream repositories move to it after that release. The
last releases before it were 0.19.0 (v0.19.0) of the two former
repositories.
One version and one tag cover the whole project.
The registries trusted the former repositories, so each needs, once:
- crates.io
molcrafts-molrs: a trusted publisher for MolCrafts/molpy, workflowrelease.yml, environmentcrates-io; - npm
@molcrafts/molwasm: a new package. npm configures trusted publishing only on a package that exists, so its first version is published by hand, then the trusted publisher (MolCrafts/molpy,release.yml, environmentnpm) is added; - PyPI
molcrafts-molpy: its trusted publisher already names MolCrafts/molpy,release.ymland environmentpypi; - the GitHub environments
crates-ioandnpmon MolCrafts/molpy (pypiandpypi-nightlyexist).
One version appears in:
[workspace.package].versioninCargo.toml, inherited bycrates/molrs/;version, and themolcrafts-molrs/molcrafts-molrs-ffidependency versions, in the standalone manifestscrates/molrs-ffi/,molpy/,molwasm/,molc/andmolcxx/Cargo.toml. molpy's wheel takes its version frommolpy/Cargo.toml, and npm'spackage.jsonis generated frommolwasm/Cargo.tomlby wasm-pack;- the
molcrafts-molrs*entries of every committedCargo.lock; - the version-pinned examples in
README.mdand this manual (version = "X.Y"dependency lines).
Run the pre-push gate from the repository root:
molci verify --fullThe pinned orchestrator invokes the canonical commands in molci run.
Native package preflights inspect the tested Python wheel and generated sdist,
verify the crates.io archive with a dry run, and build/inspect the npm package.
GitHub builds the supported platform release artifacts and holds publishing
credentials. The release guard accepts only this SHA's complete successful
upstream master-push test.yml run, including native and every platform job
from the same attempt. Skipped or unrelated checks are not release evidence.
.github/workflows/release.yml holds every channel:
- crates.io:
molcrafts-molrs; - npm:
@molcrafts/molwasm; - PyPI:
molcrafts-molpy, as desktop abi3 wheels and the Pyodide wheel; - the GitHub Release, carrying the C API archives.
| run | what it does |
|---|---|
v* tag on MolCrafts |
release / guard (tag = v + the workspace version, on master; the exact commit's upstream master native/platform/result jobs succeeded), the builds, then every upload. No lint or test run of its own: the commit was proven before the tag |
| dispatch (any branch, fork or upstream) | the dry run: the same guard, the builds, cargo publish --dry-run and npm pack --dry-run; no upload and no Release |
- Finish the checks and review the release diff. Push it to
masterand wait for itstest.ymlrun: the tag's guard reads it. - Dispatch release on the branch for a rehearsal (a fork is fine).
- Merge the reviewed revision into
master, then create and pushvX.Y.Z, matching[workspace.package].version. - Wait for release to finish, then smoke-test the published artifacts.
Every upload skips a version the registry already has: retry a partial
release by re-running the tag's run. Trusted publishing on crates.io, PyPI
and npm names the workflow file release.yml and one environment per
registry: crates-io, npm and pypi.
The weekly workflow measures coverage and conformance at one resolved dev SHA.
Measurement failures remain on that workflow. A manual dispatch builds wheels
only with packages selected; publication additionally requires publish.
Versions derive from the source commit, and an existing version suppresses
repeated builds/publication of that commit. A release-workflow dispatch remains
a dry run and cannot publish.