Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

iw.recipe.subversion

This product is used to download packages from svn and tar them in a directory.

We need some buildout vars:

>>> data_dir = join(test_dir, 'data')
>>> parts_dir = join(data_dir, 'parts')
>>> buildout = {'instance': {'location': test_dir},
...             'buildout': {'directory': test_dir,
...             'install-from-cache': False,
...             'download-cache':False,
...             'parts-directory': parts_dir}}
>>> name = 'svn-packages'

The recipe will checkout the package from his repository and put it in the section. For testing, we need a local repository:

>>> repository = join(test_dir, 'test_repos')
>>> if isdir(repository): rmtree(repository)
>>> copytree(join(test_dir, 'repos'), repository)
>>> if isdir(os.path.join(parts_dir, 'svn-packages')):
...     rmtree(os.path.join(parts_dir, 'svn-packages'))

Then, the recipe should work:

>>> options = {
...   'urls':'file:///%s/my_package/trunk my_package' % repository}
>>> from iw.recipe.subversion import Recipe
>>> recipe = Recipe(buildout, name, options)
>>> os.path.join(parts_dir, 'svn-packages') == recipe.install()
True

Ok, we got it:

>>> ls(parts_dir, 'svn-packages')
my_package

If a download-cache directory is given, then an archive is created in the specified path:

>>> cache = join(data_dir, 'cache')
>>> buildout['buildout']['download-cache'] = cache
>>> recipe = Recipe(buildout, name, options)

>>> if isdir(cache): rmtree(cache)

>>> files = recipe.install()

>>> ls(cache, 'dist')
my_package-r2.tar.gz

Ok, now we can work offline. The package will be installed from the cache directory:

>>> rmtree(repository)
>>> rmtree(parts_dir)
>>> buildout['buildout']['install-from-cache'] = 'true'
>>> buildout['buildout']['download-cache'] = cache
>>> recipe = Recipe(buildout, name, options)
>>> files = recipe.install()

>>> ls(parts_dir, 'svn-packages')
my_package

>>> ls(parts_dir, 'svn-packages', 'my_package')
__init__.py
README.txt
sub

Test update:

>>> recipe.update() is not None
True

Release files for iw.recipe.subversion 0.1dev-r6550

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for iw.recipe.subversion 0.1dev-r6550
File Interpreter ABI Platform
iw.recipe.subversion-0.1dev_r6550-py2.4.egg Legacy Egg format - - Details

Release files / iw.recipe.subversion-0.1dev_r6550-py2.4.egg

Download URL iw.recipe.subversion-0.1dev_r6550-py2.4.egg
Size 29.2 kB
Tags Egg
SHA-256 checksum
How to use checksums
e88d365b61b5d63d3d371f23a35e4e3b1d76ad20d49041e318be4941f3a5f1cd
BLAKE2b-256 checksum
How to use checksums
a1ce8877261bd2c256848c4e86e090fcdceee69a126e22dc6688c126e6d013d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page