commit python3-ec2utilsbase for openSUSE:Factory

2018-02-24 Thread root
Hello community,

here is the log from the commit of package python3-ec2utilsbase for 
openSUSE:Factory checked in at 2018-02-24 16:39:22

Comparing /work/SRC/openSUSE:Factory/python3-ec2utilsbase (Old)
 and  /work/SRC/openSUSE:Factory/.python3-ec2utilsbase.new (New)


Package is "python3-ec2utilsbase"

Sat Feb 24 16:39:22 2018 rev:4 rq:579661 version:3.1.2

Changes:

--- 
/work/SRC/openSUSE:Factory/python3-ec2utilsbase/python3-ec2utilsbase.changes
2018-02-21 14:12:50.003246725 +0100
+++ 
/work/SRC/openSUSE:Factory/.python3-ec2utilsbase.new/python3-ec2utilsbase.changes
   2018-02-24 16:39:31.073150738 +0100
@@ -1,0 +2,6 @@
+Fri Feb 23 20:58:59 UTC 2018 - rjsch...@suse.com
+
+- Update to version 3.1.2
+  + Support VPC target argument for temporary security group creation
+
+---

Old:

  ec2utilsbase-3.1.1.tar.bz2

New:

  ec2utilsbase-3.1.2.tar.bz2



Other differences:
--
++ python3-ec2utilsbase.spec ++
--- /var/tmp/diff_new_pack.ZDeqzh/_old  2018-02-24 16:39:32.169111296 +0100
+++ /var/tmp/diff_new_pack.ZDeqzh/_new  2018-02-24 16:39:32.17353 +0100
@@ -18,10 +18,10 @@
 
 %define upstream_name ec2utilsbase
 Name:   python3-ec2utilsbase
-Version:3.1.1
+Version:3.1.2
 Release:0
 Summary:Shared EC2 utils functionality
-License:GPL-3.0+
+License:GPL-3.0-or-later
 Group:  System/Management
 Url:https://github.com/SUSE/Enceladus
 Source0:%{upstream_name}-%{version}.tar.bz2

++ ec2utilsbase-3.1.1.tar.bz2 -> ec2utilsbase-3.1.2.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ec2utilsbase-3.1.1/lib/ec2utils/base_VERSION 
new/ec2utilsbase-3.1.2/lib/ec2utils/base_VERSION
--- old/ec2utilsbase-3.1.1/lib/ec2utils/base_VERSION2018-02-13 
21:00:27.617558249 +0100
+++ new/ec2utilsbase-3.1.2/lib/ec2utils/base_VERSION2018-02-21 
21:33:41.643993750 +0100
@@ -1 +1 @@
-3.1.1
+3.1.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ec2utilsbase-3.1.1/lib/ec2utils/ec2setup.py 
new/ec2utilsbase-3.1.2/lib/ec2utils/ec2setup.py
--- old/ec2utilsbase-3.1.1/lib/ec2utils/ec2setup.py 2018-02-13 
21:00:27.617558249 +0100
+++ new/ec2utilsbase-3.1.2/lib/ec2utils/ec2setup.py 2018-02-21 
21:33:41.643993750 +0100
@@ -56,20 +56,22 @@
 self._remove_vpc()
 
 # -
-def create_security_group(self):
+def create_security_group(self, vpc_id=None):
 if self.verbose:
 print('Creating temporary security group')
 group_name = 'ec2uploadimg-%s' % (random.randint(1, 100))
 group_description = 'ec2uploadimg created %s' % datetime.datetime.now()
