Buildout recipe for fetching sources in a git repository
Project description
This simple recipe for zc.buildout fetches data from a given repository and stores it into its part’s directory. A simple task using this could look like this:
[myapp] recipe=sact.recipe.git repository=git://github.com/securactive/sact.recipe.git.git rev=7c73978b55fcadbe2cd6f2abbefbedb5a85c2c8c
This would store the repository under ${buildout:directory}/parts/myapp and keep it at exactly this revision, no matter what happens on the server.
The recipe has following options:
- repository
The absolute URL of the repository to be fetched
- rev
A revision/commit within this repository the environment should use.
- branch
If you want to stay up to date with a certain branch other than “master”, use this.
- paths
List of relative paths to packages to develop. Must be used together with as_egg=true.
- newest
This overrides the newest-option of the global setting for this part
- as_egg
Set to True if you want the checkout to be registered as a development egg in your buildout.
- cache-name
Name of the repository in the download-cache directory.
- recursive
Follow submodules (Note that submodules are not cloned from the download cache).
Offline installation
If you want to install a part from the download-cache, this is now possible, too:
[buildout] parts = myapp download-cache = /var/cache/buildout install-from-cache = true [mylib] recipe = zerokspot.recipe.git repository = http://domain.com/repo.git
With this configuration, the recipe will look for /var/cache/buildout/repo and clone it into the local parts/ folder.
The recipe also supports an additional “cache-name” setting that lets you configure the folder name of the repository in the download cache.
Version 1.0 (2013-11-28)
Initial version
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for sact.recipe.gitrepository-1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0d7c24f13e3dab9e093b43b6b51ca35b391690630d79af751524141401ee709 |
|
MD5 | 8c4cc54da12c5aa3c28a7f8af38f7a15 |
|
BLAKE2b-256 | 042d3bee877a32885b4e4d4fcae79cb8ba4ad93712b8e64f9cfdcbdc134fd5ad |