Skip to main content

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.

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)

Source distribution for van.reposync 1.0.1
File Size Uploaded
van.reposync-1.0.1.tar.gz 279.9 kB 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

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0.0

1 release file

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