Skip to main content

Synchronize the content of two different repositories.

Project description

PyAnsys Python PyPI GH-CI Codecov MIT Black pre-commit.ci status

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
images/repo_sync.png

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ansys_tools_repo_sync-1.0.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

ansys_tools_repo_sync-1.0.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file ansys_tools_repo_sync-1.0.0.tar.gz.

File metadata

  • Download URL: ansys_tools_repo_sync-1.0.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for ansys_tools_repo_sync-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d5536b9fb2a512ecde3da55979da1e04ce983c708dea66208212d019691a31eb
MD5 a4e7d06330eb634a32367e67873b0c05
BLAKE2b-256 99527aae5076f4186d7e8680afe6d79ab80dcba533f93225eac9caf08961a02b

See more details on using hashes here.

File details

Details for the file ansys_tools_repo_sync-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ansys_tools_repo_sync-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1cf13acff9494e459ed85906b3e8ad932da24f5a6c40ca0516b1a5cbe59f60a
MD5 5c163a507c24ffb204cd9ad01c593514
BLAKE2b-256 3c1d9f9172ade63cafcc2963bbfcb45a53896825f7b8a3d32f8f8607d72dbf7f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page