semvec/pypi-packages huggingface dataset:
wsync 0.9.6
A small utility for synchronizing a local folder with a remote web repository
Keywords: wsync,sync,http,https,web

wsync
=====

|PyPI| |License: MIT| |Build Status| |AppVeyor Build Status|
|Documentation Status| |Coveralls| |Code Health|

A small Python utility/module for synchronizing a local folder with a
remote web repository.

Install
-------

Just do

::

        pip install wsync

Usage
-----

As a standalone script
~~~~~~~~~~~~~~~~~~~~~~

Suppose that you need to mantain a local mirror of the remote repository
at ``http://cdimage.debian.org/debian-cd/current/source/iso-dvd/``.

Then it is enough to do as follows:

::

        wsync  \
            --digest-list http://cdimage.debian.org/debian-cd/current/source/iso-dvd/SHA1SUMS  \
            --remote-repo http://cdimage.debian.org/debian-cd/current/source/iso-dvd/          \
            --local-copy ~/debian-iso-dvd

Of course, any subsequent execution of the script will detect any change
and download what is needed.

You can also use the
`testing <https://github.com/reale/wsync/tree/testing>`_
branch of the GitHub repository for a quick test: just do:

::

        wsync  \
            --digest-list https://raw.githubusercontent.com/reale/wsync/testing/SHA1SUMS  \
            --remote-repo https://raw.githubusercontent.com/reale/wsync/testing/

As a module
~~~~~~~~~~~

As before:

::

        from wsync import *

        digest_list_url = "http://cdimage.debian.org/debian-cd/current/source/iso-dvd/SHA1SUMS"
        remote_repo_url = "http://cdimage.debian.org/debian-cd/current/source/iso-dvd/"
        local_copy = "~/debian-iso-dvd"

        wsync = Wsync(digest_list_url, remote_repo_url, local_copy)

        wsync.sync()

Or:

::

        digest_list_url = "https://raw.githubusercontent.com/reale/wsync/testing/SHA1SUMS"
        remote_repo_url = "https://raw.githubusercontent.com/reale/wsync/testing/"

.. |PyPI| image:: https://img.shields.io/pypi/v/wsync.svg
   :target: https://pypi.python.org/pypi/wsync
.. |License: MIT| image:: https://img.shields.io/badge/License-MIT-yellow.svg
   :target: https://opensource.org/licenses/MIT
.. |Build Status| image:: https://travis-ci.com/reale/wsync.svg?branch=master
   :target: https://travis-ci.com/reale/wsync
.. |AppVeyor Build Status| image:: https://ci.appveyor.com/api/projects/status/github/reale/wsync?svg=true
   :target: https://ci.appveyor.com/project/reale/wsync/branch/master
.. |Documentation Status| image:: https://readthedocs.org/projects/wsync/badge/?version=latest
   :target: http://wsync.readthedocs.io/en/latest/?badge=latest
.. |Coveralls| image:: https://coveralls.io/repos/github/reale/wsync/badge.svg?branch=master
   :target: https://coveralls.io/github/reale/wsync?branch=master
.. |Code Health| image:: https://landscape.io/github/reale/wsync/master/landscape.svg?style=flat
   :target: https://landscape.io/github/reale/wsync/master
tripleo-repos 0.1.0
A tool for managing tripleo repos

tripleo-repos
=============

A tool for managing tripleo repos from places like RDO Trunk and Ceph.

See: https://blogs.rdoproject.org/2016/04/newbie-in-rdo-2-rdo-trunk-from-a-bird-s-eye-view/

Also ensures yum-plugin-priorities is installed since the RDO Trunk repos
require that to work sanely.

.. note:: The tool will remove any delorean* repos at the target location
          to avoid conflicts with older repos. This means you must specify
          all of the repos you want to enable in one tripleo-repos call.

Examples
--------
Install current master RDO Trunk repo and the deps repo::

    tripleo-repos current

Install current-tripleo RDO Trunk repo and the deps repo::

    tripleo-repos current-tripleo

Install the current-tripleo-dev repo. This will also pull current and deps,
and will adjust the priorities of each repo appropriately::

    tripleo-repos current-tripleo-dev

Install the mitaka RDO Trunk repo and deps::

    tripleo-repos -b mitaka current

Write repos to a different path::

    tripleo-repos -o ~/test-repos current

Install the current-tripleo, deps, and ceph repos. NOTE: The Ceph repo is
installed from a package and thus does not respect -o::

    tripleo-repos current-tripleo ceph

TripleO
```````

To use this for TripleO development, replace the tripleo.sh --repo-setup
step with the following::

    git clone https://github.com/cybertron/tripleo-repos
    cd tripleo-repos
    sudo ./setup.py install
    sudo tripleo-repos current-tripleo-dev ceph

Now you're ready to install the undercloud::

    tripleo.sh --undercloud

And to build images::

    export OVERCLOUD_IMAGES_DIB_YUM_REPO_CONF="$(ls /etc/yum.repos.d/delorean* /etc/yum.repos.d/CentOS-Ceph-*)"
    tripleo.sh --overcloud-images

.. note:: This is a tool for bootstrapping the repo setup for TripleO,
    so it should not have any runtime OpenStack dependencies
    or we end up in a chicken-and-egg pickle, and let's be honest - no one wants a
    chicken and egg pickle.