Python script for building git projects in Copr
Project description
Copr Builder
A simple program for building RPM packages from Git repositories in Copr.
Usage
usage: copr-builder [-h] [-v] [-p [PROJECTS [PROJECTS ...]]] [-c CONFIG] Copr builder optional arguments: -h, --help show this help message and exit -v, --verbose print debug messages -p [PROJECTS [PROJECTS ...]], --projects [PROJECTS [PROJECTS ...]] projects to build; if not given, all projects from config will be built -c CONFIG, --config CONFIG config file location
Config file structure
[project_name] copr_user = username copr_repo = reponame package = mypackage git_url = https://github.com/<user>/mypackage pre_archive_cmd = ./autogen.sh && ./configure archive_cmd = make local git_branch = 1.1-devel git_merge_branch = 1.1-release [another_project_name] copr_user = ...
project_name – some unique name for project/package
copr_user – FAS username or groupname
copr_repo – name of the Copr repository (without the username!)
package – name of the package that will be built
a spec file must be in the repo
pre_archive_cmd – (optional) command which will be run before the spec file is read. This can be used to generate or download spec file.
archive_cmd – command for creating archive from the source (e.g. “make local” or “git archive HEAD –prefix=package/ -o package.tar.gz”)
this command must create a single archive (.tar.[gz|bz|bz2|xz]) in the current directory
git_url – URL of the Git repo (will be used for “git clone”)
git_branch – branch to use from the Git repo (e.g. “master”)
git_merge_branch – optional; if you need to merge another branch into git_branch before running the archive_cmd
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 copr-builder-1.0.tar.gz
.
File metadata
- Download URL: copr-builder-1.0.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99d36d425c9d59a238fb0c7b710e4f82cd28772a1c2e0b0d361625bf1ec15b63 |
|
MD5 | 61df21441f9f65b40fb7289e768a16f7 |
|
BLAKE2b-256 | 8dec78c6c57d46e2c96fe908b11a8ee0a31adf1a64574a603224430d42eacc1a |
File details
Details for the file copr_builder-1.0-py3-none-any.whl
.
File metadata
- Download URL: copr_builder-1.0-py3-none-any.whl
- Upload date:
- Size: 18.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0658a41cd7934541d81d8c5208c3033992400812787b6f18bcaa5211b6e0c69 |
|
MD5 | fa82c8a77f90d0bdacb78c025470e937 |
|
BLAKE2b-256 | fcd9f966d452f0eea6fcd203ef9a7d60a01333d1e28676ce36b1502e0ec70b8f |