A hack to provide some privacy to DNS queries.
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.
 
 

49 line
1.6 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('privrdns', '__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='privrdns',
  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/privrdns',
  29. packages=[ 'privrdns', ],
  30. python_requires='~=3.7',
  31. install_requires=[
  32. 'ntunnel @ git+https://www.funkthat.com/gitea/jmg/ntunnel.git@c203547c28e935d11855601ce4e4f31db4e9065d',
  33. 'dnspython @ git+https://github.com/rthalley/dnspython.git',
  34. 'dnslib @ git+https://github.com/paulc/dnslib.git',
  35. ],
  36. extras_require = {
  37. 'dev': [ 'coverage' ],
  38. },
  39. entry_points={
  40. 'console_scripts': [
  41. 'privrdns = privrdns.__main__:main',
  42. ]
  43. }
  44. )