Skip to content

Commit

Permalink
Merge pull request #1363 from fyfe/prepare-for-release
Browse files Browse the repository at this point in the history
prepare for release
  • Loading branch information
tonioo committed Jan 25, 2018
2 parents c6e25b0 + 0c24969 commit 363c91d
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Expand Up @@ -33,10 +33,10 @@ before_install:
- pip install codecov

install:
- pip install -q -r requirements.txt
- pip install -q -r ldap-requirements.txt
- pip install -q -r test-requirements.txt
- python setup.py -q develop
- pip install -r requirements.txt
- pip install -r ldap-requirements.txt
- pip install -r test-requirements.txt
- python setup.py develop

before_script:
- mkdir /tmp/slapd
Expand Down
32 changes: 22 additions & 10 deletions doc/upgrade.rst
Expand Up @@ -94,12 +94,24 @@ Specific instructions
1.10.0
======

First of all, update postfix map files as follows:
Edit the :file:`settings.py` file and replace the following line:

.. sourcecode:: python

MIDDLEWARE_CLASSES = (

by:

.. sourcecode:: python

MIDDLEWARE = (

Update postfix map files as follows:

.. sourcecode:: bash

> python manage.py generate_postfix_maps --destdir <path>

Then, modify postfix's configuration as follows::

smtpd_sender_login_maps =
Expand Down Expand Up @@ -236,9 +248,9 @@ Edit your :file:`settings.py` file and apply the following modifications:
* Remove the ``SWAGGER_SETTINGS`` variable

* Add the following content

.. sourcecode:: python

# CKeditor

CKEDITOR_UPLOAD_PATH = "uploads/"
Expand Down Expand Up @@ -332,7 +344,7 @@ Edit the :file:`settings.py` and apply the following changes:
* Add ``'modoboa.core.middleware.LocalConfigMiddleware'`` to ``MIDDLEWARE_CLASSES``:

.. sourcecode:: python

MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
Expand Down Expand Up @@ -468,7 +480,7 @@ First of all, update postfix map files as follows:
.. sourcecode:: bash

> python manage.py generate_postfix_maps --destdir <path> --force-overwrite

Then, modify postfix's configuration as follows::

smtpd_sender_login_maps =
Expand Down Expand Up @@ -603,7 +615,7 @@ your :file:`settings.py` file, make sure it looks like this::

.. warning::

Do not follow the regular upgrade procedure for this version.
Do not follow the regular upgrade procedure for this version.

Some extension have been moved back into the main repository. The main
reason for that is that using Modoboa without them doesn't make sense.
Expand All @@ -628,7 +640,7 @@ Then, apply the following steps:
$ pip uninstall modoboa-admin modoboa-admin-limits modoboa-admin-relaydomains

#. Install all extension updates using pip (check the *Modoboa > Information* page)

#. Manually migrate database::

$ cd <instance_dir>
Expand All @@ -648,7 +660,7 @@ This version also introduces a REST API. To enable it:
#. Add ``'rest_framework.authtoken'`` to the ``INSTALLED_APPS`` variable

#. Add the following configuration inside ``settings.py``::

# Rest framework settings

REST_FRAMEWORK = {
Expand Down Expand Up @@ -780,7 +792,7 @@ versions. To activate it, you need to update the
``TEMPLATE_CONTEXT_PROCESSORS`` variable like this::

from django.conf import global_settings

TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS + (
'modoboa.core.context_processors.top_notifications',
)
Expand Down
30 changes: 30 additions & 0 deletions modoboa/admin/migrations/0013_auto_20180124_2311.py
@@ -0,0 +1,30 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-24 23:11
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('admin', '0012_auto_20180112_1658'),
]

operations = [
migrations.AlterField(
model_name='domain',
name='dkim_key_selector',
field=models.CharField(default='modoboa', max_length=30),
),
migrations.AlterField(
model_name='domain',
name='type',
field=models.CharField(default='domain', max_length=20),
),
migrations.AlterField(
model_name='mailboxoperation',
name='type',
field=models.CharField(choices=[('rename', 'rename'), ('delete', 'delete')], max_length=20),
),
]

0 comments on commit 363c91d

Please sign in to comment.