Synchronize the content of two different repositories.
Project description
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.
By default, nothing is synced to the secondary repository (in order to avoid undesired content). For that purpose, users have to provide a manifest file (in ASCII format) that contains regular expressions for the files accepted.
For example, if we wanted to sync all *.py files, one should generate a manifest file as follows:
*.py
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.
pip install ansys-tools-repo-sync
Then, it can be used in the considered workflow with the appropriate arguments.
Run it as follows:
repo-sync \
--token <token> \
--owner <organization-name> \
--repository <repository-name> \
--from-dir <path-to-dir-containing-files-to-sync> \
--to-dir <target-dir-for-sync> \
--include-manifest <path-to-manifest>
The options above are compulsory in order to run the tool. If an option is missing, the operation will fail. For more information on all the available options for this tool, users can run:
repo-sync --help
Issues
To post issues, questions, and code, go to ansys-tools-repo-sync Issues.
License
ansys-tools-repo-sync is licensed under the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ansys_tools_repo_sync-1.2.0.tar.gz
.
File metadata
- Download URL: ansys_tools_repo_sync-1.2.0.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b434d4b2d1fb65fda86451ff5b5471ed50cbd97ac978772abe0beacbf1708c7 |
|
MD5 | 5fe0380d87960e7c7e440b5b710da314 |
|
BLAKE2b-256 | a08a318292a4dc75dba78eaa1c575ac9fbb17919d08347147445abe639dc5dc2 |
File details
Details for the file ansys_tools_repo_sync-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: ansys_tools_repo_sync-1.2.0-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5486ce1e02d1ac43d690c1479d9104d97da2fd0de5a997702dc1498767a772f9 |
|
MD5 | d23e1fb5b584ef50614e09d5b292728a |
|
BLAKE2b-256 | b4a8f35a3a2bdab5a464d5c9da8bc5655087513b3a7afbed4691d3d944721f8c |