setup.py 919 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
#!/usr/bin/env python

import os
from setuptools import setup
from importlib import import_module

from mox_otp import __version__


def get_description(filename):
    """Reads and returns content of given file
    """
    with open(os.path.join(os.path.dirname(__file__), filename)) as f:
        return f.read()


setup(
        name='mox-otp',
        packages=[
                'mox_otp',
        ],
        version=__version__
        description='Command line tool to query MOX CPU read-only OTP device',
        long_description=get_description('README.md'),
        long_description_content_type='text/markdown',
        url='https://gitlab.labs.nic.cz/turris/mox-otp/',
        author='CZ.NIC, z.s.p.o.',
        author_email='packaging@turris.cz',
        license='GNU GPL v3',
        entry_points={
            'console_scripts': [
                'mox-otp=mox_otp.__main__:main'
            ]
        },
)