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.
- 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.
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.5.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 616ae3e3f4aa5c8c16efb3100f6aab07bb0f6e52141c492b0b92017cf2dc2138 |
|
MD5 | 1cb184dbac9fb9061325d159345a0a90 |
|
BLAKE2b-256 | 1e36490a9d82fb1ff46f353efbf002e8704da31b01bebe0e2f5ae3d0eb13fe57 |
Hashes for zerokspot.recipe.git-0.5.2-py2.6.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9df3d94dacb2d7a224d5160c2d12da5f16957cc1c68afe39d033aa1939438a3f |
|
MD5 | 82c7a3279bb91bca82b30f0444fdf9fe |
|
BLAKE2b-256 | eb5100490a9eb197c9c20369fecd78c13a10c0094e36b4855c0ed23141ab8ca2 |