1# Copyright (c) 2021 Ian C. Good
2#
3# Permission is hereby granted, free of charge, to any person obtaining a copy
4# of this software and associated documentation files (the "Software"), to deal
5# in the Software without restriction, including without limitation the rights
6# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7# copies of the Software, and to permit persons to whom the Software is
8# furnished to do so, subject to the following conditions:
9#
10# The above copyright notice and this permission notice shall be included in
11# all copies or substantial portions of the Software.
12#
13# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19# THE SOFTWARE.
20#
21
22from setuptools import setup, find_packages  # type: ignore
23
24with open('README.md', 'r') as fh:
25    readme = fh.read()
26
27with open('LICENSE.md') as fh:
28    license = fh.read()
29
30setup(name='pysasl',
31      version='0.9.0',
32      author='Ian Good',
33      author_email='ian@icgood.net',
34      description='Pure Python SASL client and server library.',
35      long_description=readme + license,
36      long_description_content_type='text/markdown',
37      license='MIT',
38      url='https://github.com/icgood/pysasl/',
39      python_requires='~=3.6',
40      include_package_data=True,
41      packages=find_packages(),
42      install_requires=['typing-extensions'],
43      extras_require={'hashing': ['passlib']},
44      entry_points={'pysasl.mechanisms': [
45          'crammd5 = pysasl.mechanisms.crammd5:CramMD5Mechanism',
46          'external = pysasl.mechanisms.external:ExternalMechanism',
47          'login = pysasl.mechanisms.login:LoginMechanism',
48          'plain = pysasl.mechanisms.plain:PlainMechanism',
49          'oauth = pysasl.mechanisms.oauth:OAuth2Mechanism',
50      ]},
51      classifiers=['Development Status :: 3 - Alpha',
52                   'Intended Audience :: Developers',
53                   'Intended Audience :: Information Technology',
54                   'License :: OSI Approved :: MIT License',
55                   'Programming Language :: Python',
56                   'Programming Language :: Python :: 3.6',
57                   'Programming Language :: Python :: 3.7',
58                   'Programming Language :: Python :: 3.8',
59                   'Programming Language :: Python :: 3.9'])
60