Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zerokspot.recipe.git-0.4.2.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

zerokspot.recipe.git-0.4.2-py2.6.egg (13.4 kB view details)

Uploaded Source

File details

Details for the file zerokspot.recipe.git-0.4.2.tar.gz.

File metadata

File hashes

Hashes for zerokspot.recipe.git-0.4.2.tar.gz
Algorithm Hash digest
SHA256 775d014e6e90e1b7884f3d7befc2d2b22868c1a3ab665ea6caf7c6652a316b7b
MD5 ceae3b0de88fe0822fec9efce9a010e7
BLAKE2b-256 251a26184cb69de0ccdbd59caee2ca3479d18f9046456e1a27c80600576c0a79

See more details on using hashes here.

Provenance

File details

Details for the file zerokspot.recipe.git-0.4.2-py2.6.egg.

File metadata

File hashes

Hashes for zerokspot.recipe.git-0.4.2-py2.6.egg
Algorithm Hash digest
SHA256 3a42de0266faa44f94d710153cc657c3009ce6670c21a2a60f456806e8529ab7
MD5 bfd91eb452ef9ac8c1b2f2f22b86e51b
BLAKE2b-256 02272ae510287ce1938d08137cf2de8bbc4cba13fa6ad51883a9469b8e64eff6

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page