These notes are intended for use by the maintainer.
Use the Nox
build
session:poetry run nox -s build
Perform these steps on Linux.
Verify proper
version = "x.y.z"
inpyproject.toml
.Verify changes are recorded in
CHANGES.rst
.Run a Poetry shell:
poetry shell
Verify all Nox tests are passing:
nox
Prepare the release:
nox -s release
Follow on-screen instructions to complete release.
poetry upgrade
.
Create
fake
area:mkdir -p fake/{import,export} cd fake
Create fake crates in
orig/
and serve them:# In fake/ directory: ../scripts/setup-fake-crates.py cd orig romt serve --port 9000
Export testing:
# In fake/export directory: rm -rf crates/ git/crates.io-index crates.tar.gz romt crate \ --index-url http://127.0.0.1:9000/git/crates.io-index \ --crates-url http://127.0.0.1:9000/crates/{crate}/{crate}-{version}.crate \ --prefix mixed \ init pull download pack
Import testing:
# In fake/import directory: rm -rf crates git/crates.io-index romt crate -v init-import romt crate -v config romt crate -v --archive ../export/crates.tar.gz import
Create
fake
area:mkdir -p fake/{import,export}
Export testing:
# In fake/export directory: # Keep crates/ directory by default (save re-downloading). rm -rf crates.tar.gz fake-index git/crates.io-index ../../scripts/setup-fake-index.sh romt crate init --index-url fake-index romt crate -v config # Each time: choose a step number for upstream and export: git -C fake-index branch --force master step1 romt crate -v export
Import testing:
# In fake/import directory: # One-time import testing setup: rm -rf crates git/crates.io-index romt crate -v init-import romt crate -v config # Import each time: romt crate -v --archive ../export/crates.tar.gz import