[147995] trunk/dports/python

raimue at macports.org raimue at macports.org
Sat Apr 23 05:48:24 PDT 2016


Revision: 147995
          https://trac.macports.org/changeset/147995
Author:   raimue at macports.org
Date:     2016-04-23 05:48:24 -0700 (Sat, 23 Apr 2016)
Log Message:
-----------
python/py-requests-unixsocket:
New port, version 0.1.5, based on py-requests

Modified Paths:
--------------
    trunk/dports/python/py-requests-unixsocket/Portfile

Added Paths:
-----------
    trunk/dports/python/py-requests-unixsocket/
    trunk/dports/python/py-requests-unixsocket/files/
    trunk/dports/python/py-requests-unixsocket/files/patch-requirements.diff

Modified: trunk/dports/python/py-requests-unixsocket/Portfile
===================================================================
--- trunk/dports/python/py-requests/Portfile	2016-04-11 10:15:20 UTC (rev 147637)
+++ trunk/dports/python/py-requests-unixsocket/Portfile	2016-04-23 12:48:24 UTC (rev 147995)
@@ -2,10 +2,11 @@
 # $Id$
 
 PortSystem          1.0
+PortGroup           github 1.0
 PortGroup           python 1.0
 
-name                py-requests
-version             2.9.1
+github.setup        msabramo requests-unixsocket 0.1.5
+name                py-requests-unixsocket
 categories-append   devel
 platforms           darwin
 license             Apache-2
@@ -13,31 +14,26 @@
 
 python.versions     26 27 34 35
 
-maintainers         stromnov openmaintainer
+maintainers         nomaintainer
 
-description         Python HTTP for Humans.
+description         HTTP via a UNIX domain socket
 
-long_description    Most existing Python modules for dealing HTTP \
-                    requests are insane. I have to look up everything \
-                    that I want to do. Most of my worst Python \
-                    experiences are a result of the various built-in \
-                    HTTP libraries (yes, even worse than Logging). But \
-                    this one's different. This one's going to be \
-                    awesome. And simple. Really simple.
+long_description    This module uses py-requests to talk HTTP \
+                    via a UNIX domain socket.
 
-homepage            http://python-requests.org/
-master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
+checksums           rmd160  b93fe67f600cf4ab628240c6bea87a215b220988 \
+                    sha256  0d017aa6bfa00b15b96a7aa8f9b719c4f146b5ae621d405518ebe67af22aff21
 
-distname            ${python.rootname}-${version}
-
-checksums           rmd160  d1be9cc088b10dea06cee4b26030f795df7d230b \
-                    sha256  c577815dd00f1394203fc44eb979724b098f88264a9ef898ee45b8e5e9cf587f
-
 if {${name} ne ${subport}} {
     depends_build-append \
-                        port:py${python.version}-setuptools
+                        port:py${python.version}-setuptools \
+                        port:py${python.version}-pbr
+    depends_lib-append  port:py${python.version}-requests
 
+    patchfiles          patch-requirements.diff
+
+    build.env-append    PBR_VERSION="${version}"
+    destroot.env-append PBR_VERSION="${version}"
+
     livecheck.type      none
-} else {
-    livecheck.type      pypi
 }

Added: trunk/dports/python/py-requests-unixsocket/files/patch-requirements.diff
===================================================================
--- trunk/dports/python/py-requests-unixsocket/files/patch-requirements.diff	                        (rev 0)
+++ trunk/dports/python/py-requests-unixsocket/files/patch-requirements.diff	2016-04-23 12:48:24 UTC (rev 147995)
@@ -0,0 +1,6 @@
+urllib3 is part of port py-requests, not a separate module installation
+--- requirements.txt.orig	2016-04-13 01:54:44.000000000 +0200
++++ requirements.txt	2016-04-13 01:54:52.000000000 +0200
+@@ -1,2 +1 @@
+ requests>=1.1
+-urllib3>=1.8
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160423/c4faf5f0/attachment-0001.html>


More information about the macports-changes mailing list