You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
- added alma_get_sources tool - added tests for common functions - added setup.py and the project uploaded to PyPi
|2 years ago|
|almalinux/gitutils||2 years ago|
|tests/gitutils||2 years ago|
|.gitignore||2 years ago|
|LICENSE||2 years ago|
|README.md||2 years ago|
|pyproject.toml||2 years ago|
|setup.py||2 years ago|
Utilities for working with the AlmaLinux OS Git server.
alma_get_sources script downloads sources and BLOBs from the AlmaLinux
alma_get_sources in a git project root directory:
- Clone an AlmaLinux RPM package git project from git.almalinux.org.
- Switch to a required branch.
- Run the
alma_blob_upload script uploads sources and BLOBs to the AlmaLinux
Create an AWS credentials file ~/.aws/credentials with the following content:
[default] aws_access_key_id = YOUR_ACCESS_KEY aws_secret_access_key = YOUR_SECRET_KEY
The utility supports two types of input: a CentOS git repository metadata file or a list of files to upload.
For CentOS repositories workflow will be the following:
- Install the
get_sources.shscript from the centos-git-common repository.
- Clone a project and download its sources as described on the CentOS Wiki.
- Run the
alma_blob_uploadtool (don't forget to replace
PROJECT_NAMEwith an actual project name):
$ alma_blob_upload -i .PROJECT_NAME.metadata
Alternatively, you can upload a list of files in the following way:
$ alma_blob_upload -f SOURCES/FILE_1 SOURCES/FILE_N
alma_blob_upload utility can also generate a CentOS-compatible metadata
$ alma_blob_upload -o .PROJECT_NAME.metadata -f SOURCES/FILE_1 SOURCES/FILE_N
Licensed under the GPLv3 license, see the LICENSE file for details.