Commit 1803a0b3 authored by Abhilash Raj's avatar Abhilash Raj

Metadata and docs changes for Python 3 support.

Git head test should not use Django's latest version.

Fix Postorius's tests.

This fixes some of the failing git tests due to some of the change in repr of
the objects. This commits changes the comparison to List's fqdn_listname instead
of repr, which isn't even supposed to machine readable string.
parent d79e06e4
......@@ -38,7 +38,7 @@ pep8:
django-1.11-git:
stage: test
script:
- tox -e py36-django-latest-head
- tox -e py36-head
django-latest:
stage: test
......
......@@ -41,7 +41,11 @@ setup(
keywords='email mailman django',
url=" https://gitlab.com/mailman/postorius",
classifiers=[
"Programming Language :: Python",
"Framework :: Django",
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Topic :: Communications :: Email :: Mailing List Servers",
"Programming Language :: Python :: 3",
],
packages=find_packages('src'),
package_dir={'': 'src'},
......
......@@ -2,6 +2,8 @@
Deployment
============
Postorius support Python 3.5+ and Django 1.11+.
.. note::
This guide covers deployment options of Postorius.
......
Postorius - The New Mailman Web UI
==================================
Copyright (C) 2009-2016 by the Free Software Foundation, Inc.
Copyright (C) 2009-2018 by the Free Software Foundation, Inc.
This is Postorius, the new official web interface for the GNU Mailman 3
list management system.
......
......@@ -12,6 +12,8 @@ Installation
Install Postorius
=================
Postorius supports Python 3.5+ and Django 1.11+.
Latest release
--------------
......
......@@ -86,17 +86,15 @@ class TestMailmanListManager(ViewTestCase):
# This should return all the 2 mailing lists that we have.
self.assertEqual(len(lists), 3)
self.assertEqual(
[str(x) for x in lists],
['<List "bar@example.com">',
'<List "baz@most-desirable.org">',
'<List "foo@example.com">'])
[x.fqdn_listname for x in lists],
['bar@example.com', 'baz@most-desirable.org', 'foo@example.com'])
def test_get_by_mail_host(self):
lists = self.list_manager.by_mail_host('example.com')
self.assertEqual(len(lists), 2)
self.assertEqual(
[str(x) for x in lists],
['<List "bar@example.com">', '<List "foo@example.com">'])
[x.fqdn_listname for x in lists],
['bar@example.com', 'foo@example.com'])
def test_get_single_mailinglist(self):
mlist = self.list_manager.get('baz@most-desirable.org')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment