From 64572d90cac74f8967dfe9ef25206812d9986d63 Mon Sep 17 00:00:00 2001 From: J08nY Date: Sat, 15 Jul 2017 17:15:17 +0200 Subject: Bump minimum python version to 3.5 as Mailman 3.2 does. --- setup.py | 76 ++++++++++++++++++++++++++++++++++------------------------------ 1 file changed, 41 insertions(+), 35 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index b161b5c..c0e1518 100755 --- a/setup.py +++ b/setup.py @@ -1,40 +1,46 @@ +import sys + from setuptools import find_packages, setup + +if sys.hexversion < 0x30500f0: + print('Mailman requires at least Python 3.5') + sys.exit(1) + setup( - name='mailman_pgp', - version='0.1', - description='A PGP plugin for the GNU Mailman mailing list manager', - long_description="""\ + name='mailman_pgp', + version='0.1', + description='A PGP plugin for the GNU Mailman mailing list manager', + long_description="""\ A plugin for GNU Mailman that adds encrypted mailing lists via PGP/MIME.""", - url='https://gitlab.com/J08nY/mailman-pgp', - author='Jan Jancar', - author_email='johny@neuromancer.sk', - license='GPLv3', - classifiers=[ - 'Development Status :: 2 - Pre-Alpha', - 'Intended Audience :: System Administrators', - 'Operating System :: POSIX', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Topic :: Communications :: Email :: Mailing List Servers', - ], - keywords='email pgp', - packages=find_packages('src'), - package_dir={'': 'src'}, - install_requires=[ - 'mailman>=3.1.1', - 'PGPy', - 'atpublic', - 'flufl.lock', - 'sqlalchemy', - 'zope.interface', - 'zope.event' - ], - tests_require=[ - 'flufl.testing', - 'parameterized', - 'nose2' - ], - test_suite='nose2.collector.collector' + url='https://gitlab.com/J08nY/mailman-pgp', + author='Jan Jancar', + author_email='johny@neuromancer.sk', + license='GPLv3', + classifiers=[ + 'Development Status :: 2 - Pre-Alpha', + 'Intended Audience :: System Administrators', + 'Operating System :: POSIX', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Topic :: Communications :: Email :: Mailing List Servers', + ], + keywords='email pgp', + packages=find_packages('src'), + package_dir={'': 'src'}, + install_requires=[ + 'mailman>=3.1.1', + 'PGPy', + 'atpublic', + 'flufl.lock', + 'sqlalchemy', + 'zope.interface', + 'zope.event' + ], + tests_require=[ + 'flufl.testing', + 'parameterized', + 'nose2' + ], + test_suite='nose2.collector.collector' ) -- cgit v1.2.3-70-g09d2