[packagedb-cli] (7 commits) ...Merge pull request #79 from fedora-infra/fix_create_pkg
by Pierre-YvesChibon
Summary of changes:
55063e9... Improve the README's instructions on how to get pkgdb-cli r
bd1a8a5... fedora-cert is also needed for running pkgdb-cli
97ac3d8... Merge pull request #78 from fedora-infra/improved_readme
9b2970f... Ensure the fedora-review flag has been touched
04f5db5... Merge pull request #80 from fedora-infra/fix_check_flag
d45d3a4... Fix creating new packages with monitoring and koschei statu
acd1467... Merge pull request #79 from fedora-infra/fix_create_pkg
8 years, 2 months
[packagedb-cli] Release 2.11.1
by Pierre-YvesChibon
commit 6ac8611b8ac53e16058fab4ab144aa5ac88316e5
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Mar 3 16:24:21 2016 +0100
Release 2.11.1
README.rst | 2 +-
setup.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/README.rst b/README.rst
index 4f29c81..944a7ee 100644
--- a/README.rst
+++ b/README.rst
@@ -5,7 +5,7 @@ Fedora PackageDB-cli
:Author: Pierre-Yves Chibon
:Contact: pingou(a)fedoraproject.org
:Date: Thu Mar 03 2016
-:Version: 2.11
+:Version: 2.11.1
The `PackageDB-cli` is a commande line interface to the PackageDB of Fedora.
diff --git a/setup.py b/setup.py
index 5368155..ca21a0d 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ from setuptools import setup
setup(
name='packagedb-cli',
description='A command line tool to access the Fedora Package Database.',
- version='2.11',
+ version='2.11.1',
license='GPLv2+',
download_url='https://fedorahosted.org/releases/p/a/packagedb-cli/',
url='https://fedorahosted.org/packagedb-cli/',
8 years, 2 months
[packagedb-cli: 2/2] Merge pull request #77 from fedora-infra/typofix
by Pierre-YvesChibon
commit 02408c529a190501e8b17f8cb99ab2eb8195c405
Merge: b0547ab d8945ea
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Mar 3 16:22:33 2016 +0100
Merge pull request #77 from fedora-infra/typofix
Fix typo
pkgdb2client/admin.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
8 years, 2 months
[packagedb-cli: 1/2] Fix typo
by Pierre-YvesChibon
commit d8945eaf4b54316f00d8738ac5fa35f64a8d6e46
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Mar 3 16:04:34 2016 +0100
Fix typo
pkgdb2client/admin.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pkgdb2client/admin.py b/pkgdb2client/admin.py
index 98a59d1..40283f4 100644
--- a/pkgdb2client/admin.py
+++ b/pkgdb2client/admin.py
@@ -312,7 +312,7 @@ def __handle_request_package(actionid, action):
output = pkgdbclient.update_acl(
action['info']['pkg_name'],
branches=action['info']['pkg_collection'],
- acls=['commit', 'watchbugzilla', 'watchcommits',
+ acls=['commit', 'watchbugzilla', 'watchcommits'],
status='Approved',
user=user.strip(),
namespace=action['info']['pkg_namespace'],
8 years, 2 months
[packagedb-cli] Created tag 2.11
by Pierre-YvesChibon
The signed tag '2.11' was created.
Tagger: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Mar 3 16:08:55 2016 +0100
Release 2.11
Changes since the last tag '2.10':
Pierre-Yves Chibon (37):
Merge pull request #52 from tyll/process_all
Call the print function instead of the print statement to be py3 compatible
Adjust catching the exception to be both py2 and 3 compatible
Merge pull request #54 from fedora-infra/more_py3
Merge pull request #59 from tyll/pep8
Merge pull request #55 from tyll/show_tests
Encode the summary retrieved to UTF-8
Some more encoding to UTF-8 in case we go through with it
Encode all the fields, this way we'll be sure to have consistent data types
Handle the situation where the description or the upstream info are None
Merge pull request #61 from fedora-infra/fix_encoding
Check if the person approving the review is the same as the one creating it
Check if the person who approved the review is the assignee or not
Check the component and product of the review request
Merge pull request #63 from fedora-infra/better_checks
Make sure we never return None when we expect a dictionary
Merge pull request #64 from fedora-infra/avoid_none
Signal when a review was approved more than 60 days ago
Add namespacing to pkgdb2client while remaining backward compatible
Actually forward the namespace to the pkgdb API
Adjust the utils module for the namespacing
Adjust pkgdb-admin for the namespacing
Fix typo
Adjust URLs for monitoring and koschei integration for the namespacing
Adjust pkgdb-cli for the namespacing
Remove debugging statement
Merge pull request #72 from fedora-infra/openidbaseclient
Merge pull request #67 from tyll/name_email
Fix calling the right property, PkgDB has a base_url but not an url
Merge pull request #73 from fedora-infra/fix_url
Include monitoring information if any are provided
Merge pull request #74 from fedora-infra/monitoring_create
If there are co-maintainers specified in the request, grant them ACLs
Merge pull request #75 from fedora-infra/comaintainers
Override the login method from OpenIdBaseClient to avoid un-necessary calls
Merge pull request #76 from fedora-infra/fix_login
Release 2.11
Ralph Bean (3):
Let users control the limit argument.
Mention 500 is max.
Port to openidbaseclient.
Till Maas (10):
Fix processing all actions
Fix pep8 compliance
Show successful tests
Fix syntax error
Fix SyntaxWarning
Fix pkgdb-admin checks
Show human name and fas username in bug check msgs
Check that review bug was created by pkg requester
Do not use fas_user.get()
Handle unknown FAS user
Ville Skyttä (1):
Python 3 compatibility fixes
8 years, 2 months
[packagedb-cli] Release 2.11
by Pierre-YvesChibon
commit b0547abd455a9e1e7a15a49af4921ed003a95ce7
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Mar 3 14:54:19 2016 +0100
Release 2.11
README.rst | 4 ++--
setup.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/README.rst b/README.rst
index 9bb634f..4f29c81 100644
--- a/README.rst
+++ b/README.rst
@@ -4,8 +4,8 @@ Fedora PackageDB-cli
:Author: Pierre-Yves Chibon
:Contact: pingou(a)fedoraproject.org
-:Date: Fri Nov 20 2015
-:Version: 2.10
+:Date: Thu Mar 03 2016
+:Version: 2.11
The `PackageDB-cli` is a commande line interface to the PackageDB of Fedora.
diff --git a/setup.py b/setup.py
index 156bcf1..5368155 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ from setuptools import setup
setup(
name='packagedb-cli',
description='A command line tool to access the Fedora Package Database.',
- version='2.10',
+ version='2.11',
license='GPLv2+',
download_url='https://fedorahosted.org/releases/p/a/packagedb-cli/',
url='https://fedorahosted.org/packagedb-cli/',
8 years, 2 months
[packagedb-cli: 2/2] Merge pull request #76 from fedora-infra/fix_login
by Pierre-YvesChibon
commit db4c8037e646e85e2d7d24a5ff9df6c7c723a936
Merge: 249e52e ed4aafe
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Mar 3 14:53:09 2016 +0100
Merge pull request #76 from fedora-infra/fix_login
Override the login method from OpenIdBaseClient to avoid un-necessary calls
pkgdb2client/__init__.py | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
8 years, 2 months
[packagedb-cli: 1/2] Override the login method from OpenIdBaseClient to avoid un-necessary calls
by Pierre-YvesChibon
commit ed4aafe7fc88ff197661863760f71fcc9ebc00ed
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Mar 3 12:46:07 2016 +0100
Override the login method from OpenIdBaseClient to avoid un-necessary calls
With this override we only actually login when we are not already logged
in.
pkgdb2client/__init__.py | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/pkgdb2client/__init__.py b/pkgdb2client/__init__.py
index de81ae3..989a6af 100644
--- a/pkgdb2client/__init__.py
+++ b/pkgdb2client/__init__.py
@@ -131,9 +131,16 @@ class PkgDB(OpenIdBaseClient):
@property
def is_logged_in(self):
''' Return whether the user if logged in or not. '''
- response = self.session.get(self.base_url + '/login/')
+ response = self._session.get(self.base_url + '/login/')
return "logged in as" in response.text
+ def login(self, username, password, otp=None):
+ ''' Calls the login method from OpenIdBaseClient if there is a need
+ for it.
+ '''
+ if not self.is_logged_in:
+ super(PkgDB, self).login(username, password, otp=None)
+
def call_api(self, path, params=None, data=None):
''' call the API.
8 years, 2 months