Hello community,

here is the log from the commit of package python-seacucumber for 
openSUSE:Factory checked in at 2015-05-16 19:02:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-seacucumber (Old)
 and      /work/SRC/openSUSE:Factory/.python-seacucumber.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-seacucumber"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-seacucumber/python-seacucumber.changes    
2013-12-04 19:49:21.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-seacucumber.new/python-seacucumber.changes   
    2015-05-16 19:02:07.000000000 +0200
@@ -1,0 +2,9 @@
+Tue May 12 15:26:58 UTC 2015 - [email protected]
+
+- update to version 1.5.2:
+  * Correct an old import that relied on an outdated reference
+    in boto.__init__ (lijoantony)
+- set a minimum version for python-boto
+- add runtime dependencies as BuildRequires
+
+-------------------------------------------------------------------

Old:
----
  seacucumber-1.5.1.tar.gz

New:
----
  seacucumber-1.5.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-seacucumber.spec ++++++
--- /var/tmp/diff_new_pack.EKkdq4/_old  2015-05-16 19:02:08.000000000 +0200
+++ /var/tmp/diff_new_pack.EKkdq4/_new  2015-05-16 19:02:08.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-seacucumber
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 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
@@ -17,7 +17,7 @@
 
 
 Name:           python-seacucumber
-Version:        1.5.1
+Version:        1.5.2
 Release:        0
 Url:            https://github.com/duointeractive/sea-cucumber/
 Summary:        A Django email backend for Amazon Simple Email Service, backed 
by celery
@@ -25,9 +25,12 @@
 Group:          Development/Languages/Python
 Source:         
http://pypi.python.org/packages/source/s/seacucumber/seacucumber-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  python-boto >= 2.25.0
+BuildRequires:  python-celery
 BuildRequires:  python-devel
+BuildRequires:  python-django
 BuildRequires:  python-setuptools
-Requires:       python-boto
+Requires:       python-boto >= 2.25.0
 Requires:       python-celery
 Requires:       python-django
 %if 0%{?suse_version} && 0%{?suse_version} <= 1110

++++++ seacucumber-1.5.1.tar.gz -> seacucumber-1.5.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/seacucumber-1.5.1/PKG-INFO 
new/seacucumber-1.5.2/PKG-INFO
--- old/seacucumber-1.5.1/PKG-INFO      2013-08-30 20:05:38.000000000 +0200
+++ new/seacucumber-1.5.2/PKG-INFO      2015-03-04 17:13:28.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: seacucumber
-Version: 1.5.1
+Version: 1.5.2
 Summary: A Django email backend for Amazon Simple Email Service, backed by 
celery.
 Home-page: https://github.com/duointeractive/sea-cucumber/
 Author: Gregory Taylor
@@ -12,6 +12,7 @@
         :Info: A Django email backend for Amazon Simple Email Service, backed 
by django-celery_
         :Author: DUO Interactive, LLC
         :Inspired by: Harry Marr's django-ses_.
+        :Status: **Unmaintained**. Let us know if you'd like to step in!
         
         A bird's eye view
         =================
@@ -120,6 +121,20 @@
         sent some emails. You'll need to manually bump up your rate settings in
         ``settings.py``.
         
+        Routing Tasks
+        =============
+        If you want to route Sea Cucumber task to different queues.
+        
+        Add this to setting::
+        
+            CUCUMBER_ROUTE_QUEUE = 'YOUR-ROUTE-QUEUE'
+        
+        Then update the celery configuration for routes. Example 
celeryconfig.py::
+        
+            CELERY_ROUTES = {
+                'seacucumber.tasks.#': {'queue': 'YOUR-ROUTE-QUEUE'},
+            }
+        
         DKIM
         ====
         
@@ -172,16 +187,12 @@
         ============
         
         If you have any questions, feel free to either post them to our
-        `issue tracker`_, or visit us on IRC at:
-        
-        :Host: irc.freenode.net
-        :Port: 6667
-        :Room: #duo
+        `issue tracker`_.
         
         .. _django-ses: https://github.com/hmarr/django-ses
         .. _django-celery: http://ask.github.com/django-celery/
         .. _celery: http://docs.celeryproject.org/en/v2.2.5/index.html
-        .. _Builtin Email Error Reporting: 
http://docs.djangoproject.com/en/1.2/howto/error-reporting/
+        .. _Builtin Email Error Reporting: 
https://docs.djangoproject.com/en/dev/howto/error-reporting/
         .. _Django: http://djangoproject.com
         .. _Boto: http://boto.cloudhackers.com/
         .. _SES: http://aws.amazon.com/ses/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/seacucumber-1.5.1/README.rst 
