Debian Codegraph @

setup.py

raw symbols SCIP
1 #!/usr/bin/env python
2
3 # This software is provided 'as-is', without any express or implied
4 # warranty. In no event will the author be held liable for any damages
5 # arising from the use of this software.
6 #
7 # Permission is granted to anyone to use this software for any purpose,
8 # including commercial applications, and to alter it and redistribute it
9 # freely, subject to the following restrictions:
10 #
11 # 1. The origin of this software must not be misrepresented; you must not
12 # claim that you wrote the original software. If you use this software
13 # in a product, an acknowledgment in the product documentation would be
14 # appreciated but is not required.
15 # 2. Altered source versions must be plainly marked as such, and must not be
16 # misrepresented as being the original software.
17 # 3. This notice may not be removed or altered from any source distribution.
18 #
19 # Copyright (c) 2008 Greg Hewgill http://hewgill.com
20 #
21 # This has been modified from the original software.
22 # Copyright (c) 2011,2012,2018 Scott Kitterman <[email protected]>
23
24 from setuptools import setup
25 import os
26 import sys
27
28 version = "1.1.8"
29
30 kw = {} # Work-around for lack of 'or' requires in setuptools.
31 try:
32 import DNS
33 kw['install_requires'] = ['Py3DNS']
34 except ImportError: # If PyDNS is not installed, prefer dnspython
35 kw['install_requires'] = ['dnspython>=2.0.0']
36
37 with open("README.md", "r") as fh:
38 long_description = fh.read()
39
40 setup(
41 name = "dkimpy",
42 version = version,
43 description = "DKIM (DomainKeys Identified Mail), ARC (Authenticated Receive Chain), and TLSRPT (TLS Report) email signing and verification",
44 long_description=long_description,
45 long_description_content_type='text/markdown',
46 author = "Scott Kitterman",
47 author_email = "[email protected]",
48 url = "https://launchpad.net/dkimpy",
49 license = "BSD-like",
50 packages = ["dkim"],
51 entry_points = {
52 'console_scripts' : [
53 'arcsign = dkim.arcsign:main',
54 'arcverify = dkim.arcverify:main',
55 'dkimsign = dkim.dkimsign:main',
56 'dkimverify = dkim.dkimverify:main',
57 'dknewkey = dkim.dknewkey:main'
58 ],
59 },
60 data_files = [(os.path.join('share', 'man', 'man1'),
61 ['man/arcsign.1']), (os.path.join('share', 'man', 'man1'),
62 ['man/arcverify.1']),(os.path.join('share', 'man', 'man1'),
63 ['man/dkimsign.1']), (os.path.join('share', 'man', 'man1'),
64 ['man/dkimverify.1']),(os.path.join('share', 'man', 'man1'),
65 ['man/dknewkey.1']),],
66 classifiers = [
67 'Development Status :: 5 - Production/Stable',
68 'Environment :: No Input/Output (Daemon)',
69 'Intended Audience :: Developers',
70 'License :: DFSG approved',
71 'Natural Language :: English',
72 'Operating System :: OS Independent',
73 'Programming Language :: Python :: 3',
74 'Topic :: Communications :: Email :: Mail Transport Agents',
75 'Topic :: Communications :: Email :: Filters',
76 'Topic :: Internet :: Name Service (DNS)',
77 'Topic :: Software Development :: Libraries :: Python Modules'
78 ],
79 zip_safe = False,
80 extras_require={
81 'testing': [
82 'authres',
83 'pynacl',
84 ],
85 'ed25519': ['pynacl'],
86 'ARC': ['authres'],
87 'asyncio': ['aiodns']
88 },
89 **kw
90 )
91
92 if os.name != 'posix':
93 data_files = ''