[packagedb-cli] Created tag 2.12
by Pierre-YvesChibon
The signed tag '2.12' was created.
Tagger: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Mar 17 15:44:21 2016 +0100
Release 2.12
Changes since the last tag '2.11.1':
Pierre-Yves Chibon (8):
Improve the README's instructions on how to get pkgdb-cli running
fedora-cert is also needed for running pkgdb-cli
Merge pull request #78 from fedora-infra/improved_readme
Ensure the fedora-review flag has been touched
Merge pull request #80 from fedora-infra/fix_check_flag
Fix creating new packages with monitoring and koschei statuses provided
Merge pull request #79 from fedora-infra/fix_create_pkg
Release 2.12
8 years, 1 month
[packagedb-cli] Created tag 2.11.1
by Pierre-YvesChibon
The signed tag '2.11.1' was created.
Tagger: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Mar 3 16:24:37 2016 +0100
Release 2.11.1
Changes since the last tag '2.11':
Pierre-Yves Chibon (3):
Fix typo
Merge pull request #77 from fedora-infra/typofix
Release 2.11.1
8 years, 1 month
[packagedb-cli] Release 2.12
by Pierre-YvesChibon
commit 0b20211beedb87d841cf00319ca28628590453c3
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Mar 17 15:44:17 2016 +0100
Release 2.12
README.rst | 2 +-
setup.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/README.rst b/README.rst
index 0fb2bd1..dce61b1 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.1
+:Version: 2.12
The `PackageDB-cli` is a commande line interface to the PackageDB of Fedora.
diff --git a/setup.py b/setup.py
index ca21a0d..1a30a7d 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.1',
+ version='2.12',
license='GPLv2+',
download_url='https://fedorahosted.org/releases/p/a/packagedb-cli/',
url='https://fedorahosted.org/packagedb-cli/',
8 years, 1 month
[packagedb-cli: 7/7] Merge pull request #79 from fedora-infra/fix_create_pkg
by Pierre-YvesChibon
commit acd1467ea4b3789e1ee9e95d57dff508c7835f2e
Merge: 04f5db5 d45d3a4
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Mar 17 15:40:23 2016 +0100
Merge pull request #79 from fedora-infra/fix_create_pkg
Fix creating new packages with monitoring and koschei statuses provided
pkgdb2client/__init__.py | 12 +++++++++++-
pkgdb2client/admin.py | 2 +-
2 files changed, 12 insertions(+), 2 deletions(-)
---
8 years, 1 month
[packagedb-cli: 6/7] Fix creating new packages with monitoring and koschei statuses provided
by Pierre-YvesChibon
commit d45d3a4da226fc119b3bf7e06b04d02a7d5d83ef
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Mar 16 23:08:26 2016 +0100
Fix creating new packages with monitoring and koschei statuses provided
We have the code in place server-side, the logic in the CLIs but seems
we were missing this piece in the library itself. This fixes it and
allows admins to create packages with monitoring/koschei statuses directly
provided
pkgdb2client/__init__.py | 12 +++++++++++-
pkgdb2client/admin.py | 2 +-
2 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/pkgdb2client/__init__.py b/pkgdb2client/__init__.py
index 989a6af..1848532 100644
--- a/pkgdb2client/__init__.py
+++ b/pkgdb2client/__init__.py
@@ -269,7 +269,8 @@ class PkgDB(OpenIdBaseClient):
def create_package(
self, pkgname, summary, description, review_url,
status, shouldopen, branches, poc, upstream_url,
- critpath=False, namespace='rpms'):
+ critpath=False, namespace='rpms',
+ monitoring_status=True, koschei=False):
''' Create a new package.
:arg pkgname: The name of the package
@@ -300,6 +301,13 @@ class PkgDB(OpenIdBaseClient):
:type critpath: bool
:kwarg namespace: The namespace of the package. Defaults to ``rpms``.
:type namespace: str
+ :kwarg monitoring_status: the new release monitoring status for this
+ package (defaults to ``True``, can be ``True``, ``False`` or
+ ``nobuild``).
+ :type monitoring_status: str
+ :kwarg koschei: the koschei integration status for this package
+ (defaults to ``False``, can be ``True`` or ``False``).
+ :type koschei: str
:return: the json object returned by the API
:rtype: dict
:raise PkgDBException: if the API call does not return a http code
@@ -317,6 +325,8 @@ class PkgDB(OpenIdBaseClient):
'branches': branches,
'poc': poc,
'upstream_url': upstream_url,
+ 'monitoring_status': monitoring_status,
+ 'koschei': koschei,
}
if critpath:
args['critpath'] = critpath
diff --git a/pkgdb2client/admin.py b/pkgdb2client/admin.py
index 40283f4..d2dd163 100644
--- a/pkgdb2client/admin.py
+++ b/pkgdb2client/admin.py
@@ -302,7 +302,7 @@ def __handle_request_package(actionid, action):
upstream_url=upstream,
critpath=action['info']['pkg_critpath'],
namespace=action['info']['pkg_namespace'],
- monitoring_status=action['info'].get('pkg_namespace', True),
+ monitoring_status=action['info'].get('monitoring_status', True),
koschei=action['info'].get('koschei', False),
)
8 years, 1 month
[packagedb-cli: 5/7] Merge pull request #80 from fedora-infra/fix_check_flag
by Pierre-YvesChibon
commit 04f5db5c6f4deed090650b7a6b43edf6cc33d737
Merge: 97ac3d8 9b2970f
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Mar 17 11:35:50 2016 +0100
Merge pull request #80 from fedora-infra/fix_check_flag
Ensure the fedora-review flag has been touched
pkgdb2client/utils.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
8 years, 1 month
[packagedb-cli: 4/7] Ensure the fedora-review flag has been touched
by Pierre-YvesChibon
commit 9b2970f75c295f3e3c5569a4d0a9066ae183965d
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Mar 17 11:01:24 2016 +0100
Ensure the fedora-review flag has been touched
pkgdb2client/utils.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/pkgdb2client/utils.py b/pkgdb2client/utils.py
index 499513c..ab0a8b0 100644
--- a/pkgdb2client/utils.py
+++ b/pkgdb2client/utils.py
@@ -289,8 +289,10 @@ def check_package_creation(info, bugid, pkgdbclient, requester):
"by {1}".format(bug_creator_full, requester))
# Check who updated the fedora-review flag to +
+ fedora_review_checked = False
for flag in bug.flags:
if flag['name'] == 'fedora-review':
+ fedora_review_checked = True
if flag['status'] == '+':
flag_setter_email = flag['setter']
flag_setter, flag_setter_full = get_fasinfo(flag_setter_email)
@@ -325,6 +327,10 @@ def check_package_creation(info, bugid, pkgdbclient, requester):
'Review not approved, flag set to: {0}'.format(
flag['status']))
+ if not fedora_review_checked:
+ messages["bad"].append('fedora-review flag has not been touched')
+
+
msgs2 = check_branch_creation(
pkgdbclient,
info['pkg_name'],
8 years, 1 month
[packagedb-cli: 3/7] Merge pull request #78 from fedora-infra/improved_readme
by Pierre-YvesChibon
commit 97ac3d8ea055f511736dc667079a3f9372d8d74d
Merge: 6ac8611 bd1a8a5
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Mar 16 11:52:55 2016 +0100
Merge pull request #78 from fedora-infra/improved_readme
Improve the README's instructions on how to get pkgdb-cli running
README.rst | 33 +++++++++++++++++++++++++++++++++
1 files changed, 33 insertions(+), 0 deletions(-)
---
8 years, 1 month
[packagedb-cli: 2/7] fedora-cert is also needed for running pkgdb-cli
by Pierre-YvesChibon
commit bd1a8a560190a7a838de8f885fb0cf13cba2443e
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Tue Mar 15 14:27:46 2016 +0100
fedora-cert is also needed for running pkgdb-cli
README.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/README.rst b/README.rst
index c3afc64..0fb2bd1 100644
--- a/README.rst
+++ b/README.rst
@@ -53,7 +53,7 @@ Get and Run the Source
::
- dnf install python-virtualenvwrapper
+ dnf install python-virtualenvwrapper fedora-cert
* Create the virtual environment
8 years, 1 month
[packagedb-cli: 1/7] Improve the README's instructions on how to get pkgdb-cli running
by Pierre-YvesChibon
commit 55063e9a9468d620ea94569f7f6a25ec41033592
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Tue Mar 15 14:25:11 2016 +0100
Improve the README's instructions on how to get pkgdb-cli running
README.rst | 33 +++++++++++++++++++++++++++++++++
1 files changed, 33 insertions(+), 0 deletions(-)
---
diff --git a/README.rst b/README.rst
index 944a7ee..c3afc64 100644
--- a/README.rst
+++ b/README.rst
@@ -49,8 +49,41 @@ Install Prerequisites
Get and Run the Source
~~~~~~~~~~~~~~~~~~~~~~~~
+* Install python-virtualenvwrapper
+
+::
+
+ dnf install python-virtualenvwrapper
+
+* Create the virtual environment
+
+::
+
+ mkvirtualenv pkgdb-cli --system-site-packages
+
+* Activate the virtual environment
+
+::
+
+ workon pkgdb-cli
+
+* Get the project
+
::
git clone http://git.fedorahosted.org/git/packagedb-cli.git
cd packagedb-cli
+
+* Set up the project
+
+::
+
+ python setup.py develop
+
+* Run pkgdb-cli or pkgdb-admin
+
+::
+
python pkgdb2client/cli.py
+ python pkgdb2client/admin.py
+
8 years, 1 month