[med-svn] [Git][med-team/biomaj3-user][master] 3 commits: New upstream version 3.0.10

Olivier Sallou gitlab at salsa.debian.org
Tue Nov 12 10:53:31 GMT 2019



Olivier Sallou pushed to branch master at Debian Med / biomaj3-user


Commits:
0b2b5726 by Olivier Sallou at 2019-11-12T10:30:34Z
New upstream version 3.0.10
- - - - -
90751525 by Olivier Sallou at 2019-11-12T10:30:34Z
Update upstream source from tag 'upstream/3.0.10'

Update to upstream version '3.0.10'
with Debian dir 48f0a7c49dd97e7f35c08005ec2385514c087e41
- - - - -
4aa0c38e by Olivier Sallou at 2019-11-12T10:31:02Z
new upstream 3.0.10

- - - - -


4 changed files:

- CHANGES.txt
- bin/biomaj-users.py
- debian/changelog
- setup.py


Changes:

=====================================
CHANGES.txt
=====================================
@@ -1,3 +1,7 @@
+3.0.10:
+  Force yaml loader to skip warning on output
+3.0.9:
+  Add json output to biomaj_user script
 3.0.8:
   Fix traefik prefix
 3.0.7:


=====================================
bin/biomaj-users.py
=====================================
@@ -6,6 +6,7 @@ import yaml
 import string
 import sys
 import bcrypt
+import json
 from tabulate import tabulate
 from biomaj_user.user import BmajUser
 from biomaj_core.utils import Utils
@@ -21,6 +22,7 @@ def main():
                         help="Action to perform for user " + str(SUPPORTED_ACTIONS) +
                              "'renew': Create new api key",
                         required=True)
+    parser.add_argument('-J', '--json', dest="json", help="output to json", action='store_true')
     parser.add_argument('-C', '--config', dest="config", metavar='</path/to/config.yml>', type=str,
                         help="Path to config.yml. By default read from env variable BIOMAJ_CONFIG")
     parser.add_argument('-E', '--email', dest="email", type=str,
@@ -44,7 +46,7 @@ def main():
     else:
         config = 'config.yml'
     with open(config, 'r') as ymlfile:
-        config = yaml.load(ymlfile)
+        config = yaml.load(ymlfile, Loader=yaml.FullLoader)
         Utils.service_config_override(config)
 
     BmajUser.set_config(config)
@@ -58,6 +60,10 @@ def main():
                     options.passwd = ''.join(random.SystemRandom().choice(string.ascii_uppercase + string.digits)
                                          for _ in range(10))
             user.create(options.passwd, email=options.email)
+            if options.json:
+                del user.user['_id']
+                print(json.dumps(user.user))
+                sys.exit(0)
             print("User successfully created")
             print(tabulate([["User", "Password", "API Key"],
                             [user.user['id'], str(options.passwd), str(user.user['apikey'])]],


=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+biomaj3-user (3.0.10-1) unstable; urgency=medium
+
+  * New upstream release 
+
+ -- Olivier Sallou <osallou at debian.org>  Tue, 12 Nov 2019 10:30:39 +0000
+
 biomaj3-user (3.0.8-1) unstable; urgency=medium
 
   * New upstream release 


=====================================
setup.py
=====================================
@@ -21,7 +21,7 @@ config = {
     'url': 'http://biomaj.genouest.org',
     'download_url': 'http://biomaj.genouest.org',
     'author_email': 'olivier.sallou at irisa.fr',
-    'version': '3.0.8',
+    'version': '3.0.10',
      'classifiers': [
         # How mature is this project? Common values are
         #   3 - Alpha



View it on GitLab: https://salsa.debian.org/med-team/biomaj3-user/compare/2754afce40709efc7ebd74a9c5122b74224b2a84...4aa0c38e8158f828639a60ae456e41dd9b4e9e54

-- 
View it on GitLab: https://salsa.debian.org/med-team/biomaj3-user/compare/2754afce40709efc7ebd74a9c5122b74224b2a84...4aa0c38e8158f828639a60ae456e41dd9b4e9e54
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20191112/378f99f1/attachment-0001.html>


More information about the debian-med-commit mailing list