Skip to main content

Metarepo: An alternative to git submodules

GitHub Workflow Status PyPI - License PyPI PyPI - Python Version

Metarepo is used to manage dependencies on other git repositories when git submodules is not sufficient. It was inspired by the repo tool by Google but instead of requiring the manifest to be stored in its own repository, it is stored in the same repository.

Demo

Installation

# Install from PyPI
pip3 install --upgrade metarepo

# Install from git using PIP
pip3 install --upgrade git+https://github.com/blejdfist/git-metarepo

Usage

You can run metarepo in two ways, standalone or using git. Both methods work the same and it is only a matter of personal taste.

git meta
metarepo

Create an initial manifest.yml configuration using the init command

git meta init

Synchronize the repositories

git meta sync

Manifest structure

repos:
  - url: https://github.com/blejdfist/pycodegen
    path: tools/pycodegen
    track: master
Field Explanation Required
url Git URL to clone Yes
path Where to clone the repo Yes
track What branch/tag to track No (default: master)

Release files for metarepo 0.1.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 metarepo 0.1.2
File Size Uploaded
metarepo-0.1.2.tar.gz 8.6 kB Details

Built distribution (wheel)

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

Total release size: 18.8 kB

Release files / metarepo-0.1.2.tar.gz

Download URL metarepo-0.1.2.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ccf173fe296709e29d510acea4c0245660f86b2043f91b8852246f8921ad1bb1
BLAKE2b-256 checksum
How to use checksums
fa93cad26a843de7d329286dafcfd21ba553f19eb8876a5eded03a3bcefe35eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.10 CPython/3.8.2 Linux/5.4.0-47-generic

Release files / metarepo-0.1.2-py3-none-any.whl

Download URL metarepo-0.1.2-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a12550aa817cea1d266136cb7818c0874e4a9cc2839e8ad8acbbead72e30558
BLAKE2b-256 checksum
How to use checksums
e88ed4d6f4d83b6be2abb32229092d52704c33bb8de7af8a8e85980945649d2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.10 CPython/3.8.2 Linux/5.4.0-47-generic

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

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