summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsetup.py22
-rw-r--r--src/mailman_pgp/__init__.py6
2 files changed, 21 insertions, 7 deletions
diff --git a/setup.py b/setup.py
index 81b3384..693818c 100755
--- a/setup.py
+++ b/setup.py
@@ -2,21 +2,25 @@ import sys
from setuptools import find_packages, setup
-
if sys.hexversion < 0x30500f0:
print('Mailman requires at least Python 3.5')
sys.exit(1)
+from importlib.machinery import SourceFileLoader
+
+_init = SourceFileLoader('__init__',
+ 'src/mailman_pgp/__init__.py').load_module()
+
setup(
name='mailman_pgp',
- version='0.1',
+ version=_init.__version__,
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=_init.__author__,
author_email='johny@neuromancer.sk',
- license='GPLv3',
+ license=_init.__license__,
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: System Administrators',
@@ -28,10 +32,10 @@ A plugin for GNU Mailman that adds encrypted mailing lists via PGP/MIME.""",
keywords='email pgp',
packages=find_packages('src'),
package_dir={'': 'src'},
+ python_requires='>=3.5',
install_requires=[
'mailman>=3.2.0a1',
- 'PGPy',
- 'pyasn1==0.3.1',
+ 'PGPy>=0.4.2',
'atpublic',
'flufl.lock',
'sqlalchemy',
@@ -43,5 +47,9 @@ A plugin for GNU Mailman that adds encrypted mailing lists via PGP/MIME.""",
'parameterized',
'nose2'
],
- test_suite='nose2.collector.collector'
+ test_suite='nose2.collector.collector',
+ dependency_links=[
+ 'https://github.com/J08nY/PGPy/archive/dev.zip#egg=PGPy-0.4.2',
+ 'https://gitlab.com/J08nY/mailman/repository/archive.tar.gz?ref=plugin#egg=mailman-3.2.0a1'
+ ]
)
diff --git a/src/mailman_pgp/__init__.py b/src/mailman_pgp/__init__.py
index e69de29..cfc93d6 100644
--- a/src/mailman_pgp/__init__.py
+++ b/src/mailman_pgp/__init__.py
@@ -0,0 +1,6 @@
+from distutils.version import LooseVersion
+
+__author__ = 'Jan Jancar'
+__copyright__ = 'Copyright (C) 2017 Jan Jancar'
+__license__ = 'GPLv3'
+__version__ = str(LooseVersion('0.2.0'))