[Midnightbsd-cvs] mports [23181] trunk/net: add py urllib3

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Fri Apr 13 15:17:04 EDT 2018


Revision: 23181
          http://svnweb.midnightbsd.org/mports/?rev=23181
Author:   laffer1
Date:     2018-04-13 15:17:03 -0400 (Fri, 13 Apr 2018)
Log Message:
-----------
add py urllib3

Modified Paths:
--------------
    trunk/net/Makefile

Added Paths:
-----------
    trunk/net/py-urllib3/
    trunk/net/py-urllib3/Makefile
    trunk/net/py-urllib3/distinfo
    trunk/net/py-urllib3/files/
    trunk/net/py-urllib3/files/patch-setup.py
    trunk/net/py-urllib3/files/pkg-message.in
    trunk/net/py-urllib3/pkg-descr

Modified: trunk/net/Makefile
===================================================================
--- trunk/net/Makefile	2018-04-13 19:15:28 UTC (rev 23180)
+++ trunk/net/Makefile	2018-04-13 19:17:03 UTC (rev 23181)
@@ -113,6 +113,7 @@
 SUBDIR += py-s3transfer
 SUBDIR += py-twitter
 SUBDIR += py-twitter-tools
+SUBDIR += py-urllib3
 SUBDIR += qt4-network
 SUBDIR += qt5-network
 SUBDIR += rabbitmq

Added: trunk/net/py-urllib3/Makefile
===================================================================
--- trunk/net/py-urllib3/Makefile	                        (rev 0)
+++ trunk/net/py-urllib3/Makefile	2018-04-13 19:17:03 UTC (rev 23181)
@@ -0,0 +1,36 @@
+# $MidnightBSD$
+
+PORTNAME=	urllib3
+PORTVERSION=	1.22
+CATEGORIES=	net python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	HTTP library with thread-safe connection pooling, file post, and more
+
+LICENSE=	mit
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cryptography>=1.3.4:security/py-cryptography \
+		${PYTHON_PKGNAMEPREFIX}idna>=2.0:dns/py-idna \
+		${PY_IPADDRESS} \
+		${PYTHON_PKGNAMEPREFIX}openssl>=16.0:security/py-openssl \
+		${PYTHON_PKGNAMEPREFIX}pysocks>=1.5.7:net/py-pysocks
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock \
+		${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose \
+		${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest
+#TEST_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tornado>=0:www/py-tornado
+
+USES=		python
+USE_PYTHON=	autoplist concurrent distutils
+NO_ARCH=	yes
+SUB_FILES=	pkg-message
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 3400
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}certifi>=0:security/py-certifi
+.endif
+
+.include <bsd.port.post.mk>


Property changes on: trunk/net/py-urllib3/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/net/py-urllib3/distinfo
===================================================================
--- trunk/net/py-urllib3/distinfo	                        (rev 0)
+++ trunk/net/py-urllib3/distinfo	2018-04-13 19:17:03 UTC (rev 23181)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1500642203
+SHA256 (urllib3-1.22.tar.gz) = cc44da8e1145637334317feebd728bd869a35285b93cbb4cca2577da7e62db4f
+SIZE (urllib3-1.22.tar.gz) = 226083


Property changes on: trunk/net/py-urllib3/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/net/py-urllib3/files/patch-setup.py
===================================================================
--- trunk/net/py-urllib3/files/patch-setup.py	                        (rev 0)
+++ trunk/net/py-urllib3/files/patch-setup.py	2018-04-13 19:17:03 UTC (rev 23181)
@@ -0,0 +1,11 @@
+--- setup.py.orig	2016-09-06 14:39:59 UTC
++++ setup.py
+@@ -61,7 +61,7 @@ setup(name='urllib3',
+               'certifi',
+           ],
+           'socks': [
+-              'PySocks>=1.5.6,<2.0,!=1.5.7',
++              'PySocks>=1.5.6',
+           ]
+       },
+       )


Property changes on: trunk/net/py-urllib3/files/patch-setup.py
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/net/py-urllib3/files/pkg-message.in
===================================================================
--- trunk/net/py-urllib3/files/pkg-message.in	                        (rev 0)
+++ trunk/net/py-urllib3/files/pkg-message.in	2018-04-13 19:17:03 UTC (rev 23181)
@@ -0,0 +1 @@
+Be careful, support of IPv6 is broken with PySocks 1.5.7.


Property changes on: trunk/net/py-urllib3/files/pkg-message.in
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/net/py-urllib3/pkg-descr
===================================================================
--- trunk/net/py-urllib3/pkg-descr	                        (rev 0)
+++ trunk/net/py-urllib3/pkg-descr	2018-04-13 19:17:03 UTC (rev 23181)
@@ -0,0 +1,13 @@
+urllib3 is a powerful, sanity-friendly HTTP client for Python. Much of the
+Python ecosystem already uses urllib3 and you should too. urllib3 brings many
+critical features that are missing from the Python standard libraries:
+- Thread safety.
+- Connection pooling.
+- Client-side SSL/TLS verification.
+- File uploads with multipart encoding.
+- Helpers for retrying requests and dealing with HTTP redirects.
+- Support for gzip and deflate encoding.
+- Proxy support for HTTP and SOCKS.
+- 100% test coverage.
+
+WWW: https://pypi.python.org/pypi/urllib3


Property changes on: trunk/net/py-urllib3/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list