guettli
guettli

Reputation: 27995

How to use android's repo tool for Python?

I have N git repos installed in my virtualenv via pip install -e git+https://....

The git repos are in this directory: $VIRTUAL_ENV/src/

I would like to have a tool to manage all git repos at once.

How can I manage N git repos in $VIRTUAL_ENV/src at once?

Upvotes: 4

Views: 539

Answers (2)

ElpieKay
ElpieKay

Reputation: 30888

Here are the basic repo commands:

mkdir myprojects
cd myprojects
repo init -u url_of_manifest.git -b manifest_branch -m manifest_xml
repo sync

If manifest_branch is master, -b master can be omitted. If manifest_xml is default.xml, -m default.xml can be omitted.

Besides all of you project repos, you need to maintain an extra manifest repo. The manifest repo contains manifests. Here is a manifest sample and manifest-format.

A manifest describes where to fetch the repos, which repos you want to manage and what revision each repo will checkout in what working trees. repo sync downloads all the git data and creates working trees with specific revisions.

Upvotes: 4

guettli
guettli

Reputation: 27995

I found a tool called repo. It's from google for android development.

Maybe it works for Python and virtualenv, too.

Upvotes: 0

Related Questions