Code Monkey home page Code Monkey logo

git-recipe's Introduction

Welcome to git-recipe doc page

Usage

Recipe clones git repository and checkouts to revision, if it is provided in configuration. You can use recipe like this:

For python

[buildout]
parts = data

[data]
recipe = git-recipe
repository = git://example.com/my-git-repo.git
ref = origin/redevlop-branch
as_egg = True
newest = True

For static resouces

[jquery]
recipe = git-recipe
repository = git://github.com/jquery/jquery.git
ref = origin/master
download-directory = ${buildout:directory}/static/js/

For django plugins with bad repository name

[paypal]
recipe = git-recipe
repository = git://github.com/johnboxall/django-paypal.git
ref = origin/master
repo_name = paypal
as_egg = True

Options

repository - repository url

ref - git reference wich you want to checkout.For example, it can be a
branch name or a tag name like "origin/master"、or "v1.0".

download-directory - If filled it will make the clone in this folder.

repo_name - If filled it will change the repository name.

as_egg - Set to True if you want the checkout to be registered as a
development egg in your buildout.

newest - always download newest repository, default is true.

And you can use buildout's global offline configure.

About

This is a fork of gitrecipe , which doesn't support the as_egg feature of zerokspot.recipe.git .

CHANGES

  • 0.2 add custom repository name for django plugins.
  • 0.1 add custom directory support for static resources.
  • 0.0.4 determine repository now support '.' and '_' in its name.
  • 0.0.3 add offline/newest configuration.

git-recipe's People

Contributors

sq9mev avatar summerisgone avatar wayhome avatar

Watchers

 avatar  avatar

Forkers

encolpe

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.