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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ansys_tools_repo_sync-1.5.1.tar.gz.
File metadata
- Download URL: ansys_tools_repo_sync-1.5.1.tar.gz
- Upload date:
- Size: 113.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e977d3a42b8c37131cce0d4a1556539f62ad86665b8a4eab69759cdcc78f864d
|
|
| MD5 |
99906d40f19d5e68deed5f8de269b046
|
|
| BLAKE2b-256 |
b86d3da67f7e9e5bcb433512a4b3b207b9b3cbf26c1bfb0badada43aab9e7055
|
Provenance
The following attestation bundles were made for ansys_tools_repo_sync-1.5.1.tar.gz:
Publisher:
ci_cd.yml on ansys/ansys-tools-repo-sync
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ansys_tools_repo_sync-1.5.1.tar.gz -
Subject digest:
e977d3a42b8c37131cce0d4a1556539f62ad86665b8a4eab69759cdcc78f864d - Sigstore transparency entry: 1030866863
- Sigstore integration time:
-
Permalink:
ansys/ansys-tools-repo-sync@14811bc62ff6c933188c9cfc4efb5b9a23753155 -
Branch / Tag:
refs/tags/v1.5.1 - Owner: https://github.com/ansys
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci_cd.yml@14811bc62ff6c933188c9cfc4efb5b9a23753155 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ansys_tools_repo_sync-1.5.1-py3-none-any.whl.
File metadata
- Download URL: ansys_tools_repo_sync-1.5.1-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27456cd7e335cc7355300b04ca014c4753ffb8350d0f24d56a0f12cbb018e20e
|
|
| MD5 |
daf027dd46d27d792fe45a68df23bf27
|
|
| BLAKE2b-256 |
5b654de7bf0990cdbb87dfddfdc6fb6b2723a21ff76ca5fb6d16172ba996bf33
|
Provenance
The following attestation bundles were made for ansys_tools_repo_sync-1.5.1-py3-none-any.whl:
Publisher:
ci_cd.yml on ansys/ansys-tools-repo-sync
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ansys_tools_repo_sync-1.5.1-py3-none-any.whl -
Subject digest:
27456cd7e335cc7355300b04ca014c4753ffb8350d0f24d56a0f12cbb018e20e - Sigstore transparency entry: 1030866934
- Sigstore integration time:
-
Permalink:
ansys/ansys-tools-repo-sync@14811bc62ff6c933188c9cfc4efb5b9a23753155 -
Branch / Tag:
refs/tags/v1.5.1 - Owner: https://github.com/ansys
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci_cd.yml@14811bc62ff6c933188c9cfc4efb5b9a23753155 -
Trigger Event:
push
-
Statement type: