[Midnightbsd-cvs] mports [23180] trunk/www: add py requests
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Fri Apr 13 15:15:29 EDT 2018
Revision: 23180
http://svnweb.midnightbsd.org/mports/?rev=23180
Author: laffer1
Date: 2018-04-13 15:15:28 -0400 (Fri, 13 Apr 2018)
Log Message:
-----------
add py requests
Modified Paths:
--------------
trunk/www/Makefile
Added Paths:
-----------
trunk/www/py-requests/
trunk/www/py-requests/Makefile
trunk/www/py-requests/distinfo
trunk/www/py-requests/files/
trunk/www/py-requests/files/patch-setup.py
trunk/www/py-requests/pkg-descr
Modified: trunk/www/Makefile
===================================================================
--- trunk/www/Makefile 2018-04-13 19:12:50 UTC (rev 23179)
+++ trunk/www/Makefile 2018-04-13 19:15:28 UTC (rev 23180)
@@ -107,6 +107,7 @@
SUBDIR += privoxy
SUBDIR += py-html5lib
SUBDIR += py-httplib2
+SUBDIR += py-requests
SUBDIR += qt4-webkit
SUBDIR += qt5-webkit
SUBDIR += qt5-webchannel
Added: trunk/www/py-requests/Makefile
===================================================================
--- trunk/www/py-requests/Makefile (rev 0)
+++ trunk/www/py-requests/Makefile 2018-04-13 19:15:28 UTC (rev 23180)
@@ -0,0 +1,37 @@
+# $MidnightBSD$
+
+PORTNAME= requests
+PORTVERSION= 2.18.4
+CATEGORIES= www python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= HTTP library written in Python for human beings
+
+LICENSE= apache2
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}chardet>=3.0.2:textproc/py-chardet \
+ ${PYTHON_PKGNAMEPREFIX}idna>=2.5:dns/py-idna \
+ ${PYTHON_PKGNAMEPREFIX}urllib3>=1.21.1:net/py-urllib3 \
+ ${PYTHON_PKGNAMEPREFIX}certifi>=2017.4.17:security/py-certifi
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=2.8.0:devel/py-pytest \
+ ${PYTHON_PKGNAMEPREFIX}pytest-mock>0:devel/py-pytest-mock \
+ ${PYTHON_PKGNAMEPREFIX}pytest-xdist>0:devel/py-pytest-xdist
+
+# Actually 2.6-2.7,3.3+
+USES= python
+USE_PYTHON= autoplist concurrent distutils
+
+CONFLICTS_INSTALL= py*-requests1-*
+
+NO_ARCH= yes
+
+# Automated tests failinng due to httpbin issue
+# https://github.com/kennethreitz/httpbin/issues/403
+
+do-test:
+ @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
+
+.include <bsd.port.mk>
Property changes on: trunk/www/py-requests/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/www/py-requests/distinfo
===================================================================
--- trunk/www/py-requests/distinfo (rev 0)
+++ trunk/www/py-requests/distinfo 2018-04-13 19:15:28 UTC (rev 23180)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1519435351
+SHA256 (requests-2.18.4.tar.gz) = 9c443e7324ba5b85070c4a818ade28bfabedf16ea10206da1132edaa6dda237e
+SIZE (requests-2.18.4.tar.gz) = 126224
Property changes on: trunk/www/py-requests/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/www/py-requests/files/patch-setup.py
===================================================================
--- trunk/www/py-requests/files/patch-setup.py (rev 0)
+++ trunk/www/py-requests/files/patch-setup.py 2018-04-13 19:15:28 UTC (rev 23180)
@@ -0,0 +1,13 @@
+# pytest-cov and its dependencies are not compulsory
+
+--- setup.py.orig 2018-02-24 01:49:05 UTC
++++ setup.py
+@@ -48,7 +48,7 @@ requires = [
+ 'certifi>=2017.4.17'
+
+ ]
+-test_requirements = ['pytest-httpbin==0.0.7', 'pytest-cov', 'pytest-mock', 'pytest-xdist', 'PySocks>=1.5.6, !=1.5.7', 'pytest>=2.8.0']
++test_requirements = ['pytest-httpbin==0.0.7', 'pytest-mock', 'pytest-xdist', 'PySocks>=1.5.6, !=1.5.7', 'pytest>=2.8.0']
+
+ about = {}
+ with open(os.path.join(here, 'requests', '__version__.py'), 'r', 'utf-8') as f:
Property changes on: trunk/www/py-requests/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/www/py-requests/pkg-descr
===================================================================
--- trunk/www/py-requests/pkg-descr (rev 0)
+++ trunk/www/py-requests/pkg-descr 2018-04-13 19:15:28 UTC (rev 23180)
@@ -0,0 +1,19 @@
+Requests is an ISC Licensed HTTP library, written in Python, for human beings.
+
+Features:
+
+ * International Domains and URLs
+ * Keep-Alive & Connection Pooling
+ * Sessions with Cookie Persistence
+ * Browser-style SSL Verification
+ * Basic/Digest Authentication
+ * Elegant Key/Value Cookies
+ * Automatic Decompression
+ * Unicode Response Bodies
+ * Multipart File Uploads
+ * Connection Timeouts
+ * .netrc support
+ * Python 2.6-3.4
+ * Thread-safe
+
+WWW: http://python-requests.org
Property changes on: trunk/www/py-requests/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