Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2381)

Unified Diff: recipe_engine/third_party/requests/setup.py

Issue 2164713003: Vendor requests. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/recipes-py@master
Patch Set: Fix deps.pyl Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: recipe_engine/third_party/requests/setup.py
diff --git a/recipe_engine/third_party/requests/setup.py b/recipe_engine/third_party/requests/setup.py
deleted file mode 100755
index 3a3905223c123025a6dc3b4bbfc48f1c110daf80..0000000000000000000000000000000000000000
--- a/recipe_engine/third_party/requests/setup.py
+++ /dev/null
@@ -1,98 +0,0 @@
-#!/usr/bin/env python
-
-import os
-import re
-import sys
-
-from codecs import open
-
-from setuptools import setup
-from setuptools.command.test import test as TestCommand
-
-
-class PyTest(TestCommand):
- user_options = [('pytest-args=', 'a', "Arguments to pass into py.test")]
-
- def initialize_options(self):
- TestCommand.initialize_options(self)
- self.pytest_args = []
-
- def finalize_options(self):
- TestCommand.finalize_options(self)
- self.test_args = []
- self.test_suite = True
-
- def run_tests(self):
- import pytest
-
- errno = pytest.main(self.pytest_args)
- sys.exit(errno)
-
-
-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 = []
-test_requirements = ['pytest>=2.8.0', 'pytest-httpbin==0.0.7', 'pytest-cov']
-
-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.6',
- 'Programming Language :: Python :: 2.7',
- 'Programming Language :: Python :: 3',
- 'Programming Language :: Python :: 3.3',
- 'Programming Language :: Python :: 3.4',
- 'Programming Language :: Python :: 3.5',
- 'Programming Language :: Python :: Implementation :: CPython',
- 'Programming Language :: Python :: Implementation :: PyPy'
- ),
- cmdclass={'test': PyTest},
- tests_require=test_requirements,
- extras_require={
- 'security': ['pyOpenSSL>=0.13', 'ndg-httpsclient', 'pyasn1'],
- 'socks': ['PySocks>=1.5.6'],
- },
-)
« no previous file with comments | « recipe_engine/third_party/requests/requirements-to-freeze.txt ('k') | recipe_engine/third_party/requests/tests/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698