diff options
author | miwi <miwi@FreeBSD.org> | 2012-05-22 17:24:47 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2012-05-22 17:24:47 +0800 |
commit | 50c7a49f2062d1a54365ac75ed23e289753fc928 (patch) | |
tree | 5f397fa4d07fa14e70fcbc2f2d7576fa827530cb /www/py-requests | |
parent | 4209af59da2482a1475f6dafdb4fae230f8ca43f (diff) | |
download | freebsd-ports-gnome-50c7a49f2062d1a54365ac75ed23e289753fc928.tar.gz freebsd-ports-gnome-50c7a49f2062d1a54365ac75ed23e289753fc928.tar.zst freebsd-ports-gnome-50c7a49f2062d1a54365ac75ed23e289753fc928.zip |
- Update 0.12.1
PR: 168136
Submitted by: Olivier Duchateau <duchateau.olivier@gmail.com> (maintainer)
Diffstat (limited to 'www/py-requests')
-rw-r--r-- | www/py-requests/Makefile | 2 | ||||
-rw-r--r-- | www/py-requests/distinfo | 4 | ||||
-rw-r--r-- | www/py-requests/files/patch-requests_models.py | 14 | ||||
-rw-r--r-- | www/py-requests/files/patch-setup.py | 47 |
4 files changed, 34 insertions, 33 deletions
diff --git a/www/py-requests/Makefile b/www/py-requests/Makefile index 992d181fb4d6..11452f80dd1f 100644 --- a/www/py-requests/Makefile +++ b/www/py-requests/Makefile @@ -6,7 +6,7 @@ # PORTNAME= requests -PORTVERSION= 0.11.2 +PORTVERSION= 0.12.1 CATEGORIES= www python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} diff --git a/www/py-requests/distinfo b/www/py-requests/distinfo index a1eecd87e56f..25c8f7c5c072 100644 --- a/www/py-requests/distinfo +++ b/www/py-requests/distinfo @@ -1,2 +1,2 @@ -SHA256 (requests-0.11.2.tar.gz) = 547bf78a774a6018271d6e5c40613ec554642ba4d6cdf45813e7894145293c57 -SIZE (requests-0.11.2.tar.gz) = 71080 +SHA256 (requests-0.12.1.tar.gz) = 9ce56b87180c06728d96ca734055675abf8f5cc3136e0d7712a6260430685589 +SIZE (requests-0.12.1.tar.gz) = 78245 diff --git a/www/py-requests/files/patch-requests_models.py b/www/py-requests/files/patch-requests_models.py index 86b6dab5c14a..b7ea2764c264 100644 --- a/www/py-requests/files/patch-requests_models.py +++ b/www/py-requests/files/patch-requests_models.py @@ -1,21 +1,15 @@ ---- requests/models.py.orig 2012-04-23 04:13:53.000000000 +0200 -+++ requests/models.py 2012-04-23 18:22:55.000000000 +0200 -@@ -15,12 +15,12 @@ - from .status_codes import codes +--- requests/models.py.orig 2012-05-08 07:13:56.000000000 +0200 ++++ requests/models.py 2012-05-19 13:33:03.000000000 +0200 +@@ -17,12 +17,6 @@ from .auth import HTTPBasicAuth, HTTPProxyAuth + from .cookies import cookiejar_from_dict, extract_cookies_to_jar, get_cookie_header -from .packages.urllib3.response import HTTPResponse -from .packages.urllib3.exceptions import MaxRetryError, LocationParseError -from .packages.urllib3.exceptions import SSLError as _SSLError -from .packages.urllib3.exceptions import HTTPError as _HTTPError -from .packages.urllib3 import connectionpool, poolmanager -from .packages.urllib3.filepost import encode_multipart_formdata -+from urllib3.response import HTTPResponse -+from urllib3.exceptions import MaxRetryError, LocationParseError -+from urllib3.exceptions import SSLError as _SSLError -+from urllib3.exceptions import HTTPError as _HTTPError -+from urllib3 import connectionpool, poolmanager -+from urllib3.filepost import encode_multipart_formdata from .defaults import SCHEMAS from .exceptions import ( ConnectionError, HTTPError, RequestException, Timeout, TooManyRedirects, diff --git a/www/py-requests/files/patch-setup.py b/www/py-requests/files/patch-setup.py index 0e7ef26faa4f..447dede4df12 100644 --- a/www/py-requests/files/patch-setup.py +++ b/www/py-requests/files/patch-setup.py @@ -1,22 +1,18 @@ ---- setup.py.orig 2012-02-15 09:48:23.000000000 +0100 -+++ setup.py 2012-04-01 12:00:30.000000000 +0200 -@@ -4,10 +4,9 @@ - import os - import sys - import requests --from requests.compat import is_py3, is_py2 +--- setup.py.orig 2012-05-08 06:56:28.000000000 +0200 ++++ setup.py 2012-05-19 13:42:13.000000000 +0200 +@@ -11,7 +11,7 @@ + from requests.compat import is_py3 try: - from setuptools import setup + from setuptools import setup, find_packages + # hush pyflakes + setup except ImportError: - from distutils.core import setup - -@@ -21,21 +20,8 @@ - os.system('python test_requests.py') +@@ -21,31 +21,8 @@ + os.system('python setup.py sdist upload') sys.exit() --required = ['certifi>=0.0.7',] -packages = [ - 'requests', - 'requests.packages', @@ -26,17 +22,28 @@ - 'requests.packages.urllib3.packages.mimetools_choose_boundary', -] - +-# certifi is a Python package containing a CA certificate bundle for SSL verification. +-# On certain supported platforms (e.g., Red Hat / Debian / FreeBSD), Requests can +-# use the system CA bundle instead; see `requests.utils` for details. +-# If your platform is supported, set `requires` to [] instead: +-requires = ['certifi>=0.0.7'] +- +-# chardet is used to optimally guess the encodings of pages that don't declare one. +-# At this time, chardet is not a required dependency. However, it's sufficiently +-# important that pip/setuptools should install it when it's unavailable. -if is_py3: -- required.append('chardet2') +- chardet_package = 'chardet2' -else: -- required.append('chardet>=1.0.0') -- packages.append('requests.packages.oreos') +- chardet_package = 'chardet>=1.0.0' +- requires.append('oauthlib>=0.1.0,<0.2.0') +- +-requires.append(chardet_package) +# FreeBSD ports tree, provides only chardet2 -+required = ['certifi>=0.0.7', 'chardet>=2.0.0'] - ++requires = ['certifi>=0.0.7', 'chardet>=2.0.0'] - setup( -@@ -47,7 +33,7 @@ + # The async API in requests.async requires the gevent package. + # This is also not a required dependency. +@@ -62,7 +39,7 @@ author='Kenneth Reitz', author_email='me@kennethreitz.com', url='http://python-requests.org', @@ -44,4 +51,4 @@ + packages=find_packages(exclude=['requests.packages.url*']), package_data={'': ['LICENSE', 'NOTICE']}, include_package_data=True, - install_requires=required, + install_requires=requires, |