+if not vpc_id:
+vpc_id = self.vpc_id
 response = self._connect().create_security_group(
 GroupName=group_name, Description=group_description,
-VpcId=self.vpc_id
+VpcId=vpc_id
 )
 
 self.security_group_id = response['GroupId']
 if self.verbose:
 print('Temporary Security Group Created %s in vpc %s'
-  % (self.security_group_id, self.vpc_id))
+  % (self.security_group_id, vpc_id))
 data = self._connect().authorize_security_group_ingress(
 GroupId=self.security_group_id,
 IpPermissions=[




commit python3-ec2utilsbase for openSUSE:Factory

2018-02-21 Thread root
Hello community,

here is the log from the commit of package python3-ec2utilsbase for 
openSUSE:Factory checked in at 2018-02-21 14:12:48

Comparing /work/SRC/openSUSE:Factory/python3-ec2utilsbase (Old)
 and  /work/SRC/openSUSE:Factory/.python3-ec2utilsbase.new (New)


Package is "python3-ec2utilsbase"

Wed Feb 21 14:12:48 2018 rev:3 rq:578529 version:3.1.1

Changes:

--- 
/work/SRC/openSUSE:Factory/python3-ec2utilsbase/python3-ec2utilsbase.changes
2018-02-06 16:49:29.419124587 +0100
+++ 
/work/SRC/openSUSE:Factory/.python3-ec2utilsbase.new/python3-ec2utilsbase.changes
   2018-02-21 14:12:50.003246725 +0100
@@ -1,0 +2,6 @@
+Tue Feb 13 20:02:08 UTC 2018 - rjsch...@suse.com
+
+- Update to version 3.1.1
+  + Initialize class member
+
+---

Old:

  ec2utilsbase-3.1.0.tar.bz2

New:

  ec2utilsbase-3.1.1.tar.bz2



Other differences:
--
++ python3-ec2utilsbase.spec ++
--- /var/tmp/diff_new_pack.YRTdcH/_old  2018-02-21 14:12:50.883215035 +0100
+++ /var/tmp/diff_new_pack.YRTdcH/_new  2018-02-21 14:12:50.883215035 +0100
@@ -18,7 +18,7 @@
 
 %define upstream_name ec2utilsbase
 Name:   python3-ec2utilsbase
-Version:3.1.0
+Version:3.1.1
 Release:0
 Summary:Shared EC2 utils functionality
 License:GPL-3.0+

++ ec2utilsbase-3.1.0.tar.bz2 -> ec2utilsbase-3.1.1.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ec2utilsbase-3.1.0/lib/ec2utils/base_VERSION 
new/ec2utilsbase-3.1.1/lib/ec2utils/base_VERSION
--- old/ec2utilsbase-3.1.0/lib/ec2utils/base_VERSION2018-02-05 
22:06:54.356844102 +0100
+++ new/ec2utilsbase-3.1.1/lib/ec2utils/base_VERSION2018-02-13 
21:00:27.617558249 +0100
@@ -1 +1 @@
-3.1.0
+3.1.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ec2utilsbase-3.1.0/lib/ec2utils/ec2utils.py 
new/ec2utilsbase-3.1.1/lib/ec2utils/ec2utils.py
--- old/ec2utilsbase-3.1.0/lib/ec2utils/ec2utils.py 2018-02-05 
22:06:54.352844187 +0100
+++ new/ec2utilsbase-3.1.1/lib/ec2utils/ec2utils.py 2018-02-13 
21:00:27.617558249 +0100
@@ -28,6 +28,7 @@
 def __init__(self):
 
 self.region = None
+self.session_token = None
 self.verbose = None
 
 # -




commit python3-ec2utilsbase for openSUSE:Factory

2018-02-06 Thread root
Hello community,

here is the log from the commit of package python3-ec2utilsbase for 
openSUSE:Factory checked in at 2018-02-06 16:49:27

Comparing /work/SRC/openSUSE:Factory/python3-ec2utilsbase (Old)
 and  /work/SRC/openSUSE:Factory/.python3-ec2utilsbase.new (New)


Package is "python3-ec2utilsbase"

Tue Feb  6 16:49:27 2018 rev:2 rq:573154 version:3.1.0

Changes:

--- 
/work/SRC/openSUSE:Factory/python3-ec2utilsbase/python3-ec2utilsbase.changes
2017-08-24 18:49:40.928372590 +0200
+++ 
/work/SRC/openSUSE:Factory/.python3-ec2utilsbase.new/python3-ec2utilsbase.changes
   2018-02-06 16:49:29.419124587 +0100
@@ -1,0 +2,7 @@
+Mon Feb  5 21:09:32 UTC 2018 - rjsch...@suse.com
+
+- Update to version 3.1.0
+  + Add utilities to create artifacs in EC2 needed to prepare a
+given account for image uploading
+
+---

Old:

  ec2utilsbase-3.0.0.tar.bz2

New:

  ec2utilsbase-3.1.0.tar.bz2



Other differences:
--
++ python3-ec2utilsbase.spec ++
--- /var/tmp/diff_new_pack.6zXcVt/_old  2018-02-06 16:49:29.995097637 +0100
+++ /var/tmp/diff_new_pack.6zXcVt/_new  2018-02-06 16:49:29.999097449 +0100
@@ -1,7 +1,7 @@
 #
-# spec file for package python-ec2utilsbase
+# spec file for package python3-ec2utilsbase
 #
-# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %define upstream_name ec2utilsbase
 Name:   python3-ec2utilsbase
-Version:3.0.0
+Version:3.1.0
 Release:0
 Summary:Shared EC2 utils functionality
 License:GPL-3.0+
@@ -49,7 +49,6 @@
 %install
 python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
 
-
 %files
 %defattr(-,root,root,-)
 %doc LICENSE

++ ec2utilsbase-3.0.0.tar.bz2 -> ec2utilsbase-3.1.0.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ec2utilsbase-3.0.0/lib/ec2utils/base_VERSION 
new/ec2utilsbase-3.1.0/lib/ec2utils/base_VERSION
--- old/ec2utilsbase-3.0.0/lib/ec2utils/base_VERSION2017-08-09 
17:14:33.892070075 +0200
+++ new/ec2utilsbase-3.1.0/lib/ec2utils/base_VERSION2018-02-05 
22:06:54.356844102 +0100
@@ -1 +1 @@
-3.0.0
+3.1.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ec2utilsbase-3.0.0/lib/ec2utils/ec2setup.py 
new/ec2utilsbase-3.1.0/lib/ec2utils/ec2setup.py
--- old/ec2utilsbase-3.0.0/lib/ec2utils/ec2setup.py 1970-01-01 
01:00:00.0 +0100
+++ new/ec2utilsbase-3.1.0/lib/ec2utils/ec2setup.py 2018-02-05 
22:06:54.364843934 +0100
@@ -0,0 +1,222 @@
+# Copyright (c) 2018 SUSE LLC, Christian Bruckmayer 
+#
+# This file is part of ec2utilsbase.
+#
+# ec2utilsbase 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 3 of the License, or
+# (at your option) any later version.
+#
+# ec2utilsbase is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with ec2utilsbase.  If not, see .
+
+import boto3
+import os
+import random
+import datetime
+
+from ec2utils.ec2UtilsExceptions import EC2ConnectionException
+from ec2utils.ec2utils import EC2Utils
+from tempfile import mkstemp
+from tempfile import mkdtemp
+
+
+class EC2Setup(EC2Utils):
+"""Class to prepare an Amazon EC2 account with all necessary resources"""
+
+def __init__(self, access_key, region, secret_key, session_token, verbose):
+EC2Utils.__init__(self)
+self.access_key = access_key
+self.region = region
+self.secret_key = secret_key
+self.session_token = session_token
+self.verbose = verbose
+
+self.internet_gateway_id = ''
+self.key_pair_name = ''
+self.route_table_id = ''
+self.security_group_id = ''
+self.ssh_private_key_file = ''
+self.temp_dir = ''
+self.vpc_subnet_id = ''
+self.vpc_id = ''
+
+# -
+def clean_up(self):
+if self.key_pair_name:
+self._remove_upload_key_pair()
+if self.security_group_id:
+self._remove_security_group()

commit python3-ec2utilsbase for openSUSE:Factory

2017-08-24 Thread root
Hello community,

here is the log from the commit of package python3-ec2utilsbase for 
openSUSE:Factory checked in at 2017-08-24 18:49:34

Comparing /work/SRC/openSUSE:Factory/python3-ec2utilsbase (Old)
 and  /work/SRC/openSUSE:Factory/.python3-ec2utilsbase.new (New)


Package is "python3-ec2utilsbase"

Thu Aug 24 18:49:34 2017 rev:1 rq:515916 version:3.0.0

Changes:

New Changes file:

--- /dev/null   2017-07-20 07:30:00.335470106 +0200
+++ 
/work/SRC/openSUSE:Factory/.python3-ec2utilsbase.new/python3-ec2utilsbase.changes
   2017-08-24 18:49:40.928372590 +0200
@@ -0,0 +1,71 @@
+---
+Thu Aug 10 13:49:28 UTC 2017 - rjsch...@suse.com
+
+- Update to version 3.0.0
+  + Convert to Python 3
+
+---
+Thu Sep 15 17:58:09 UTC 2016 - rjsch...@suse.com
+
+- Update to version 2.0.2 (bsc#999019)
+  + Coordinated release with other ec2utils
+  + Fix install from source by properly setting up a namespace
+
+---
+Sat Apr  9 14:31:26 UTC 2016 - rjsch...@suse.com
+
+- Update to version 2.0.1
+  + Variable initialization to avoid exception
+
+---
+Mon Mar 28 15:10:14 UTC 2016 - rjsch...@suse.com
+
+- Update to version 2.0.0 (bsc#972845)
+  + Convert to boto3
+  + Incompatible change, get_regions() has new required arguments
+  + Incompatible change, return data structures changed due to switch
+to boto3
+
+---
+Thu Feb 18 14:56:50 UTC 2016 - rjsch...@suse.com
+
+- Update to version 1.0.0 (bsc#966958)
+  + Incompatible change, get_from_config() has new required argument
+
+---
+Fri Nov 13 16:39:51 UTC 2015 - rjsch...@suse.com
+
+- Update to version 0.3.1 (bnc#954990)
+  + Fix typo in exception name
+
+---
+Tue Sep 22 23:46:25 UTC 2015 - rjsch...@suse.com
+
+- Update description in .spec file, cut and paste error
+
+---
+Wed Aug 12 18:08:19 UTC 2015 - rjsch...@suse.com
+
+- Update to version 0.3.0, include in SLE 12 (FATE#319357)
+  + Add new utility functions for image attribut searching
+  + bug fixes
+
+---
+Thu Jun 18 22:55:57 UTC 2015 - rjsch...@suse.com
+
+- Update to version 0.2.1
+  + Fix syntax issues, argument and name mismatches
+
+---
+Fri Jun 12 18:12:16 UTC 2015 - rjsch...@suse.com
+
+- Update to version 0.2.0
+  + Implement functionality to be shared across utilities in a base class
+  + code pep8 clean
+
+---
+Sun May  3 14:22:05 UTC 2015 - rjsch...@suse.com
+
+- Initial build
+  Version 0.1.0
+

New:

  ec2utilsbase-3.0.0.tar.bz2
  python3-ec2utilsbase.changes
  python3-ec2utilsbase.spec



Other differences:
--
++ python3-ec2utilsbase.spec ++
#
# spec file for package python-ec2utilsbase
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define upstream_name ec2utilsbase
Name:   python3-ec2utilsbase
Version:3.0.0
Release:0
Summary:Shared EC2 utils functionality
License:GPL-3.0+
Group:  System/Management
Url:https://github.com/SUSE/Enceladus
Source0:%{upstream_name}-%{version}.tar.bz2
Requires:   python3
Requires:   python3-boto3 >= 1.3.0
BuildRequires:  python3-boto3 >= 1.3.0
BuildRequires:  python3-setuptools
BuildRoot:  %{_tmppath}/%{name}-%{version}-build
BuildArch:  noarch

# Package renamed in SLE 12, do not remove Provides, Obsolete directives
# until after SLE 12 EOL
Provides:   python-ec2utilsbase = %{version}
Obsoletes:  python-ec2utilsbase < %{version}

%description
Shared functionality for various ec2utils

%prep
%setup -q -n