new/seacucumber-1.5.2/README.rst
--- old/seacucumber-1.5.1/README.rst    2013-08-30 18:22:58.000000000 +0200
+++ new/seacucumber-1.5.2/README.rst    2015-03-04 17:10:20.000000000 +0100
@@ -4,6 +4,7 @@
 :Info: A Django email backend for Amazon Simple Email Service, backed by 
django-celery_
 :Author: DUO Interactive, LLC
 :Inspired by: Harry Marr's django-ses_.
+:Status: **Unmaintained**. Let us know if you'd like to step in!
 
 A bird's eye view
 =================
@@ -112,6 +113,20 @@
 sent some emails. You'll need to manually bump up your rate settings in
 ``settings.py``.
 
+Routing Tasks
+=============
+If you want to route Sea Cucumber task to different queues.
+
+Add this to setting::
+
+    CUCUMBER_ROUTE_QUEUE = 'YOUR-ROUTE-QUEUE'
+
+Then update the celery configuration for routes. Example celeryconfig.py::
+
+    CELERY_ROUTES = {
+        'seacucumber.tasks.#': {'queue': 'YOUR-ROUTE-QUEUE'},
+    }
+
 DKIM
 ====
 
@@ -164,16 +179,12 @@
 ============
 
 If you have any questions, feel free to either post them to our
-`issue tracker`_, or visit us on IRC at:
-
-:Host: irc.freenode.net
-:Port: 6667
-:Room: #duo
+`issue tracker`_.
 
 .. _django-ses: https://github.com/hmarr/django-ses
 .. _django-celery: http://ask.github.com/django-celery/
 .. _celery: http://docs.celeryproject.org/en/v2.2.5/index.html
-.. _Builtin Email Error Reporting: 
http://docs.djangoproject.com/en/1.2/howto/error-reporting/
+.. _Builtin Email Error Reporting: 
https://docs.djangoproject.com/en/dev/howto/error-reporting/
 .. _Django: http://djangoproject.com
 .. _Boto: http://boto.cloudhackers.com/
 .. _SES: http://aws.amazon.com/ses/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/seacucumber-1.5.1/seacucumber/__init__.py 
new/seacucumber-1.5.2/seacucumber/__init__.py
--- old/seacucumber-1.5.1/seacucumber/__init__.py       2013-08-30 
18:22:58.000000000 +0200
+++ new/seacucumber-1.5.2/seacucumber/__init__.py       2015-03-04 
17:12:26.000000000 +0100
@@ -4,4 +4,4 @@
 rest of the contents of this module are largely optional. 
 """
 # In the form of Major, Minor.
-VERSION = (1, 5, 1)
+VERSION = (1, 5, 2)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/seacucumber-1.5.1/seacucumber/backend.py 
new/seacucumber-1.5.2/seacucumber/backend.py
--- old/seacucumber-1.5.1/seacucumber/backend.py        2013-08-30 
18:34:27.000000000 +0200
+++ new/seacucumber-1.5.2/seacucumber/backend.py        2015-03-04 
17:10:20.000000000 +0100
@@ -5,6 +5,7 @@
     EMAIL_BACKEND = 'seacucumber.backend.SESBackend'
 """
 
+from django.conf import settings
 from django.core.mail.backends.base import BaseEmailBackend
 from seacucumber.tasks import SendEmailTask
 
@@ -27,13 +28,15 @@
             guarantee delivery just yet.
         """
 
+        queue = getattr(settings, 'CUCUMBER_ROUTE_QUEUE', '')
         num_sent = 0
         for message in email_messages:
             # Hand this off to a celery task.
-            SendEmailTask.delay(
-                message.from_email,
-                message.recipients(),
-                message.message().as_string().decode('utf8'),
+            SendEmailTask.apply_async(args=[
+                    message.from_email,
+                    message.recipients(),
+                    message.message().as_string().decode('utf8'),], 
+                queue=queue,
             )
             num_sent += 1
         return num_sent
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/seacucumber-1.5.1/seacucumber/util.py 
new/seacucumber-1.5.2/seacucumber/util.py
--- old/seacucumber-1.5.1/seacucumber/util.py   2013-08-30 18:47:18.000000000 
+0200
+++ new/seacucumber-1.5.2/seacucumber/util.py   2015-03-04 17:10:44.000000000 
+0100
@@ -3,7 +3,7 @@
 """
 
 from django.conf import settings
-import boto
+import boto.ses
 
 # dkim isn't required, but we'll use it if we have it.
 try:
@@ -32,11 +32,22 @@
     access_key = getattr(
         settings, 'CUCUMBER_SES_SECRET_ACCESS_KEY',
         getattr(settings, 'AWS_SECRET_ACCESS_KEY', None))
