PageRenderTime 26ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 0ms

/yarss2/include/urllib3/setup.py

https://bitbucket.org/bendikro/deluge-yarss-plugin
Python | 86 lines | 80 code | 4 blank | 2 comment | 3 complexity | b4a557c511e764147795b41d461716c8 MD5 | raw file
Possible License(s): GPL-3.0, MIT, MPL-2.0, Apache-2.0, BSD-3-Clause
  1. #!/usr/bin/env python
  2. from setuptools import setup
  3. import os
  4. import re
  5. import codecs
  6. base_path = os.path.dirname(__file__)
  7. # Get the version (borrowed from SQLAlchemy)
  8. with open(os.path.join(base_path, "src", "urllib3", "__init__.py")) as fp:
  9. VERSION = (
  10. re.compile(r""".*__version__ = ["'](.*?)['"]""", re.S).match(fp.read()).group(1)
  11. )
  12. with codecs.open("README.rst", encoding="utf-8") as fp:
  13. readme = fp.read()
  14. with codecs.open("CHANGES.rst", encoding="utf-8") as fp:
  15. changes = fp.read()
  16. version = VERSION
  17. setup(
  18. name="urllib3",
  19. version=version,
  20. description="HTTP library with thread-safe connection pooling, file post, and more.",
  21. long_description=u"\n\n".join([readme, changes]),
  22. classifiers=[
  23. "Environment :: Web Environment",
  24. "Intended Audience :: Developers",
  25. "License :: OSI Approved :: MIT License",
  26. "Operating System :: OS Independent",
  27. "Programming Language :: Python",
  28. "Programming Language :: Python :: 2",
  29. "Programming Language :: Python :: 2.7",
  30. "Programming Language :: Python :: 3",
  31. "Programming Language :: Python :: 3.4",
  32. "Programming Language :: Python :: 3.5",
  33. "Programming Language :: Python :: 3.6",
  34. "Programming Language :: Python :: 3.7",
  35. "Programming Language :: Python :: 3.8",
  36. "Programming Language :: Python :: Implementation :: CPython",
  37. "Programming Language :: Python :: Implementation :: PyPy",
  38. "Topic :: Internet :: WWW/HTTP",
  39. "Topic :: Software Development :: Libraries",
  40. ],
  41. keywords="urllib httplib threadsafe filepost http https ssl pooling",
  42. author="Andrey Petrov",
  43. author_email="andrey.petrov@shazow.net",
  44. url="https://urllib3.readthedocs.io/",
  45. license="MIT",
  46. packages=[
  47. "urllib3",
  48. "urllib3.packages",
  49. "urllib3.packages.ssl_match_hostname",
  50. "urllib3.packages.backports",
  51. "urllib3.contrib",
  52. "urllib3.contrib._securetransport",
  53. "urllib3.util",
  54. ],
  55. package_dir={"": "src"},
  56. requires=[],
  57. python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4",
  58. tests_require=[
  59. # These are a less-specific subset of dev-requirements.txt, for the
  60. # convenience of distro package maintainers.
  61. "pytest",
  62. "mock",
  63. "tornado",
  64. ],
  65. test_suite="test",
  66. extras_require={
  67. "brotli": ["brotlipy>=0.6.0"],
  68. "secure": [
  69. "pyOpenSSL>=0.14",
  70. "cryptography>=1.3.4",
  71. "idna>=2.0.0",
  72. "certifi",
  73. "ipaddress; python_version=='2.7'",
  74. ],
  75. "socks": ["PySocks>=1.5.6,<2.0,!=1.5.7"],
  76. },
  77. )