- Use install_requires and extras_requires to document external

dependencies for dkimpy (LP: #1227526)
This commit is contained in:
Scott Kitterman
2018-03-27 01:23:00 -04:00
parent 7efe59e907
commit 3020b0e6d6
3 changed files with 33 additions and 12 deletions
+14 -1
View File
@@ -26,6 +26,13 @@ import os
version = "0.8.0"
kw = {} # Work-around for lack of 'or' requires in setuptools.
try:
import DNS
kw['install_requires'] = ['PyDNS']
except ImportError: # If PyDNS is not installed, prefer dnspython
kw['install_requires'] = ['dnspython']
setup(
name = "dkimpy",
version = version,
@@ -67,7 +74,13 @@ verification.""",
'Topic :: Communications :: Email :: Filters',
'Topic :: Internet :: Name Service (DNS)',
'Topic :: Software Development :: Libraries :: Python Modules'
]
],
zip_safe = False,
extras_require={
'ed25519': ['PyNaCl'],
'ARC': ['authres']
},
**kw
)
if os.name != 'posix':