aboutsummaryrefslogtreecommitdiffstats
path: root/www/py-requests
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2012-04-10 14:41:20 +0800
committermiwi <miwi@FreeBSD.org>2012-04-10 14:41:20 +0800
commit8986e95e175f12ba63cf7634f1e07273ecf47641 (patch)
tree37bd3ee06dd3619cd8af67cb4285a61e4baf9243 /www/py-requests
parent2a94a1ec477c9cf2bc7d982282af92866008f251 (diff)
downloadfreebsd-ports-gnome-8986e95e175f12ba63cf7634f1e07273ecf47641.tar.gz
freebsd-ports-gnome-8986e95e175f12ba63cf7634f1e07273ecf47641.tar.zst
freebsd-ports-gnome-8986e95e175f12ba63cf7634f1e07273ecf47641.zip
- Update to 0.11.1
PR: 166558 Submitted by: Olivier Duchateau <duchateau.olivier@gmail.com> (maintainer)
Diffstat (limited to 'www/py-requests')
-rw-r--r--www/py-requests/Makefile4
-rw-r--r--www/py-requests/distinfo4
-rw-r--r--www/py-requests/files/patch-MANIFEST.in5
-rw-r--r--www/py-requests/files/patch-requests.egg-info_SOURCES.txt15
-rw-r--r--www/py-requests/files/patch-requests_compat.py14
-rw-r--r--www/py-requests/files/patch-requests_models.py10
-rw-r--r--www/py-requests/files/patch-setup.py33
7 files changed, 33 insertions, 52 deletions
diff --git a/www/py-requests/Makefile b/www/py-requests/Makefile
index fa8313ad50e7..f910a1025845 100644
--- a/www/py-requests/Makefile
+++ b/www/py-requests/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= requests
-PORTVERSION= 0.10.1
+PORTVERSION= 0.11.1
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -23,7 +23,7 @@ RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gevent/__init__.py:${PORTSDIR}/devel/py-gevent
${PYTHON_PKGNAMEPREFIX}urllib3>=1.2:${PORTSDIR}/net/py-urllib3 \
${PYTHON_PKGNAMEPREFIX}chardet>=2.0.1:${PORTSDIR}/textproc/py-chardet
-USE_PYTHON= 2.6+
+USE_PYTHON= 2.6-3.1
USE_PYDISTUTILS= easy_install
REINPLACE_ARGS= -i ""
diff --git a/www/py-requests/distinfo b/www/py-requests/distinfo
index b4b4f1eae83b..e2f72415a78d 100644
--- a/www/py-requests/distinfo
+++ b/www/py-requests/distinfo
@@ -1,2 +1,2 @@
-SHA256 (requests-0.10.1.tar.gz) = da6031575a30c7b65ea99465183468349b3645e6bf5322e49d53f565b27ed2b5
-SIZE (requests-0.10.1.tar.gz) = 63234
+SHA256 (requests-0.11.1.tar.gz) = fd4260541d0e559c78e2b3072bd79f36e0f8ef935bcbbadaa8c98cd8b5a62897
+SIZE (requests-0.11.1.tar.gz) = 63100
diff --git a/www/py-requests/files/patch-MANIFEST.in b/www/py-requests/files/patch-MANIFEST.in
deleted file mode 100644
index 5d0df3ce50d0..000000000000
--- a/www/py-requests/files/patch-MANIFEST.in
+++ /dev/null
@@ -1,5 +0,0 @@
---- MANIFEST.in.orig 2012-01-22 09:30:39.000000000 +0000
-+++ MANIFEST.in 2012-02-07 15:15:00.000000000 +0000
-@@ -1 +1 @@
--include README.rst LICENSE NOTICE HISTORY.rst test_requests.py
-+include README.rst LICENSE NOTICE HISTORY.rst
diff --git a/www/py-requests/files/patch-requests.egg-info_SOURCES.txt b/www/py-requests/files/patch-requests.egg-info_SOURCES.txt
index 33bcf7cdf689..0530843b0aae 100644
--- a/www/py-requests/files/patch-requests.egg-info_SOURCES.txt
+++ b/www/py-requests/files/patch-requests.egg-info_SOURCES.txt
@@ -1,14 +1,6 @@
---- requests.egg-info/SOURCES.txt.orig 2012-01-23 07:22:50.000000000 +0000
-+++ requests.egg-info/SOURCES.txt 2012-02-07 15:14:04.000000000 +0000
-@@ -4,7 +4,6 @@
- NOTICE
- README.rst
- setup.py
--test_requests.py
- requests/__init__.py
- requests/api.py
- requests/async.py
-@@ -28,15 +27,3 @@
+--- requests.egg-info/SOURCES.txt.orig 2012-03-31 05:47:55.000000000 +0200
++++ requests.egg-info/SOURCES.txt 2012-04-01 12:01:46.000000000 +0200
+@@ -27,16 +27,3 @@
requests/packages/oreos/core.py
requests/packages/oreos/monkeys.py
requests/packages/oreos/structures.py
@@ -20,6 +12,7 @@
-requests/packages/urllib3/poolmanager.py
-requests/packages/urllib3/request.py
-requests/packages/urllib3/response.py
+-requests/packages/urllib3/util.py
-requests/packages/urllib3/packages/__init__.py
-requests/packages/urllib3/packages/six.py
-requests/packages/urllib3/packages/mimetools_choose_boundary/__init__.py
diff --git a/www/py-requests/files/patch-requests_compat.py b/www/py-requests/files/patch-requests_compat.py
index e58fe85b0244..df3786c3f940 100644
--- a/www/py-requests/files/patch-requests_compat.py
+++ b/www/py-requests/files/patch-requests_compat.py
@@ -1,14 +1,6 @@
---- requests/compat.py.orig 2012-01-23 06:35:35.000000000 +0000
-+++ requests/compat.py 2012-02-07 15:46:29.000000000 +0000
-@@ -4,7 +4,6 @@
- pythoncompat
- """
-
--
- import sys
-
- # -------
-@@ -66,8 +65,8 @@
+--- requests/compat.py.orig 2012-02-15 09:48:23.000000000 +0100
++++ requests/compat.py 2012-03-19 17:40:30.000000000 +0100
+@@ -66,8 +66,8 @@
# Windows-based system.
is_windows = 'win32' in str(sys.platform).lower()
diff --git a/www/py-requests/files/patch-requests_models.py b/www/py-requests/files/patch-requests_models.py
index 58294a7e997f..e167bb275c96 100644
--- a/www/py-requests/files/patch-requests_models.py
+++ b/www/py-requests/files/patch-requests_models.py
@@ -1,8 +1,8 @@
---- requests/models.py.orig 2011-12-28 09:56:17.000000000 +0100
-+++ requests/models.py 2012-01-12 17:54:01.000000000 +0100
-@@ -19,12 +19,12 @@
+--- requests/models.py.orig 2012-03-09 17:51:20.000000000 +0100
++++ requests/models.py 2012-03-19 17:49:25.000000000 +0100
+@@ -15,12 +15,12 @@
from .status_codes import codes
- from .packages import oreos
+
from .auth import HTTPBasicAuth, HTTPProxyAuth
-from .packages.urllib3.response import HTTPResponse
-from .packages.urllib3.exceptions import MaxRetryError
@@ -16,6 +16,6 @@
+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,
- URLRequired, SSLError)
diff --git a/www/py-requests/files/patch-setup.py b/www/py-requests/files/patch-setup.py
index fa4d46252fe7..0e7ef26faa4f 100644
--- a/www/py-requests/files/patch-setup.py
+++ b/www/py-requests/files/patch-setup.py
@@ -1,10 +1,10 @@
---- setup.py.orig 2012-01-23 06:48:28.000000000 +0000
-+++ setup.py 2012-02-07 16:11:32.000000000 +0000
+--- 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
+-from requests.compat import is_py3, is_py2
try:
- from setuptools import setup
@@ -12,35 +12,36 @@
except ImportError:
from distutils.core import setup
-@@ -21,12 +20,8 @@
+@@ -21,21 +20,8 @@
os.system('python test_requests.py')
sys.exit()
-required = ['certifi>=0.0.7',]
+-packages = [
+- 'requests',
+- 'requests.packages',
+- 'requests.packages.urllib3',
+- 'requests.packages.urllib3.packages',
+- 'requests.packages.urllib3.packages.ssl_match_hostname',
+- 'requests.packages.urllib3.packages.mimetools_choose_boundary',
+-]
-
-if is_py3:
- required.append('chardet2')
-else:
- required.append('chardet>=1.0.0')
+- packages.append('requests.packages.oreos')
+# FreeBSD ports tree, provides only chardet2
-+required = ['certifi>=0.0.7', 'chardet2>=1.0.0']
++required = ['certifi>=0.0.7', 'chardet>=2.0.0']
setup(
-@@ -38,15 +33,7 @@
+@@ -47,7 +33,7 @@
author='Kenneth Reitz',
author_email='me@kennethreitz.com',
url='http://python-requests.org',
-- packages=[
-- 'requests',
-- 'requests.packages',
-- 'requests.packages.urllib3',
-- 'requests.packages.urllib3.packages',
-- 'requests.packages.urllib3.packages.ssl_match_hostname',
-- 'requests.packages.urllib3.packages.mimetools_choose_boundary',
-- 'requests.packages.oreos'
-- ],
-+ packages=find_packages(where='.', exclude=['requests.packages.url*']),
+- packages=packages,
++ packages=find_packages(exclude=['requests.packages.url*']),
package_data={'': ['LICENSE', 'NOTICE']},
include_package_data=True,
install_requires=required,