Skip to content
This repository has been archived by the owner on Sep 17, 2019. It is now read-only.

Commit

Permalink
merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
dstegelman committed Oct 28, 2014
2 parents 0ec235a + 97a4e55 commit 987cdce
Show file tree
Hide file tree
Showing 19 changed files with 131 additions and 108 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ django_mail_queue.egg-info/
.idea
*.iml
/build
.vagrant
Vagrantfile
57 changes: 3 additions & 54 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,17 @@ language: python
python:
- "2.7"
- "3.3"
- "3.4"

env:
- DJANGO_VERSION=Django==1.4.2
- DJANGO_VERSION=Django==1.4.3
- DJANGO_VERSION=Django==1.4.4
- DJANGO_VERSION=Django==1.4.5
- DJANGO_VERSION=Django==1.4.6
- DJANGO_VERSION=Django==1.4.7
- DJANGO_VERSION=Django==1.4.8
- DJANGO_VERSION=Django==1.4.9
- DJANGO_VERSION=Django==1.4.10
- DJANGO_VERSION=Django==1.5
- DJANGO_VERSION=Django==1.5.1
- DJANGO_VERSION=Django==1.5.2
- DJANGO_VERSION=Django==1.5.3
- DJANGO_VERSION=Django==1.5.4
- DJANGO_VERSION=Django==1.5.5
- DJANGO_VERSION=Django==1.5.6
- DJANGO_VERSION=Django==1.5.7
- DJANGO_VERSION=Django==1.6
- DJANGO_VERSION=Django==1.6.1
- DJANGO_VERSION=Django==1.6.2
- DJANGO_VERSION=Django==1.6.3
- DJANGO_VERSION=Django==1.6.4
- DJANGO_VERSION=Django==1.6.5
- DJANGO_VERSION=Django==1.7

# command to install dependencies
install:
- pip install --use-mirrors $DJANGO_VERSION
- pip install $DJANGO_VERSION

# command to run tests

Expand All @@ -42,38 +24,5 @@ matrix:
exclude:
- python: "3.3"
env: DJANGO_VERSION=Django==1.4.2
- python: "3.3"
env: DJANGO_VERSION=Django==1.4.3
- python: "3.3"
env: DJANGO_VERSION=Django==1.4.4
- python: "3.3"
env: DJANGO_VERSION=Django==1.4.5
- python: "3.3"
env: DJANGO_VERSION=Django==1.4.6
- python: "3.3"
env: DJANGO_VERSION=Django==1.4.7
- python: "3.3"
env: DJANGO_VERSION=Django==1.4.8
- python: "3.3"
env: DJANGO_VERSION=Django==1.4.9
- python: "3.3"
env: DJANGO_VERSION=Django==1.4.10
- python: "3.4"
env: DJANGO_VERSION=Django==1.4.2
- python: "3.4"
env: DJANGO_VERSION=Django==1.4.3
- python: "3.4"
env: DJANGO_VERSION=Django==1.4.4
- python: "3.4"
env: DJANGO_VERSION=Django==1.4.5
- python: "3.4"
env: DJANGO_VERSION=Django==1.4.6
- python: "3.4"
env: DJANGO_VERSION=Django==1.4.7
- python: "3.4"
env: DJANGO_VERSION=Django==1.4.8
- python: "3.4"
env: DJANGO_VERSION=Django==1.4.9
- python: "3.4"
env: DJANGO_VERSION=Django==1.4.10

3 changes: 2 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ command is called in batches.
- Django 1.7 Support
- Python 3 support for Django 1.7 tempoarily susupended. Please use 2.1.2
- Wheel support
- Retired South migrations to mailqueue/south_migrations
- Retired South migrations to mailqueue/south_migrations

11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,21 @@ Django Mail Queue
Mail Queue provides an easy and simple way to send email. Each email is saved and queued up either in
real time or with Celery. As always, feedback, bugs, and suggestions are welcome.

Python 3 Users!
---------------

Django 1.7 is only supported on Python 2 at this point. There is an
outstanding bug in issue #47. If you use Python 3 with Django 1.7 DO NOT UPGRADE
to 2.2.0.

Installation
------------

pip install django-mail-queue

We officially support the 3 latest versions of Django as best as possible. Currently this means
that we test and support Django 1.4, 1.5, and 1.6 on Python 2.7, 3.3, and 3.4
that we test and support Django 1.4.2 and greater on Python 2.7, 3.3, and 3.4

Read me some docs
-----------------

Expand Down
6 changes: 3 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@

# General information about the project.
project = u'Django Mail Queue'
copyright = u'2011 - 2013, Derek Stegelman'
copyright = u'2011 - 2014, Derek Stegelman'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '2.1.2'
version = '2.2.0'
# The full version, including alpha/beta/rc tags.
release = '2.1.2'
release = '2.2.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
10 changes: 5 additions & 5 deletions docs/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ Requirements
Django Mail Queue requires::

python 2.7 or greater
south
django 1.4 or greater
south #If using Django < 1.7
django 1.4.2 or greater

Django Mail Queue is tested against Python 2.7, 3.3 and Django 1.4, and 1.5.
Django Mail Queue is tested against Python 2.7, 3.3 and Django 1.4.2, 1.5, 1.6, and 1.7.

Installation
------------
Expand All @@ -31,9 +31,9 @@ Open ``settings.py`` and add ``mailqueue`` to your ``INSTALLED_APPS``::

INSTALLED_APPS = (
'mailqueue',
'south',
'south', # only needed for < 1.7
)



