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
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/>.
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
:
25 mo
= re
.match("__version__ = '(?P<version>[^']+?)'", line
)
27 __version__
= mo
.group('version')
30 print('No version number found')
37 description
="A web user interface for GNU Mailman",
38 long_description
=open('README.rst').read(),
39 maintainer
="The Mailman GSOC Coders",
41 keywords
='email mailman django',
42 url
=" https://gitlab.com/mailman/postorius",
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,
55 'django-mailman3>=1.2.0a1',
56 'mailmanclient>=3.2.1'