An stunnel like program that utilizes the Noise protocol.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

47 lines
1.5 KiB

  1. #!/usr/bin/env python
  2. def getversion(fname):
  3. with open(fname) as fp:
  4. v = [ x for x in fp.readlines() if x.startswith('__version__') ]
  5. if len(v) != 1:
  6. raise ValueError('too many lines start with __version__')
  7. return v[0].split("'")[1]
  8. from setuptools import setup
  9. import os.path
  10. __version__ = getversion(os.path.join('ntunnel', '__init__.py'))
  11. # Install requirements for git:
  12. # https://stackoverflow.com/questions/18026980/python-setuptools-how-can-i-list-a-private-repository-under-install-requires
  13. setup(name='ntunnel',
  14. version=__version__,
  15. description='A socket tunning tool using the Noise Protocol',
  16. author='John-Mark Gurney',
  17. author_email='jmg@funkthat.com',
  18. classifiers=[
  19. 'Development Status :: 3 - Alpha',
  20. 'Environment :: Console',
  21. 'Intended Audience :: Information Technology',
  22. 'Intended Audience :: System Administrators',
  23. 'License :: OSI Approved :: BSD License',
  24. 'Topic :: Security',
  25. 'Topic :: System :: Networking',
  26. 'Topic :: Utilities',
  27. ],
  28. url='https://www.funkthat.com/gitea/jmg/ntunnel',
  29. packages=[ 'ntunnel', ],
  30. python_requires='~=3.7',
  31. install_requires=[
  32. 'noiseprotocol @ git+https://github.com/jmgurney/noiseprotocol.git@f1c048242c807328724c8119505293975fe7c614'
  33. ],
  34. extras_require = {
  35. 'dev': [ 'coverage' ],
  36. },
  37. entry_points={
  38. 'console_scripts': [
  39. 'ntunnel = ntunnel.__main__:main',
  40. ]
  41. }
  42. )