Skip to main content

mepo Actions Status DOI Ask DeepWiki

mepo is a tool, written in Python3, to manage (m)ultiple git r(epo)sitories, by attempting to create an illusion of a 'single repository' for multi-repository projects. Please see the Wiki for examples of mepo workflows.

Installation

Using pip

To install mepo using pip, run the following command:

pip install mepo

Using uv

uv install

You can install mepo using the uv package manager. To do so, run the following command:

uv tool install mepo

uvx

If you'd like to run mepo without installing it, you can use uvx to run it directly:

uvx mepo

Homebrew

mepo is available from the GMAO-SI-Team Homebrew tap:

brew install gmao-si-team/packages/mepo

This direct install form is recommended because it tells Homebrew exactly which formula from the tap you want to install.

Homebrew tap trust

Newer Homebrew versions warn about formulae from non-official taps. If you enable tap trust checks, or when Homebrew begins requiring them by default, you may need to explicitly trust this formula or tap.

To trust only the mepo formula:

brew trust --formula gmao-si-team/packages/mepo

If you prefer to tap the repository first and then install by short name:

brew tap gmao-si-team/packages
brew trust gmao-si-team/packages
brew install mepo

Only run brew trust for taps or formulae whose maintainers and source repository you trust. To remove the tap later:

brew untap gmao-si-team/packages

Spack

Mepo is also available via spack as a package. To install mepo using spack, run the following command:

spack install mepo

Transitioning from mepo v1.x to v2.x

If you try to use mepo v2.x within a mepo v1.x repository, you will get an warning message:

Detected mepo1 style state
Run <mepo update-state> to permanently convert to mepo2 style

To update your repository to work with mepo v2.x, you can run the following command:

mepo update-state

and it will convert the repository from mepo v1 pickle-state to mepo v2 json-state.

Commands

For more about the possible mepo commands, please see the Mepo Commands wiki page.

Shell completion

Tab completion is available for bash and zsh. It covers commands and sub-commands (e.g. mepo branch create), options, option values (e.g. --style), command aliases from ~/.mepoconfig, and component names when run inside a mepo clone. Zsh also shows a short description for each candidate.

Source the script for your shell from etc/ (in a pip installation, that directory is $(dirname $(mepo --location))/etc):

# ~/.bashrc
source /path/to/mepo/etc/mepo-completion.bash

# ~/.zshrc (after compinit)
source /path/to/mepo/etc/mepo-completion.zsh

Zsh users can instead copy mepo-completion.zsh as _mepo into a directory on $fpath.

Configuration

User settings live in ~/.mepoconfig. See the example configuration for directory styles, command aliases, partial clones, and Git retry settings. You can edit the file directly or use mepo config set section.option value.

Partial clones and submodules

When a component enables recurse_submodules: true, blobless cloning (via --partial=blobless, configuration, or blobless: true in components.yaml) also filters its submodules using Git's --also-filter-submodules option. This requires Git 2.36 or newer and affects new clones only. Treeless cloning still falls back to a full clone for recursive components unless the component explicitly sets blobless: true.

Git transport retries

Mepo retries recognized transient network failures during clone, checkout, pull, and fetch, including those run by mepo develop. Read-only operations such as status and diff also retry when a partial clone needs to fetch missing objects. Missing branches/tags, authentication failures, merge conflicts, and other non-transport errors are not retried. Push, commit, and stash-changing operations are not automatically retried.

The defaults are:

[git]
attempts = 6
verbose = false

attempts counts the initial attempt, with a minimum of 1. Retries wait 5, 10, 15, ... seconds; the default allows five retries with 75 seconds of backoff in total, plus Git execution time. Set attempts = 1 to disable retries. Retry detection currently recognizes English Git/SSH diagnostics only.

To configure retries and enable diagnostics for retried commands:

mepo config set git.attempts 6
mepo config set git.verbose true

Intermediate failures and retry notices are hidden by default. mepo clone --verbose (or -v) enables them for that clone invocation, including its post-clone checkout. Components that needed clone retries show [N retries] in the clone summary.

Retry-enabled commands use an SSH connection timeout of 20 seconds unless GIT_SSH_COMMAND is already set. This is a connection timeout, not a limit on the whole Git operation. Retry cleanup only removes a new clone's incomplete directory, never an existing repository or the repository during post-clone checkout retries.

Upgrading from 2.5.0: Move any attempts and verbose settings from [clone] to [git]; the old locations are no longer read. Partial-clone settings remain under [clone] as partial.

Presentation

The SI Team has made a PowerPoint about mepo that can be found here.

Contributing

Please check out our contributing guidelines.

License

All files are currently licensed under the Apache-2.0 license, see LICENSE.

Previously, the code was licensed under the NASA Open Source Agreement, Version 1.3.

Metadata

Release files for mepo 2.7.0

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

Source distribution (sdist)

Source distribution for mepo 2.7.0
File Size Uploaded Provenance Actions
mepo-2.7.0.tar.gz 68.5 kB Without provenance Details for mepo-2.7.0.tar.gz

Built distribution (wheel)

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

Total release size: 139.6 kB

Release files / mepo-2.7.0.tar.gz

Download URL mepo-2.7.0.tar.gz
Size 68.5 kB
Tags Source
SHA-256 checksum
How to use checksums
02762c6f1fe59d83d996c69ec14a8ead02f32101d138224a960487230576032a
BLAKE2b-256 checksum
How to use checksums
b673176f4b19d4f5cc41992d4c2033299a1e7efa35e4fe6dfce2f4f24c2e65f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.14

Release files / mepo-2.7.0-py3-none-any.whl

Download URL mepo-2.7.0-py3-none-any.whl
Size 71.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c9d2f7ab74b6d5a9eee02a8f4ccf6b7ead246fb686669f4b9bcbc94e926ad75
BLAKE2b-256 checksum
How to use checksums
dc6b6022de3f7b1559b1a16a8a4cf23cc2bd9b6764dd4a51bdeb1933522bfadf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.14

Security for mepo 2.7.0

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