#!/usr/bin/env python def getversion(fname): with open(fname) as fp: v = [ x for x in fp.readlines() if x.startswith('__version__') ] if len(v) != 1: raise ValueError('too many lines start with __version__') return v[0].split("'")[1] from setuptools import setup import os.path __version__ = getversion(os.path.join('ntunnel', '__init__.py')) # Install requirements for git: # https://stackoverflow.com/questions/18026980/python-setuptools-how-can-i-list-a-private-repository-under-install-requires setup(name='ntunnel', version=__version__, description='A socket tunning tool using the Noise Protocol', author='John-Mark Gurney', author_email='jmg@funkthat.com', classifiers=[ 'Development Status :: 3 - Alpha', 'Environment :: Console', 'Intended Audience :: Information Technology', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: BSD License', 'Topic :: Security', 'Topic :: System :: Networking', 'Topic :: Utilities', ], url='https://www.funkthat.com/gitea/jmg/ntunnel', packages=[ 'ntunnel', ], python_requires='~=3.7', install_requires=[ 'noiseprotocol @ git+https://github.com/jmgurney/noiseprotocol.git@f1c048242c807328724c8119505293975fe7c614' ], extras_require = { 'dev': [ 'coverage' ], 'quic': [ 'aioquic @ git+https://github.com/jmgurney/aioquic.git' ], }, entry_points={ 'console_scripts': [ 'ntunnel = ntunnel.__main__:main', ] } )