-
-    return boto.connect_ses(
-        aws_access_key_id=access_key_id,
-        aws_secret_access_key=access_key,
-    )
+    region_name = getattr(
+        settings, 'CUCUMBER_SES_REGION_NAME',
+        getattr(settings, 'AWS_SES_REGION_NAME', None))
+    
+    if region_name != None:
+        return boto.ses.connect_to_region(
+            region_name,
+            aws_access_key_id=access_key_id,
+            aws_secret_access_key=access_key,
+        )
+    else:
+        return boto.connect_ses(
+            aws_access_key_id=access_key_id,
+            aws_secret_access_key=access_key,
+        )
+        
 
 
 def dkim_sign(message):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/seacucumber-1.5.1/seacucumber.egg-info/PKG-INFO 
new/seacucumber-1.5.2/seacucumber.egg-info/PKG-INFO
--- old/seacucumber-1.5.1/seacucumber.egg-info/PKG-INFO 2013-08-30 
20:05:38.000000000 +0200
+++ new/seacucumber-1.5.2/seacucumber.egg-info/PKG-INFO 2015-03-04 
17:13:28.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: seacucumber
-Version: 1.5.1
+Version: 1.5.2
 Summary: A Django email backend for Amazon Simple Email Service, backed by 
celery.
 Home-page: https://github.com/duointeractive/sea-cucumber/
 Author: Gregory Taylor
@@ -12,6 +12,7 @@
         :Info: A Django email backend for Amazon Simple Email Service, backed 
by django-celery_
         :Author: DUO Interactive, LLC
         :Inspired by: Harry Marr's django-ses_.
+        :Status: **Unmaintained**. Let us know if you'd like to step in!
         
         A bird's eye view
         =================
@@ -120,6 +121,20 @@
         sent some emails. You'll need to manually bump up your rate settings in
         ``settings.py``.
         
+        Routing Tasks
+        =============
+        If you want to route Sea Cucumber task to different queues.
+        
+        Add this to setting::
+        
+            CUCUMBER_ROUTE_QUEUE = 'YOUR-ROUTE-QUEUE'
+        
+        Then update the celery configuration for routes. Example 
celeryconfig.py::
+        
+            CELERY_ROUTES = {
+                'seacucumber.tasks.#': {'queue': 'YOUR-ROUTE-QUEUE'},
+            }
+        
         DKIM
         ====
         
@@ -172,16 +187,12 @@
         ============
         
         If you have any questions, feel free to either post them to our
-        `issue tracker`_, or visit us on IRC at:
-        
-        :Host: irc.freenode.net
-        :Port: 6667
-        :Room: #duo
+        `issue tracker`_.
         
         .. _django-ses: https://github.com/hmarr/django-ses
         .. _django-celery: http://ask.github.com/django-celery/
         .. _celery: http://docs.celeryproject.org/en/v2.2.5/index.html
-        .. _Builtin Email Error Reporting: 
http://docs.djangoproject.com/en/1.2/howto/error-reporting/
+        .. _Builtin Email Error Reporting: 
https://docs.djangoproject.com/en/dev/howto/error-reporting/
         .. _Django: http://djangoproject.com
         .. _Boto: http://boto.cloudhackers.com/
         .. _SES: http://aws.amazon.com/ses/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/seacucumber-1.5.1/seacucumber.egg-info/requires.txt 
new/seacucumber-1.5.2/seacucumber.egg-info/requires.txt
--- old/seacucumber-1.5.1/seacucumber.egg-info/requires.txt     2013-08-30 
20:05:38.000000000 +0200
+++ new/seacucumber-1.5.2/seacucumber.egg-info/requires.txt     2015-03-04 
17:13:28.000000000 +0100
@@ -1,2 +1,2 @@
-boto>=2.8.0
-celery
\ No newline at end of file
+boto>=2.25.0
+celery
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/seacucumber-1.5.1/setup.py 
new/seacucumber-1.5.2/setup.py
--- old/seacucumber-1.5.1/setup.py      2013-08-30 18:37:04.000000000 +0200
+++ new/seacucumber-1.5.2/setup.py      2015-03-04 17:12:33.000000000 +0100
@@ -16,7 +16,7 @@
 
 setup(
     name='seacucumber',
-    version='1.5.1',
+    version='1.5.2',
     packages=[
         'seacucumber',
         'seacucumber.management',
@@ -30,5 +30,5 @@
     long_description=LONG_DESCRIPTION,
     platforms=['any'],
     classifiers=CLASSIFIERS,
-    install_requires=['boto>=2.8.0', 'celery'],
+    install_requires=['boto>=2.25.0', 'celery'],
 )


Reply via email to