Mirror a pypi-style egg repository from a debian APT repository
Disclaimer
This package depends on an as-yet-unreleased version of python-apt (0.8) for which it seems the only download location is debian’s experimental distribution. Currently the version there is 0.7.91.
While this code is tested for simple cases, a lot of the different failure modes have not been tested. So if it breaks for you, please add your failure to the automated tests and submit a patch!
Use
Doctest setup (so we can test the documentation):
>>> import tempfile, os >>> tmp_dir = tempfile.mkdtemp()>>> from van.reposync import tests >>> tests_dir = os.path.dirname(tests.__file__) >>> sources1_list = os.path.join(tmp_dir, 'sources1.list') >>> open(sources1_list, 'w').write(open(os.path.join(tests_dir, 'sources1.list'), 'r').read() % {'tests_dir': tests_dir})
We provide one binary van-reposync which can be run to perform the synchronization. The first time it’s run, it requires an –apt-sources parameter pointing at an apt sources.list file containing the apt-repositories you wish to mirror. It is important that the .list file contain matching deb and deb-src lines (mirroring needs both binary and source packages):
>>> tests.runit('van-reposync sync --root %s --apt-sources %s' % (tmp_dir, sources1_list))
After it’s done, you will see that the directory you pointed the tool at contains an apt configuration, buildout configuration and tarballs linked into a pypi-style repository.
The next run does not require the apt-sources command, and should be a lot faster:
>>> tests.runit('van-reposync sync --root %s' % tmp_dir)
TearDown
>>> import shutil >>> shutil.rmtree(tmp_dir)
Changes
1.0.1 (2009-06-15)
Fix buildout versions file syntax.
Use a very simple layout of pypi repository. All the tarballs in one directory.
1.0.0 (2009-06-15)
Initial Release.
Metadata
Release files for van.reposync 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| van.reposync-1.0.1.tar.gz | 279.9 kB | Without provenance | Details |
Release files / van.reposync-1.0.1.tar.gz
| Download URL | van.reposync-1.0.1.tar.gz |
|---|---|
| Size | 279.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
350477f8ba91d70fcfaafdf76c35f3d023c47e407486a37e9de72e772a2e291d
|
|
BLAKE2b-256 checksum How to use checksums |
a5157646f1431f47a87aa67efdc197cd2afb93ada402305e07de0f7550aa20df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for van.reposync 1.0.1
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.