ports/166142: [PATCH] www/py-requests: update to 0.10.8

Jimmy Olgeni olgeni at FreeBSD.org
Thu Mar 15 14:40:02 UTC 2012


>Number:         166142
>Category:       ports
>Synopsis:       [PATCH] www/py-requests: update to 0.10.8
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 15 14:40:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Jimmy Olgeni
>Release:        FreeBSD 9.0-STABLE amd64
>Organization:
>Environment:
System: FreeBSD backoffice 9.0-STABLE FreeBSD 9.0-STABLE #0 r232857: Mon Mar 12 12:23:46 CET
>Description:
- Update to 0.10.8

I found out that 0.10.1 has some issues with encoding spaces in
URIs and this version seems to fix them.

Port maintainer (duchateau.olivier at gmail.com) is cc'd.

Generated with FreeBSD Port Tools 0.99_4 (mode: update, diff: CVS)
>How-To-Repeat:
>Fix:

--- py27-requests-0.10.8.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/www/py-requests/Makefile,v
retrieving revision 1.14
diff -u -u -r1.14 Makefile
--- Makefile	4 Mar 2012 12:56:24 -0000	1.14
+++ Makefile	15 Mar 2012 14:31:07 -0000
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	requests
-PORTVERSION=	0.10.1
+PORTVERSION=	0.10.8
 CATEGORIES=	www python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
Index: distinfo
===================================================================
RCS file: /home/pcvs/ports/www/py-requests/distinfo,v
retrieving revision 1.14
diff -u -u -r1.14 distinfo
--- distinfo	4 Mar 2012 12:56:24 -0000	1.14
+++ distinfo	15 Mar 2012 14:31:07 -0000
@@ -1,2 +1,2 @@
-SHA256 (requests-0.10.1.tar.gz) = da6031575a30c7b65ea99465183468349b3645e6bf5322e49d53f565b27ed2b5
-SIZE (requests-0.10.1.tar.gz) = 63234
+SHA256 (requests-0.10.8.tar.gz) = bec280d924a8be87b3377ee78a976334a6e7c944a8fe09bbd9447e669b984dae
+SIZE (requests-0.10.8.tar.gz) = 62201
Index: files/patch-requests.egg-info_SOURCES.txt
===================================================================
RCS file: /home/pcvs/ports/www/py-requests/files/patch-requests.egg-info_SOURCES.txt,v
retrieving revision 1.1
diff -u -u -r1.1 patch-requests.egg-info_SOURCES.txt
--- files/patch-requests.egg-info_SOURCES.txt	4 Mar 2012 12:56:25 -0000	1.1
+++ files/patch-requests.egg-info_SOURCES.txt	15 Mar 2012 14:31:07 -0000
@@ -1,14 +1,9 @@
---- 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 @@
+
+$FreeBSD$
+
+--- requests.egg-info/SOURCES.txt.orig
++++ requests.egg-info/SOURCES.txt
+@@ -27,15 +27,3 @@
  requests/packages/oreos/core.py
  requests/packages/oreos/monkeys.py
  requests/packages/oreos/structures.py
Index: files/patch-requests_models.py
===================================================================
RCS file: /home/pcvs/ports/www/py-requests/files/patch-requests_models.py,v
retrieving revision 1.1
diff -u -u -r1.1 patch-requests_models.py
--- files/patch-requests_models.py	4 Mar 2012 12:56:25 -0000	1.1
+++ files/patch-requests_models.py	15 Mar 2012 14:31:07 -0000
@@ -1,8 +1,11 @@
---- 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 @@
+
+$FreeBSD$
+
+--- requests/models.py.orig
++++ requests/models.py
+@@ -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 +19,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)
Index: files/patch-setup.py
===================================================================
RCS file: /home/pcvs/ports/www/py-requests/files/patch-setup.py,v
retrieving revision 1.1
diff -u -u -r1.1 patch-setup.py
--- files/patch-setup.py	4 Mar 2012 12:56:25 -0000	1.1
+++ files/patch-setup.py	15 Mar 2012 14:31:07 -0000
@@ -1,46 +1,38 @@
---- setup.py.orig	2012-01-23 06:48:28.000000000 +0000
-+++ setup.py	2012-02-07 16:11:32.000000000 +0000
-@@ -4,10 +4,9 @@
+
+$FreeBSD$
+
+--- setup.py.orig
++++ setup.py
+@@ -4,7 +4,6 @@
  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
-+    from setuptools import setup, find_packages
- except ImportError:
-     from distutils.core import setup
- 
-@@ -21,12 +20,8 @@
+     from setuptools import setup
+@@ -21,22 +20,13 @@
      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']
  
- 
  setup(
-@@ -38,15 +33,7 @@
-     author='Kenneth Reitz',
-     author_email='me at 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*']),
-     package_data={'': ['LICENSE', 'NOTICE']},
-     include_package_data=True,
-     install_requires=required,
+     name='requests',
--- py27-requests-0.10.8.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list