[packagedb-cli] Let pkgdb2client rely on pkgdb2version to set its version information
by Pierre-YvesChibon
commit b4544ec666b268c08fb7abd3793a3903b9495e26
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Tue May 20 11:40:36 2014 +0200
Let pkgdb2client rely on pkgdb2version to set its version information
pkgdb2client.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/pkgdb2client.py b/pkgdb2client.py
index d3ce12d..975f2be 100644
--- a/pkgdb2client.py
+++ b/pkgdb2client.py
@@ -20,10 +20,12 @@ import logging
from fedora.client import AuthError
import requests
+import pkgdb2version
+
logging.basicConfig()
LOG = logging.getLogger("pkgdb2client")
-__version__ = '2.2'
+__version__ = pkgdb2version.__version__
PKGDB_URL = r'https://admin.fedoraproject.org/pkgdb/'
10 years
[packagedb-cli] Add a dedicated pkgdb2version file that contains only the version information
by Pierre-YvesChibon
commit 5a4cdbe0f663d01c460207ed7b3b17036c0efab2
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Tue May 20 11:40:16 2014 +0200
Add a dedicated pkgdb2version file that contains only the version information
pkgdb2version.py | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/pkgdb2version.py b/pkgdb2version.py
new file mode 100644
index 0000000..b92c3cb
--- /dev/null
+++ b/pkgdb2version.py
@@ -0,0 +1,18 @@
+# -*- coding: utf-8 -*-
+
+"""
+# pkgdb2 - a commandline frontend for the Fedora package database v2
+#
+# Copyright (C) 2014 Red Hat Inc
+# Copyright (C) 2013 Pierre-Yves Chibon
+# Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or (at
+# your option) any later version.
+# See http://www.gnu.org/copyleft/gpl.html for the full text of the
+# license.
+"""
+
+__version__ = '2.2'
10 years
[packagedb-cli: 3/3] Order the users in the ACL output
by Pierre-YvesChibon
commit ff3299ab94ca9b036dc1b858c9d13389ceb66eae
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 17 16:57:46 2014 +0200
Order the users in the ACL output
Fixes https://fedorahosted.org/packagedb-cli/ticket/19
pkgdb2_cli.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/pkgdb2_cli.py b/pkgdb2_cli.py
index 42a4869..2f9a742 100644
--- a/pkgdb2_cli.py
+++ b/pkgdb2_cli.py
@@ -415,7 +415,8 @@ def do_acl(args):
# print ACL information
print "{0}ACLs:".format(" " * 8)
acls = _get_acls_info(pkg['acls'])
- for user in acls:
+ users = sorted(acls, key=lambda user: user.replace('group::', ''))
+ for user in users:
if user.startswith('group::'):
tmp = " " * 3 + user
else:
10 years
[packagedb-cli: 2/3] Merge pull request #5 from fedora-infra/feature/docstring-fixes
by Pierre-YvesChibon
commit 4bd9eb11de5e19ef01dd360f763b4d952c76c0a9
Merge: b342b91 e1a60c1
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 17 00:23:03 2014 +0200
Merge pull request #5 from fedora-infra/feature/docstring-fixes
Docstring fixes
pkgdb2client.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
10 years
[packagedb-cli: 1/3] Fix a few docstring typos
by Pierre-YvesChibon
commit e1a60c1610d0ec09593ea13140dda1574ecd28ac
Author: Luke Macken <lmacken(a)redhat.com>
Date: Fri May 16 14:52:06 2014 -0600
Fix a few docstring typos
pkgdb2client.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pkgdb2client.py b/pkgdb2client.py
index 12ed64b..d3ce12d 100644
--- a/pkgdb2client.py
+++ b/pkgdb2client.py
@@ -401,7 +401,7 @@ class PkgDB(object):
If True, it will return results for all collections (including
EOL).
If False, it will return results only for non-EOL collections.
- :type page: boolean
+ :type eol: boolean
:return: the json object returned by the API
:rtype: dict
:raise PkgDBException: if the API call does not return a http code
@@ -449,7 +449,7 @@ class PkgDB(object):
If True, it will return results for all collections (including
EOL).
If False, it will return results only for non-EOL collections.
- :type page: boolean
+ :type eol: boolean
:kwarg poc: a boolean specifying whether the results should be
restricted to ACL for which the provided packager is the point
of contact or not. Defaults to None.
@@ -621,7 +621,7 @@ class PkgDB(object):
If True, it will return results for all collections (including
EOL).
If False, it will return results only for non-EOL collections.
- :type page: boolean
+ :type eol: boolean
:kwarg page: The page number to retrieve. If page is 0 or lower or
equal to ``all`` then all pages are returned. Defaults to 0.
:type page: int or ``all``
10 years
[packagedb-cli] (3 commits) Non-fast-forward update to branch master
by Pierre-YvesChibon
The branch 'master' was changed in a way that was not a fast-forward update.
NOTE: This may cause problems for people pulling from the branch. For more information,
please see:
http://live.gnome.org/Git/Help/NonFastForward
Commits removed from the branch:
f76d897... Order the users in the ACL output
Commits added to the branch:
e1a60c1... Fix a few docstring typos
4bd9eb1... Merge pull request #5 from fedora-infra/feature/docstring-f
ff3299a... Order the users in the ACL output
10 years
[packagedb-cli] Order the users in the ACL output
by Pierre-YvesChibon
commit f76d8979556c0ad98def988e770f04f677e6370d
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 17 16:57:46 2014 +0200
Order the users in the ACL output
Fixes https://fedorahosted.org/packagedb-cli/ticket/19
pkgdb2_cli.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/pkgdb2_cli.py b/pkgdb2_cli.py
index 42a4869..2f9a742 100644
--- a/pkgdb2_cli.py
+++ b/pkgdb2_cli.py
@@ -415,7 +415,8 @@ def do_acl(args):
# print ACL information
print "{0}ACLs:".format(" " * 8)
acls = _get_acls_info(pkg['acls'])
- for user in acls:
+ users = sorted(acls, key=lambda user: user.replace('group::', ''))
+ for user in users:
if user.startswith('group::'):
tmp = " " * 3 + user
else:
10 years
[packagedb-cli] Order the ACL per branches
by Pierre-YvesChibon
commit b342b9186a20d60c72e384b31e4a597d7c712003
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri May 16 12:38:29 2014 +0200
Order the ACL per branches
Fixes https://fedorahosted.org/packagedb-cli/ticket/19
pkgdb2_cli.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/pkgdb2_cli.py b/pkgdb2_cli.py
index 5a507f0..42a4869 100644
--- a/pkgdb2_cli.py
+++ b/pkgdb2_cli.py
@@ -387,7 +387,9 @@ def do_acl(args):
'component': args.package})
print "{0} bugs open (new, assigned, needinfo)".format(len(bugbz))
- for pkg in output['packages']:
+ for pkg in sorted(output['packages'],
+ key=lambda pkg: pkg['collection']['branchname'],
+ reverse=True):
if pkg['collection']['status'] == 'EOL':
continue
owner = pkg['point_of_contact']
10 years
[packagedb-cli] Created tag v2.2
by Pierre-YvesChibon
The signed tag 'v2.2' was created.
Tagger: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu May 15 16:40:35 2014 +0200
Release 2.2
Changes since the last tag 'v2.1':
Pierre-Yves Chibon (7):
Add classifiers to setup.py
Replace the `devel` branch by `master` as it is in pkgdb2
Do not called a variable that does not exist
Change the layout a bit for groups
Move get_critpath_packages to rely on the extras critpath endpoint
Log debug the URL called before doing the call rather than after
Bump to 2.2
10 years
[packagedb-cli] Bump to 2.2
by Pierre-YvesChibon
commit fcf05c7a3f187d86d95d2baf36f909f65df8aadc
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu May 15 16:40:22 2014 +0200
Bump to 2.2
pkgdb2client.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pkgdb2client.py b/pkgdb2client.py
index 7b2443e..12ed64b 100644
--- a/pkgdb2client.py
+++ b/pkgdb2client.py
@@ -23,7 +23,7 @@ import requests
logging.basicConfig()
LOG = logging.getLogger("pkgdb2client")
-__version__ = '2.1'
+__version__ = '2.2'
PKGDB_URL = r'https://admin.fedoraproject.org/pkgdb/'
10 years