PageRenderTime 51ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/setup.py

https://gitlab.com/tlevine/urllib3
Python | 57 lines | 45 code | 8 blank | 4 comment | 2 complexity | 45408c2b87708b43550ecc3d11ae9704 MD5 | raw file
  1. #!/usr/bin/env python
  2. from distutils.core import setup
  3. import os
  4. import re
  5. try:
  6. import setuptools
  7. except ImportError:
  8. pass # No 'develop' command, oh well.
  9. base_path = os.path.dirname(__file__)
  10. # Get the version (borrowed from SQLAlchemy)
  11. fp = open(os.path.join(base_path, 'urllib3', '__init__.py'))
  12. VERSION = re.compile(r".*__version__ = '(.*?)'",
  13. re.S).match(fp.read()).group(1)
  14. fp.close()
  15. version = VERSION
  16. setup(name='urllib3',
  17. version=version,
  18. description="HTTP library with thread-safe connection pooling, file post, and more.",
  19. long_description=open('README.rst').read() + '\n\n' + open('CHANGES.rst').read(),
  20. classifiers=[
  21. 'Environment :: Web Environment',
  22. 'Intended Audience :: Developers',
  23. 'License :: OSI Approved :: MIT License',
  24. 'Operating System :: OS Independent',
  25. 'Programming Language :: Python',
  26. 'Programming Language :: Python :: 2',
  27. 'Programming Language :: Python :: 3',
  28. 'Topic :: Internet :: WWW/HTTP',
  29. 'Topic :: Software Development :: Libraries',
  30. ],
  31. keywords='urllib httplib threadsafe filepost http https ssl pooling',
  32. author='Andrey Petrov',
  33. author_email='andrey.petrov@shazow.net',
  34. url='http://urllib3.readthedocs.org/',
  35. license='MIT',
  36. packages=['urllib3',
  37. 'urllib3.packages', 'urllib3.packages.ssl_match_hostname',
  38. 'urllib3.contrib', 'urllib3.util',
  39. ],
  40. requires=[],
  41. tests_require=[
  42. # These are a less-specific subset of dev-requirements.txt, for the
  43. # convenience of distro package maintainers.
  44. 'nose',
  45. 'mock',
  46. 'tornado',
  47. ],
  48. test_suite='test',
  49. )