[copr] master: [API] friendly notification about invalid/expired token (e6fee85)
by asamalik@fedoraproject.org
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit e6fee858062bf4a75893035e39b35022c36d6c1d
Author: Adam Samalik <asamalik(a)redhat.com>
Date: Wed Aug 20 10:56:17 2014 +0200
[API] friendly notification about invalid/expired token
>---------------------------------------------------------------
frontend/coprs_frontend/coprs/views/misc.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/frontend/coprs_frontend/coprs/views/misc.py b/frontend/coprs_frontend/coprs/views/misc.py
index 4652ab4..c557511 100644
--- a/frontend/coprs_frontend/coprs/views/misc.py
+++ b/frontend/coprs_frontend/coprs/views/misc.py
@@ -108,7 +108,9 @@ def api_login_required(f):
token_auth = True
flask.g.user = user
if not token_auth:
- output = {"output": "notok", "error": "Login invalid/expired"}
+ output = {"output": "notok", "error": "Login invalid/expired. " \
+ "Please visit https://copr.fedoraproject.org/api " \
+ "get or renew your API token."}
jsonout = flask.jsonify(output)
jsonout.status_code = 500
return jsonout
9 years, 9 months
[copr] master: Automatic commit of package [python-copr-client] release [1.44-1]. (0b55193)
by vgologuz@fedoraproject.org
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit 0b55193b94ebe78de6f0436e8834977bea849f4c
Author: Valentin Gologuzov <vgologuz(a)redhat.com>
Date: Tue Aug 19 19:55:26 2014 +0200
Automatic commit of package [python-copr-client] release [1.44-1].
>---------------------------------------------------------------
python/python-copr-client.spec | 5 ++++-
rel-eng/packages/python-copr-client | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/python/python-copr-client.spec b/python/python-copr-client.spec
index 9cdfec4..517a060 100644
--- a/python/python-copr-client.spec
+++ b/python/python-copr-client.spec
@@ -5,7 +5,7 @@
%global with_python3 1
Name: python-copr-client
-Version: 1.43
+Version: 1.44
Release: 1%{?dist}
Summary: Python interface for Copr
@@ -164,6 +164,9 @@ popd
%endif
%changelog
+* Tue Aug 19 2014 Valentin Gologuzov <vgologuz(a)redhat.com> 1.44-1
+- [python-client] fixed BuildRequires
+
* Tue Aug 19 2014 Valentin Gologuzov <vgologuz(a)redhat.com> 1.43-1
- [python-client] Added new package
- [cli] cli now access api through python-client
diff --git a/rel-eng/packages/python-copr-client b/rel-eng/packages/python-copr-client
index d2d0236..1b19557 100644
--- a/rel-eng/packages/python-copr-client
+++ b/rel-eng/packages/python-copr-client
@@ -1 +1 @@
-1.43-1 python/
+1.44-1 python/
9 years, 9 months
[copr] master: [python-client] fixed BuildRequires (d68a9c0)
by vgologuz@fedoraproject.org
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit d68a9c090486cdefc237e8a6bd4f1bb531f34e29
Author: Valentin Gologuzov <vgologuz(a)redhat.com>
Date: Tue Aug 19 19:54:57 2014 +0200
[python-client] fixed BuildRequires
>---------------------------------------------------------------
python/python-copr-client.spec | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/python/python-copr-client.spec b/python/python-copr-client.spec
index 5e907bc..9cdfec4 100644
--- a/python/python-copr-client.spec
+++ b/python/python-copr-client.spec
@@ -24,12 +24,16 @@ BuildRequires: util-linux
BuildRequires: python-setuptools
BuildRequires: python-requests
BuildRequires: python-six
+BuildRequires: python-mock
+BuildRequires: pytest
BuildRequires: python2-devel
%if 0%{?with_python3}
-BuildRequires: python3-devel
-BuildRequires: python3-setuptools
-BuildRequires: python3-pytest
-BuildRequires: python3-mock
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pytest
+BuildRequires: python3-mock
+BuildRequires: python3-requests
+BuildRequires: python3-six
%endif # if with_python3
#for doc package
BuildRequires: epydoc
9 years, 9 months
[copr] master: [backend] fix of builder test (cc4cd96)
by asamalik@fedoraproject.org
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit cc4cd965aed3f680ae26197ef68d8ab692b54077
Author: Adam Samalik <asamalik(a)redhat.com>
Date: Tue Aug 19 16:59:07 2014 +0200
[backend] fix of builder test
>---------------------------------------------------------------
backend/backend/dispatcher.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/backend/backend/dispatcher.py b/backend/backend/dispatcher.py
index 3ab9a24..52777e9 100644
--- a/backend/backend/dispatcher.py
+++ b/backend/backend/dispatcher.py
@@ -322,7 +322,7 @@ class Worker(multiprocessing.Process):
pattern=ipaddr,
forks=1,
transport="ssh",
- timeout="500")
+ timeout=500)
connection.module_name = "shell"
connection.module_args = "echo hello"
res = connection.run()
9 years, 9 months
[copr] master: [frontend] starting builds highlighted on the waiting list (fa8aaa9)
by asamalik@fedoraproject.org
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit fa8aaa93cb3e650bf31921e4890d3dfe4331e145
Author: Adam Samalik <asamalik(a)redhat.com>
Date: Tue Aug 19 12:37:37 2014 +0200
[frontend] starting builds highlighted on the waiting list
>---------------------------------------------------------------
.../coprs/templates/status/waiting.html | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/frontend/coprs_frontend/coprs/templates/status/waiting.html b/frontend/coprs_frontend/coprs/templates/status/waiting.html
index f818022..e57c4e2 100644
--- a/frontend/coprs_frontend/coprs/templates/status/waiting.html
+++ b/frontend/coprs_frontend/coprs/templates/status/waiting.html
@@ -21,7 +21,13 @@
</tr>
{% for task in tasks %}
<tr>
- <td>{{ task.build.submitted_on | time_ago }}</td>
+ <td>
+ {% if task.state == "starting" %}
+ <span class="build-starting">starting</span>
+ {% else %}
+ {{ task.build.submitted_on | time_ago }}
+ {% endif %}
+ </td>
<td><a href="{{ url_for('coprs_ns.copr_detail', username = task.build.copr.owner.name, coprname = task.build.copr.name) }}">{{task.build.copr.owner.name}}/{{task.build.copr.name}}</a></td>
<td><a href="{{ url_for('coprs_ns.copr_build', username = task.build.copr.owner.name, coprname = task.build.copr.name, build_id = task.build_id) }}">{{task.build_id}}</a></td>
<td>{{ task.build.pkgs | pkg_name }} </td>
9 years, 9 months
[copr] master: [frontend] project name can not be just number (4610af2)
by asamalik@fedoraproject.org
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit 4610af2f53e68a0e4332ac35f1890f4a546d6ca6
Author: Adam Samalik <asamalik(a)redhat.com>
Date: Tue Aug 19 15:48:57 2014 +0200
[frontend] project name can not be just number
>---------------------------------------------------------------
frontend/coprs_frontend/coprs/forms.py | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/frontend/coprs_frontend/coprs/forms.py b/frontend/coprs_frontend/coprs/forms.py
index 840000c..e6e962e 100644
--- a/frontend/coprs_frontend/coprs/forms.py
+++ b/frontend/coprs_frontend/coprs/forms.py
@@ -56,6 +56,18 @@ class CoprUniqueNameValidator(object):
raise wtforms.ValidationError(self.message.format(field.data))
+class NameNotNumberValidator(object):
+
+ def __init__(self, message=None, owner=None):
+ if not message:
+ message = "Project's name can not be just number."
+ self.message = message
+
+ def __call__(self, form, field):
+ if field.data.isdigit():
+ raise wtforms.ValidationError(self.message.format(field.data))
+
+
class StringListFilter(object):
def __call__(self, value):
@@ -95,7 +107,8 @@ class CoprFormFactory(object):
re.compile(r"^[\w.-]+$"),
message="Name must contain only letters,"
"digits, underscores, dashes and dots."),
- CoprUniqueNameValidator(owner=owner)
+ CoprUniqueNameValidator(owner=owner),
+ NameNotNumberValidator()
])
description = wtforms.TextAreaField("Description")
9 years, 9 months
[copr] master: [cli] In case of missing config show proper message, hide traceback. (3ac3e6b)
by vgologuz@fedoraproject.org
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit 3ac3e6bd115b516840a16168649c791d4ad4d968
Author: Valentin Gologuzov <vgologuz(a)redhat.com>
Date: Tue Aug 19 16:08:19 2014 +0200
[cli] In case of missing config show proper message, hide traceback.
>---------------------------------------------------------------
cli/copr_cli/main.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/cli/copr_cli/main.py b/cli/copr_cli/main.py
index e6de5a5..b575b48 100644
--- a/cli/copr_cli/main.py
+++ b/cli/copr_cli/main.py
@@ -14,7 +14,11 @@ from copr_client import CoprClient
import copr_client.client.exceptions as copr_exceptions
-client = CoprClient.create_from_file_config()
+try:
+ client = CoprClient.create_from_file_config()
+except copr_exceptions.CoprNoConfException as e:
+ print(e)
+ sys.exit(1)
def _watch_builds(build_ids):
9 years, 9 months
[copr] master: Automatic commit of package [python-copr-client] release [1.43-1]. (efbed19)
by vgologuz@fedoraproject.org
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit efbed1997b0c7ac5b81cdce6eb85ab5c440428b3
Author: Valentin Gologuzov <vgologuz(a)redhat.com>
Date: Tue Aug 19 14:50:14 2014 +0200
Automatic commit of package [python-copr-client] release [1.43-1].
>---------------------------------------------------------------
python/python-copr-client.spec | 6 +++++-
rel-eng/packages/python-copr-client | 1 +
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/python/python-copr-client.spec b/python/python-copr-client.spec
index 13941fe..5e907bc 100644
--- a/python/python-copr-client.spec
+++ b/python/python-copr-client.spec
@@ -5,7 +5,7 @@
%global with_python3 1
Name: python-copr-client
-Version: 1.42
+Version: 1.43
Release: 1%{?dist}
Summary: Python interface for Copr
@@ -160,6 +160,10 @@ popd
%endif
%changelog
+* Tue Aug 19 2014 Valentin Gologuzov <vgologuz(a)redhat.com> 1.43-1
+- [python-client] Added new package
+- [cli] cli now access api through python-client
+
* Tue Jul 22 2014 Miroslav Suchý <msuchy(a)redhat.com> 1.36-1
- use correct name of variable
diff --git a/rel-eng/packages/python-copr-client b/rel-eng/packages/python-copr-client
new file mode 100644
index 0000000..d2d0236
--- /dev/null
+++ b/rel-eng/packages/python-copr-client
@@ -0,0 +1 @@
+1.43-1 python/
9 years, 9 months