Metadata-Version: 2.1
Name: ansys-tools-repo-sync
Version: 0.1.15
Summary: Synchronize the content of two different repositories.
Home-page: https://github.com/ansys/ansys-tools-repo-sync
License: MIT
Author: ANSYS, Inc.
Maintainer: PyAnsys developers
Maintainer-email: pyansys.support@ansys.com
Requires-Python: >=3.7
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Provides-Extra: docs
Provides-Extra: style
Provides-Extra: test
Requires-Dist: Sphinx (>=4.4,<5.0); extra == "docs"
Requires-Dist: click (>=8.0.4,<9.0.0)
Requires-Dist: codespell (>=2.1,<3.0); extra == "style"
Requires-Dist: flake8 (>=3.9,<4.0); extra == "style"
Requires-Dist: importlib-metadata (>=4.0,<5.0); python_version < "3.8"
Requires-Dist: numpydoc (>=1.2,<2.0); extra == "docs"
Requires-Dist: pre-commit (>=2.15.0,<3.0.0)
Requires-Dist: pyansys_sphinx_theme (>=0.2,<0.3); extra == "docs"
Requires-Dist: pygithub (==1.55)
Requires-Dist: pytest (>=7.0,<8.0); extra == "test"
Requires-Dist: pytest-cov (>=3.0,<4.0); extra == "test"
Requires-Dist: sphinx-copybutton (>=0.4,<0.5); extra == "docs"
Description-Content-Type: text/x-rst

*********************
ansys-tools-repo-sync
*********************

The ``ansys-tools-repo-sync`` library is intended to synchronize the content
of two different repositories.

What does this library do?
~~~~~~~~~~~~~~~~~~~~~~~~~~

For instance, due to intellectual properties concerns, it might not be possible
to expose publicly the entire content of a private repository.
Its owner could decide to have a second repository, a public one.
Part of the content for this public repo would come from the private repository.

``ansys-tools-repo-sync`` allows you to do so by copying a folder and its content
from one repo to the other.
In addition, it is possible to filter the type extension file authorized to be copied.

.. image:: doc/images/repo_sync.png
    :align: center


How to use it?
~~~~~~~~~~~~~~

A common usage for this tool consist to integrate it in one of your CI/CD pipeline or workflow.
Firstly, the tool must be installed.

.. code:: bash

    pip install ansys-tools-repo-sync


Then, it can be used in the considered workflow with the appropriate arguments.

Run it as follows:

.. code:: bash

    repo-sync --manifest path_to_manifest_file --repository target-repository-name --token github_token --organization ansys --protos-path path_to_protos_directory --dry-run

.. note::
    The ``--dry-run`` flag can be set while establishing the entire
    workflow for the first time. It helps preventing unnecessary commits
    of sensitive data. It will print the content expected to be committed in the
    public repository.

Issues
------
To post issues, questions, and code, go to `ansys-tools-repo-sync Issues
<https://github.com/ansys/ansys-tools-repo-sync/issues>`_.



License
-------
``ansys-tools-repo-sync`` is licensed under the MIT license.