Cron Job (optional)
Expand Down
4 changes: 2 additions & 2 deletions example/example/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'demo.db', # Or path to database file if using sqlite3.
# The following settings are not used with sqlite3:
'USER': '',
Expand Down Expand Up @@ -172,4 +172,4 @@
'propagate': True,
},
}
}
}
3 changes: 2 additions & 1 deletion mailqueue/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
VERSION = '2.1.2'
VERSION = '2.2.0'

default_app_config = 'mailqueue.apps.MailQueueConfig'
7 changes: 7 additions & 0 deletions mailqueue/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from django.apps import AppConfig


class MailQueueConfig(AppConfig):
name = 'mailqueue'
label = 'mailqueue'
verbose_name = "Mail Queue"
84 changes: 46 additions & 38 deletions mailqueue/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,43 +1,51 @@
# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

class Migration(SchemaMigration):
from django.db import models, migrations

def forwards(self, orm):

# Adding model 'MailerMessage'
db.create_table('mailqueue_mailermessage', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('subject', self.gf('django.db.models.fields.CharField')(max_length=250, null=True, blank=True)),
('to_address', self.gf('django.db.models.fields.EmailField')(max_length=250)),
('from_address', self.gf('django.db.models.fields.EmailField')(max_length=250)),
('content', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
('app', self.gf('django.db.models.fields.CharField')(max_length=250, null=True, blank=True)),
('sent', self.gf('django.db.models.fields.BooleanField')(default=False)),
))
db.send_create_signal('mailqueue', ['MailerMessage'])

class Migration(migrations.Migration):

def backwards(self, orm):

# Deleting model 'MailerMessage'
db.delete_table('mailqueue_mailermessage')
dependencies = [
]


models = {
'mailqueue.mailermessage': {
'Meta': {'object_name': 'MailerMessage'},
'app': ('django.db.models.fields.CharField', [], {'max_length': '250', 'null': 'True', 'blank': 'True'}),
'content': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'from_address': ('django.db.models.fields.EmailField', [], {'max_length': '250'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'sent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'subject': ('django.db.models.fields.CharField', [], {'max_length': '250', 'null': 'True', 'blank': 'True'}),
'to_address': ('django.db.models.fields.EmailField', [], {'max_length': '250'})
}
}

complete_apps = ['mailqueue']
operations = [
migrations.CreateModel(
name='Attachment',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('file_attachment', models.FileField(null=True, upload_to=b'mail-queue/attachments', blank=True)),
],
options={
'verbose_name': 'Attachment',
'verbose_name_plural': 'Attachments',
},
bases=(models.Model,),
),
migrations.CreateModel(
name='MailerMessage',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('subject', models.CharField(max_length=250, verbose_name='Subject', blank=True)),
('to_address', models.TextField(verbose_name='To')),
('bcc_address', models.TextField(verbose_name='BCC', blank=True)),
('from_address', models.EmailField(max_length=250, verbose_name='From')),
('content', models.TextField(verbose_name='Content', blank=True)),
('html_content', models.TextField(verbose_name='HTML Content', blank=True)),
('app', models.CharField(max_length=250, verbose_name='App', blank=True)),
('sent', models.BooleanField(default=False, verbose_name='Sent', editable=False)),
('last_attempt', models.DateTimeField(verbose_name='Last attempt', null=True, editable=False, blank=True)),
],
options={
'verbose_name': 'Message',
'verbose_name_plural': 'Messages',
},
bases=(models.Model,),
),
migrations.AddField(
model_name='attachment',
name='email',
field=models.ForeignKey(blank=True, to='mailqueue.MailerMessage', null=True),
preserve_default=True,
),
]
43 changes: 43 additions & 0 deletions mailqueue/south_migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models

class Migration(SchemaMigration):

def forwards(self, orm):

# Adding model 'MailerMessage'
db.create_table('mailqueue_mailermessage', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('subject', self.gf('django.db.models.fields.CharField')(max_length=250, null=True, blank=True)),
('to_address', self.gf('django.db.models.fields.EmailField')(max_length=250)),
('from_address', self.gf('django.db.models.fields.EmailField')(max_length=250)),
('content', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
('app', self.gf('django.db.models.fields.CharField')(max_length=250, null=True, blank=True)),
('sent', self.gf('django.db.models.fields.BooleanField')(default=False)),
))
db.send_create_signal('mailqueue', ['MailerMessage'])


def backwards(self, orm):

# Deleting model 'MailerMessage'
db.delete_table('mailqueue_mailermessage')


models = {
'mailqueue.mailermessage': {
'Meta': {'object_name': 'MailerMessage'},
'app': ('django.db.models.fields.CharField', [], {'max_length': '250', 'null': 'True', 'blank': 'True'}),
'content': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'from_address': ('django.db.models.fields.EmailField', [], {'max_length': '250'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'sent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'subject': ('django.db.models.fields.CharField', [], {'max_length': '250', 'null': 'True', 'blank': 'True'}),
'to_address': ('django.db.models.fields.EmailField', [], {'max_length': '250'})
}
}

complete_apps = ['mailqueue']
Empty file.
7 changes: 5 additions & 2 deletions runtests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python

__author__ = 'derek'
import os, sys
from django.conf import settings
import django
Expand Down Expand Up @@ -39,7 +38,11 @@
USE_TZ=True)



try:
# Django 1.7 needs this, but other versions dont.
django.setup()
except AttributeError:
pass

from django.test.simple import DjangoTestSuiteRunner
test_runner = DjangoTestSuiteRunner(verbosity=1)
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[bdist_wheel]
universal = 1

0 comments on commit 987cdce

Please sign in to comment.