Read more about source types in the User Documentation.
Parameters when source_type=scm is used. See User Documentation for more information.
Field | Type | Description |
---|---|---|
clone_url | str | |
committish | str | |
subdirectory | str | |
spec | str | |
scm_type | str | “git”, “svn” |
source_build_method | str | See User documentation for more info |
Parameters when source_type=rubygems is used. See User Documentation for more information.
Field | Type | Description |
---|---|---|
gem_name | str |
Parameters when source_type=pypi is used. See User Documentation for more information.
Field | Type | Description |
---|---|---|
pypi_package_name | str | |
pypi_package_version | str | |
spec_template | str | |
python_versions | list of int |
Parameters when source_type=custom is used. See User Documentation for more information.
Field | Type | Description |
---|---|---|
script | str | |
builddeps | str | |
resultdir | str | |
chroot | str |
client.package_proxy.add("@copr", "foo", "mypackage",
source_type="rubygems",
source={"gem_name": "mygem"})