From ab5b9270b18564a9074224d8616f60790c73eb2c Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 30 Nov 2011 12:13:50 +0100 Subject: [PATCH] Add a patch to remove django mailer dependency Signed-off-by: Julien Danjou Rewritten-From: 53a045fe50fb0c4b288daffad617f2aa1c98aec9 --- xenial/debian/patches/remove_django_mailer | 74 ++++++++++++++++++++++ xenial/debian/patches/series | 1 + 2 files changed, 75 insertions(+) create mode 100644 xenial/debian/patches/remove_django_mailer diff --git a/xenial/debian/patches/remove_django_mailer b/xenial/debian/patches/remove_django_mailer new file mode 100644 index 0000000..9663fdb --- /dev/null +++ b/xenial/debian/patches/remove_django_mailer @@ -0,0 +1,74 @@ +Description: Remove dependency on django-mailer + django-mailer is not used, so remove its dependency. +Author: Julien Danjou + +--- +Origin: vendor +Forwarded: yes + +--- horizon-2012.1~e1.orig/horizon/buildout.cfg ++++ horizon-2012.1~e1/horizon/buildout.cfg +@@ -28,7 +28,6 @@ webob = 1.0.8 + recipe = zc.recipe.egg + eggs = + python-dateutil +- django-mailer + httplib2 + python-cloudfiles + coverage +--- horizon-2012.1~e1.orig/horizon/horizon/tests/testsettings.py ++++ horizon-2012.1~e1/horizon/horizon/tests/testsettings.py +@@ -37,8 +37,7 @@ INSTALLED_APPS = ( + 'horizon.tests', + 'horizon.dashboards.nova', + 'horizon.dashboards.syspanel', +- 'horizon.dashboards.settings', +- 'mailer') ++ 'horizon.dashboards.settings') + + MIDDLEWARE_CLASSES = ( + 'django.middleware.common.CommonMiddleware', +@@ -85,10 +84,7 @@ NOSE_ARGS = ['--nocapture', + # For nose-selenium integration + LIVE_SERVER_PORT = 8000 + +-# django-mailer uses a different config attribute +-# even though it just wraps django.core.mail +-MAILER_EMAIL_BACKEND = 'django.core.mail.backends.locmem.EmailBackend' +-EMAIL_BACKEND = MAILER_EMAIL_BACKEND ++EMAIL_BACKEND = 'django.core.mail.backends.locmem.EmailBackend' + SESSION_ENGINE = 'django.contrib.sessions.backends.cache' + + HORIZON_CONFIG = { +--- horizon-2012.1~e1.orig/openstack-dashboard/tools/pip-requires ++++ horizon-2012.1~e1/openstack-dashboard/tools/pip-requires +@@ -1,7 +1,6 @@ + coverage + CherryPy + Django==1.3 +-django-mailer + django-nose==0.1.2 + django-nose-selenium + django-registration==0.7 +--- horizon-2012.1~e1.orig/openstack-dashboard/dashboard/settings.py ++++ horizon-2012.1~e1/openstack-dashboard/dashboard/settings.py +@@ -91,7 +91,6 @@ INSTALLED_APPS = ( + 'horizon.dashboards.nova', + 'horizon.dashboards.syspanel', + 'horizon.dashboards.settings', +- 'mailer', + ) + + TEST_RUNNER = 'django_nose.NoseTestSuiteRunner' +--- horizon-2012.1~e1.orig/openstack-dashboard/local/local_settings.py.example ++++ horizon-2012.1~e1/openstack-dashboard/local/local_settings.py.example +@@ -21,9 +21,6 @@ EMAIL_BACKEND = 'django.core.mail.backen + # Or send them to /dev/null + #EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend' + +-# django-mailer uses a different settings attribute +-MAILER_EMAIL_BACKEND = EMAIL_BACKEND +- + # Configure these for your outgoing email host + # EMAIL_HOST = 'smtp.my-company.com' + # EMAIL_PORT = 25 diff --git a/xenial/debian/patches/series b/xenial/debian/patches/series index 632fc78..490ead5 100644 --- a/xenial/debian/patches/series +++ b/xenial/debian/patches/series @@ -1,2 +1,3 @@ 3e8413be302d8c75da8996a6e3b73d619b2e7b34 fix_django.wsgi_sys.path +remove_django_mailer -- 2.45.2