setup.py 1.46 KB
Newer Older
1
"""
2
Python RNDC protocol library
3 4 5

A native python library that implements the RNDC protocol.
"""
6 7
from codecs import open
from os import path
8 9
from setuptools import setup
from unittest import TestLoader
10 11 12 13 14 15 16

from rndc import __version__

here = path.abspath(path.dirname(__file__))

with open(path.join(here, 'README.md'), encoding='utf-8') as f:
    long_description = f.read()
17

18 19 20 21 22 23 24

def get_test_suite():
    test_loader = TestLoader()
    test_suite = test_loader.discover('tests', pattern='test_*.py')
    return test_suite


25 26
setup(
    name="rndc",
27
    version=__version__,
28
    description="RNDC Protocol Library",
29 30 31
    long_description=long_description,
    long_description_content_type='text/markdown',

32 33
    keywords="library DNS RNDC BIND",

34
    author="Internet Systems Consortium",
35
    license="MPL 2.0",
36
    url="https://gitlab.isc.org/isc-projects/python-rndc",
37 38 39 40 41 42 43 44 45 46 47

    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Natural Language :: English',
        'Operating System :: POSIX',
        'Operating System :: Unix',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Topic :: Internet :: Name Service (DNS)',
        'Topic :: Software Development :: Libraries',
48
        'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)',
49 50
    ],

51
    test_suite='setup.get_test_suite',
52
    py_modules=['rndc'],
53 54
    install_requires=[],

55 56
    data_files=[("", ["COPYRIGHT"])]

57
)