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)
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:
>>> archives = join(data_dir, 'archives') >>> buildout['buildout']['download-cache'] = archives >>> recipe = Recipe(buildout, name, options) >>> if isdir(archives): rmtree(archives) >>> files = recipe.install() >>> ls(archives) my_package-r2.tar.gz
Ok, now we can work offline. The package will be installed from the archives directory:
>>> rmtree(repository) >>> rmtree(parts_dir) >>> buildout['buildout']['install-from-cache'] = 'true' >>> buildout['buildout']['download-cache'] = archives >>> recipe = Recipe(buildout, name, options) >>> files = recipe.install() >>> ls(parts_dir, 'svn-packages') my_package
Metadata
Release files for iw.recipe.subversion 0.1dev-r6512
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| iw.recipe.subversion-0.1dev_r6512-py2.4.egg | Legacy Egg format | - | - | Details for iw.recipe.subversion-0.1dev_r6512-py2.4.egg |
Release files / iw.recipe.subversion-0.1dev_r6512-py2.4.egg
| Download URL | iw.recipe.subversion-0.1dev_r6512-py2.4.egg |
|---|---|
| Size | 29.0 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
ac63c097afee1aa929611913fc979456b44c64d848d992d9ff8985b9c8ea53e1
|
|
BLAKE2b-256 checksum How to use checksums |
056b6de7807285011bc4279d445d3b155c393d95a666c32ab865efd48b99c782
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for iw.recipe.subversion 0.1dev-r6512
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.