An attempt at adding UDP support to aiosocks. Untested due to lack of server support.
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.
 
 

38 lines
958 B

  1. #!/usr/bin/env python
  2. import codecs
  3. import os
  4. import re
  5. import sys
  6. try:
  7. from setuptools import setup
  8. except ImportError:
  9. from distutils.core import setup
  10. with codecs.open(os.path.join(os.path.abspath(os.path.dirname(
  11. __file__)), 'aiosocks', '__init__.py'), 'r', 'latin1') as fp:
  12. try:
  13. version = re.findall(r"^__version__ = '([^']+)'\r?$",
  14. fp.read(), re.M)[0]
  15. except IndexError:
  16. raise RuntimeError('Unable to determine version.')
  17. if sys.version_info < (3, 4, 0):
  18. raise RuntimeError("aiosocks requires Python 3.5.1+")
  19. setup(
  20. name='aiosocks',
  21. author='Nail Ibragimov',
  22. author_email='ibragwork@gmail.com',
  23. version=version,
  24. license='Apache 2',
  25. url='https://github.com/nibrag/aiosocks',
  26. description='SOCKS proxy client for asyncio and aiohttp',
  27. long_description=open("README.rst").read(),
  28. packages=['aiosocks']
  29. )