Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install minitage.recipe.fetch

How to install minitage.recipe.fetch

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install minitage.recipe.fetch
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.43 Available View build log
Windows (64-bit)
1.43 Available View build log
Mac OS X (10.5+)
1.43 Available View build log
Linux (32-bit)
1.43 Available View build log
Linux (64-bit)
1.43 Available View build log
 
License
BSD
Lastest release
version 1.43 on Jan 5th, 2011

Introduction

The egg has those entry point:

  • fetch:

System Message: WARNING/2 (<string>, line 15)

Bullet list ends without a blank line; unexpected unindent.

recipe for fetching something, somewhere, with git, http, frp, static, hg, svn or bzr.

You can browse the code on minitage's following resources:

You can migrate your buldouts without any effort with buildout.minitagificator:

minitage.recipe.fetch

Abstract
  • This recipe can be used to fetch something from somewhere to some location of your local fileystem

System Message: WARNING/2 (<string>, line 37)

Bullet list ends without a blank line; unexpected unindent.

This something can be either an url or a set of urls. - Thus by:

  • git
  • svn
  • ftp, http, file:// (urllib)
  • bazaar
  • mercurial
Specific options

Please look for options at : http://pypi.python.org/pypi/minitage.recipe.common#options-shared-by-all-the-recipes

  • urls

System Message: WARNING/2 (<string>, line 51)

Bullet list ends without a blank line; unexpected unindent.

See the shared options for more information on how to set them. * For the static fetcher, you can precise md5sum in the 'revision' field. * set unpack to automaticly unpack a downloaded archive, like:

[foo]

System Message: ERROR/3 (<string>, line 56)

Inconsistent literal block quoting.

unpack=True

Detailled documentation

The divide url function test:

- If you dont precise the directory, its the basename of the url::
>>> divide_url ('http://foo/bar|svn|666||--ignore-externals')
('http://foo/bar', 'svn', '666', 'http.foo.bar', '--ignore-externals')
  • Static as a default:

    System Message: WARNING/2 (<string>, line 69)

    Literal block expected; none found.

>>> divide_url ('')
('', 'static', '', '', '')
  • arguements can be optionnal:

    System Message: WARNING/2 (<string>, line 74)

    Literal block expected; none found.

>>> divide_url ('http://foo/bar')
('http://foo/bar', 'static', '', 'http.foo.bar', '')

Let's create a buildout configuration file:

>>> rmdir(tempdir)
>>> mkdir(tempdir)
>>> cd(tempdir)
>>> a = [mkdir(d) for d in ('eggs', 'develop-eggs', 'bin', 'src')]
>>> install_develop_eggs(['minitage.recipe.fetch'])
>>> install_eggs_from_pathes(['zc.buildout'], sys.path)
>>> touch('buildout.cfg')
>>> sh('buildout -o bootstrap')

System Message: ERROR/3 (<string>, line 88)

Inconsistent literal block quoting.

buildout -o bootstrap...

Initializing test env.

>>> if not os.path.exists('foo'):
...     mkdir('foo')
... else:
...     rmdir(foo)
...     mkdir('foo')
>>> touch('foo/configure', data ="""echo configure $@\n""")
>>> sh('chmod +x foo/configure')
c...
>>> touch('foo/Makefile',
... data = """
... all:
... \t@echo all
...
... install:
... \t@echo install
...
... """)
>>> sh('tar cfz  foo.tgz foo')
tar cfz  ...
<BLANKLINE>

Downloading some urls, files, git checkouts with one in a particular checkout directory and a particular revision:

>>> data = """

System Message: ERROR/3 (<string>, line 118)

Inconsistent literal block quoting.

... [buildout] ... download-cache=${buildout:directory} ... parts = ... part ... [part] ... recipe=minitage.recipe.fetch ... urls =file://${buildout:directory}/foo.tgz ... http://git.minitage.org/git/minitage/eggs/minitage.core|git ... http://git.minitage.org/git/minitage/eggs/minitage.recipe|git|e1f30b9d7a89572fa87fe26f8e353304532a281c|minitage.recipe.alt ... """ >>> touch('buildout.cfg', data=data) >>> sh('bin/buildout install part') bin/buildout install part Unused options for buildout: 'download-directory'. Installing part. minitage.recipe: Start checkouts minitage.recipe: Completed dowbload of file:///tmp/buildout.test/foo.tgz in /tmp/buildout.test/parts/part/ minitage.fetchers.scm: Checkouted /tmp/buildout.test/parts/part/minitage.recipe.alt / http://git.minitage.org/git/minitage/eggs/minitage.recipe (e1f30b9d7a89572fa87fe26f8e353304532a281c) [git]. minitage.recipe: Completed dowbload of http://git.minitage.org/git/minitage/eggs/minitage.recipe in /tmp/buildout.test/parts/part/minitage.recipe.alt minitage.fetchers.scm: Checkouted /tmp/buildout.test/parts/part/http.git.minitage.org.git.minitage.eggs.minitage.core / http://git.minitage.org/git/minitage/eggs/minitage.core (HEAD) [git]. minitage.recipe: Completed dowbload of http://git.minitage.org/git/minitage/eggs/minitage.core in /tmp/buildout.test/parts/part/http.git.minitage.org.git.minitage.eggs.minitage.core minitage.recipe: Finnished checkouts <BLANKLINE> <BLANKLINE>

CHANGELOG

UP
  • fix bug on static fetching, (one upon another, content is removed)
  • fix invalid crossdevice link errors
1.38
  • fix develop link
1.37
  • fix api
1.36
  • forgot to version one file
1.35
  • splitted out from minitage.recipe

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:2

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.