Skip to main content

Measles

Continuous cookiecutter featuring mise.

cat <<'EOF' > .cookiecutter.yaml
default_context:
    languages: Node,Python
    python_dependencies:
        - django
        - gunicorn
EOF
mise use --global uv@latest
uv tool run cookiecutter --config-file .cookiecutter.yaml --no-input --overwrite-if-exists https://github.com/biobuddies/measles.git
mise trust --yes
mise install
mise pre-commit-all
mise test

Autoformat Excludes

To exclude files from autoformatting and linting, add extended regular expressions for relative paths from the repository root to .config/autoformat-excludes like:

^public/bundle\.min\.js$
^publickey\.asc$

Jinja Templates

Templates live in {{cookiecutter.dot}}/, which renders to .: cookiecutter assumes templates render into a codename folder, but measles renders into the repository root.

Each file ends with its final suffix, so editors offering one syntax highlighter pick the final form's. An infix marks the template syntax:

  • .j2. for regular Jinja2, such as pyproject.j2.toml
  • .hj. for Hash Jinja, such as act.hj.yaml, which hides Jinja in YAML comments so prettier can autoformat the template

Hash Jinja configuration, from measles/__init__.py:

hash_jinja = {
    'block_end_string': '%#',
    'block_start_string': '#%',
    'comment_end_string': '*#',
    'comment_start_string': '#*',
    'lstrip_blocks': True,
    'trim_blocks': True,
    'variable_end_string': '}#',
    'variable_start_string': '#{',
}

Workflow Tasks

.github/workflows/act.yaml runs these mise tasks, which can be overridden in mise.toml:

  • build takes no arguments, so it suits environment-agnostic steps like most Python wheels and Docker images. Put environment-specific steps in deploy.
  • test runs locally and on GitHub, so it suits unit and integration tests.
  • deploy takes the environment: the pull request branch or main. Put environment-specific JavaScript And Markup (JAM) builds here, and start end-to-end tests that need a real hosted environment. Guard production-only steps with [[ ${1-} == main ]].

First GitHub Action Run

Until main has .github/workflows/act.yaml, rendering adds TABR to its push triggers, so a bootstrap branch runs act before its pull request merges. Once origin/main has the workflow, the next render drops that branch.

GitHub Actions

flowchart TD
    Context[" `mise set-environment` ($ENVI, $GIHA, $TABR)"] --> Check[" `mise pre-commit-all` (check)"]
    Context --> Test[" `mise test`"]
    Check -- "Generated diff" --> Retry["Commit and rerun"]
    Retry --> Context
    Check -- Fail --> Stop["Stop"]
    Test -- Fail --> Stop
    Check -- "Clean pass" --> BuildDeploy["Check and test pass"]
    Test -- Pass --> BuildDeploy
    BuildDeploy -- "Push to main" --> Release[" `mise release` (build-deploy), refresh $TABR"]
    BuildDeploy -- Otherwise --> Build[" `mise build` (build-deploy)"]
    Release --> Build
    Build --> Deploy[" `mise deploy $ENVI` (build-deploy)"]
    Deploy -- "Terraform PR" --> Plan[" `mise tplan main` (PR comment)"]
    Plan --> Apply[" `mise tapply $ENVI`"]
    Deploy -- "Other Terraform runs" --> Apply
    Deploy -- "PyPI, ENVI=main" --> Publish[" `uv publish`"]

Agent Sandboxes

Set environment setup script to

grep -qs 'setup\.bash' .claude/hooks/session-start.sh || measles/.config/setup.bash

This accommodates Claude Code on the web's different single and multiple repository startups. Always include measles in multiple repository sessions: they start in the parent directory, where only this script can run setup.

TODO re-test on Codex Cloud, probably leveraging .codex/setup.sh

Metadata

Release files for measles 2026.47.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for measles 2026.47.2
File Size Uploaded Provenance Actions
measles-2026.47.2.tar.gz 82.8 kB Without provenance Details for measles-2026.47.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for measles 2026.47.2
File Interpreter ABI Platform Actions
measles-2026.47.2-py3-none-any.whl Python 3 none any Details for measles-2026.47.2-py3-none-any.whl

Total release size: 90.3 kB

Release files / measles-2026.47.2.tar.gz

Download URL measles-2026.47.2.tar.gz
Size 82.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f263a673a67041b41c080d5ec373fb14b24f125c9bce97b5297319e8b9b6a587
BLAKE2b-256 checksum
How to use checksums
4c79e40e6fc78ca55032c8a0f4c04fa80011c67cd9cea8d93f77d649247927b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / measles-2026.47.2-py3-none-any.whl

Download URL measles-2026.47.2-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c91e1ef70719289326a9ff10fa3d3bc9eb969886a926e0c835e9c48eb2b6cae
BLAKE2b-256 checksum
How to use checksums
82479a05475d82f4e3836621723dfb284a3f64449a7c01bd5981808e5595286c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for measles 2026.47.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page