diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /python/requests/setup.py | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'python/requests/setup.py')
-rwxr-xr-x | python/requests/setup.py | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/python/requests/setup.py b/python/requests/setup.py new file mode 100755 index 000000000..b7ed12ba2 --- /dev/null +++ b/python/requests/setup.py @@ -0,0 +1,74 @@ +#!/usr/bin/env python + +import os +import re +import sys + +from codecs import open + +try: + from setuptools import setup +except ImportError: + from distutils.core import setup + +if sys.argv[-1] == 'publish': + os.system('python setup.py sdist upload') + sys.exit() + +packages = [ + 'requests', + 'requests.packages', + 'requests.packages.chardet', + 'requests.packages.urllib3', + 'requests.packages.urllib3.packages', + 'requests.packages.urllib3.contrib', + 'requests.packages.urllib3.util', + 'requests.packages.urllib3.packages.ssl_match_hostname', +] + +requires = [] + +version = '' +with open('requests/__init__.py', 'r') as fd: + version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', + fd.read(), re.MULTILINE).group(1) + +if not version: + raise RuntimeError('Cannot find version information') + +with open('README.rst', 'r', 'utf-8') as f: + readme = f.read() +with open('HISTORY.rst', 'r', 'utf-8') as f: + history = f.read() + +setup( + name='requests', + version=version, + description='Python HTTP for Humans.', + long_description=readme + '\n\n' + history, + author='Kenneth Reitz', + author_email='me@kennethreitz.com', + url='http://python-requests.org', + packages=packages, + package_data={'': ['LICENSE', 'NOTICE'], 'requests': ['*.pem']}, + package_dir={'requests': 'requests'}, + include_package_data=True, + install_requires=requires, + license='Apache 2.0', + zip_safe=False, + classifiers=( + 'Development Status :: 5 - Production/Stable', + 'Intended Audience :: Developers', + 'Natural Language :: English', + 'License :: OSI Approved :: Apache Software License', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + ), + extras_require={ + 'security': ['pyOpenSSL>=0.13', 'ndg-httpsclient', 'pyasn1'], + }, +) |