Makina Corpus 赞助的 zc.buildout 食谱,用于编译和安装软件或 Python 包,并生成脚本或配置文件。
项目描述
简介
该 egg 有以下入口点
fetch:用于从某处获取某物的食谱,使用 git、http、frp、静态、hg、svn 或 bzr。
您可以在 minitage 的以下资源中浏览代码
您可以使用 buildout.minitagificator 无需任何努力地迁移您的 buldouts
Makina Corpus 赞助的软件
minitage.recipe.fetch
摘要
此食谱可用于从某处获取某物到您本地文件系统的某个位置。此某物可以是 URL 或一组 URL。
因此,通过
git
svn
ftp、http、file://(urllib)
bazaar
mercurial
特定选项
请查看选项:http://pypi.python.org/pypi/minitage.recipe.common#options-shared-by-all-the-recipes
urls 查看有关如何设置它们的更多信息。
对于静态获取器,您可以在“修订”字段中精确指定 md5sum。
设置 unpack 以自动解压缩下载的存档,例如
[foo] unpack=True
详细文档
divide url 函数测试
- 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::
>>> divide_url ('')
('', 'static', '', '', '')
- arguements can be optionnal::
>>> divide_url ('http://foo/bar')
('http://foo/bar', 'static', '', 'http.foo.bar', '')
让我们创建一个 buildout 配置文件
>>> 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')
buildout -o bootstrap...
初始化测试环境。
>>> 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>
下载一些URL、文件和Git检出的特定目录和特定版本
>>> data = """
... [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
向上
修复静态获取上的错误(一个接一个,内容已删除)
修复无效跨设备链接错误
1.38
修复开发链接
1.37
修复API
1.36
忘记为文件打版本
1.35
从minitage.recipe中分离出来
项目详情
关闭
minitage.recipe.fetch-1.43.zip的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | c1a2ea224f4c127d4455d0f098e6ec7691dd126dc0fd82d585650362bcb96992 |
|
| MD5 | 64a89f1b9d33c91dc475d3dc161d3db0 |
|
| BLAKE2b-256 | e1c7cd38f7751e55d33a59bbec6fb3fb51b4e7e5bd60b5df2c3733d69fec8ca6 |