Simple zc.buildout recipe for 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=zerokspot.recipe.git repository=git://github.com/zerok/zerokspot.gitrecipe.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.
- 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.
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.
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
Built Distribution
Hashes for zerokspot.recipe.git-0.4.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09a184043c2d5a7bb718be5b76a23c46a0a7d33e9fe0159d95300a224245fd64 |
|
MD5 | d40322b7a976bc01e537df49cd9d0a7c |
|
BLAKE2b-256 | 206f34103539c9b17725396816b8abeabcf1416e135fa70a0456ac9225b99b1d |
Hashes for zerokspot.recipe.git-0.4.1-py2.6.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4fe6652d73e775ec1e3abffcbb575a5bdd674d87b0fcf68940142fcb6766811 |
|
MD5 | 87a53575dcb0179d50cbc17345e05a7d |
|
BLAKE2b-256 | a3a560298a38bf4d6ce9c57f81c3eac3ad78dec060a05592b205a0c19f7aa84f |