The attached patch implements a progress bar for uploading SRPMs.

Basically I've added a new "progress_callback" parameters to the create_new_build (copr/python) function which is called for each chunk of 8192 bytes sent to the server. Then I've implemented the callback on the copr-cli to update a bar object.

The bar format and library is the same than pip uses (see the screenshot attached).ss_progressbar.jpg The lib I've used is available in the fedora package python-progress but it's not available in EPEL. For that reason I did not made that a hard dependency: if the python-progress is installed the bar will show up, if not the lib just work as previously.

Is it possible to add python-progress to EPEL repo? If so I'd change the spec to make copr-cli depend on it.

Cheers,

Sergio Oliveira