Subscription requests should only show ones pending for moderator.
[mailman-postorious.git] / setup.py
blob8971d22b65e372d31d648e9cd87748e68ffb5ddd
1 # Copyright (C) 2012-2019 by the Free Software Foundation, Inc.
3 # This file is part of Postorius.
5 # Postorius is free software: you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as published by the
7 # Free Software Foundation, either version 3 of the License, or (at your
8 # option) any later version.
10 # Postorius is distributed in the hope that it will be useful, but WITHOUT
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
13 # for more details.
15 # You should have received a copy of the GNU Lesser General Public License
16 # along with Postorius. If not, see <http://www.gnu.org/licenses/>.
18 import re
19 import sys
20 from setuptools import setup, find_packages
22 # Calculate the version number without importing the postorius package.
23 with open('src/postorius/__init__.py') as fp:
24 for line in fp:
25 mo = re.match("__version__ = '(?P<version>[^']+?)'", line)
26 if mo:
27 __version__ = mo.group('version')
28 break
29 else:
30 print('No version number found')
31 sys.exit(1)
34 setup(
35 name="postorius",
36 version=__version__,
37 description="A web user interface for GNU Mailman",
38 long_description=open('README.rst').read(),
39 maintainer="The Mailman GSOC Coders",
40 license='GPLv3',
41 keywords='email mailman django',
42 url=" https://gitlab.com/mailman/postorius",
43 classifiers=[
44 "Framework :: Django",
45 "Development Status :: 4 - Beta",
46 "License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
47 "Topic :: Communications :: Email :: Mailing List Servers",
48 "Programming Language :: Python :: 3",
50 packages=find_packages('src'),
51 package_dir={'': 'src'},
52 include_package_data=True,
53 install_requires=[
54 'Django>=1.11,<2.2',
55 'django-mailman3>=1.2.0a1',
56 'mailmanclient>=3.2.1'
58 tests_require=[
59 "mock",
60 "vcrpy",
61 "beautifulsoup4",