[copr] master: Add a README file with basic instruction on how to setup the CLI (259f6ed)

pingou at fedoraproject.org pingou at fedoraproject.org
Sun Mar 10 08:39:52 UTC 2013


Repository : http://git.fedorahosted.org/cgit/copr.git

On branch  : master

>---------------------------------------------------------------

commit 259f6eda23ae3ffd9c442efa738a2185710b6185
Author: Pierre-Yves Chibon <pingou at pingoured.fr>
Date:   Sun Mar 10 09:35:57 2013 +0100

    Add a README file with basic instruction on how to setup the CLI


>---------------------------------------------------------------

 copr_cli/README.rst |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 51 insertions(+), 0 deletions(-)

diff --git a/copr_cli/README.rst b/copr_cli/README.rst
new file mode 100644
index 0000000..962076b
--- /dev/null
+++ b/copr_cli/README.rst
@@ -0,0 +1,51 @@
+Copr CLI
+========
+
+Copr is designed to be a lightweight buildsystem that allows contributors
+to create packages, put them in repositories, and make it easy for users
+to install the packages onto their system. Within the Fedora Project it
+is used to allow packagers to create third party repositories. 
+
+This part is a command line interface to use copr.
+
+About this project:
+-------------------
+- Webiste:  https://fedorahosted.org/copr/
+- Git: http://git.fedorahosted.org/cgit/copr.git
+- Test instance: http://copr-fe.cloud.fedoraproject.org/
+
+
+Dependencies:
+-------------
+.. _python-requests: http://docs.python-requests.org/en/latest/
+.. _python-argparse: https://pypi.python.org/pypi/argparse
+
+The CLI depends on:
+
+- python (should work on 2.5, not tested)
+- `python-argparse`_ (for python < 2.7)
+- `python-requests`_
+
+Usage:
+------
+
+.. _test instance: http://copr-fe.cloud.fedoraproject.org/
+
+- Create an account on copr `test instance`_
+- Go to the API page: http://copr-fe.cloud.fedoraproject.org/api
+- Retrieve your API token
+- Create the file ``~/.config/copr``
+- In this file add the following content
+
+::
+
+ [copr-cli]
+ username = <insert here your username>
+ token = <insert here your API token>
+
+
+You should then be able to use copr-cli to list, create and build on copr.
+
+.. note:: You can use directly copr-cli to list someone's copr repo but to create
+ a copr or build packages into an existing repo you need to authenticate
+ via the API token.



More information about the copr-devel mailing list