[104655] trunk/dports/python

stromnov at macports.org stromnov at macports.org
Sat Mar 30 15:00:07 PDT 2013


Revision: 104655
          https://trac.macports.org/changeset/104655
Author:   stromnov at macports.org
Date:     2013-03-30 15:00:07 -0700 (Sat, 30 Mar 2013)
Log Message:
-----------
py-pytest: new port

Added Paths:
-----------
    trunk/dports/python/py-pytest/
    trunk/dports/python/py-pytest/Portfile
    trunk/dports/python/py-pytest/files/
    trunk/dports/python/py-pytest/files/patch-setup.py.diff

Added: trunk/dports/python/py-pytest/Portfile
===================================================================
--- trunk/dports/python/py-pytest/Portfile	                        (rev 0)
+++ trunk/dports/python/py-pytest/Portfile	2013-03-30 22:00:07 UTC (rev 104655)
@@ -0,0 +1,44 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           python 1.0
+
+name                py-pytest
+version             2.3.4
+revision            0
+categories-append   devel
+platforms           darwin
+license             MIT
+supported_archs     noarch
+
+python.versions     25 26 27 32 33
+
+maintainers         stromnov openmaintainer
+
+description         py.test: simple powerful testing with Python
+
+long_description    The py.test` testing tool makes it easy to write small \
+                    tests, yet scales to support complex functional testing.
+
+homepage            http://pytest.org
+master_sites        http://pypi.python.org/packages/source/p/pytest/
+
+checksums           rmd160  ed8620ab4bfe8c3b85413d7da2e7651a89ae04f2 \
+                    sha256  5616f744a311c5f5fbb44943aaa41c32df70ba132159a0a9fb6c999060d7645c
+
+distname            pytest-${version}
+
+use_zip             yes
+
+if {$subport != $name} {
+    depends_build       port:py${python.version}-distribute
+
+    patchfiles          patch-setup.py.diff
+
+    livecheck.type      none
+} else {
+    livecheck.type      regex
+    livecheck.url       ${master_sites}
+    livecheck.regex     "pytest-(\\d+(?:\\.\\d+)*)${extract.suffix}"
+}


Property changes on: trunk/dports/python/py-pytest/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/python/py-pytest/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py-pytest/files/patch-setup.py.diff	                        (rev 0)
+++ trunk/dports/python/py-pytest/files/patch-setup.py.diff	2013-03-30 22:00:07 UTC (rev 104655)
@@ -0,0 +1,20 @@
+--- setup.py.orig	2013-03-31 01:50:05.000000000 +0400
++++ setup.py	2013-03-31 01:52:15.000000000 +0400
+@@ -77,16 +77,7 @@
+     )
+ 
+ def cmdline_entrypoints(versioninfo, platform, basename):
+-    target = 'pytest:main'
+-    if platform.startswith('java'):
+-        points = {'py.test-jython': target}
+-    else:
+-        if basename.startswith("pypy"):
+-            points = {'py.test-%s' % basename: target}
+-        else: # cpython
+-            points = {'py.test-%s.%s' % versioninfo[:2] : target,}
+-        points['py.test'] = target
+-    return points
++    return {'py.test': 'pytest:main'}
+ 
+ def make_entry_points():
+     basename = os.path.basename(sys.executable)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130330/5d19a9a0/attachment.html>


More information about the macports-changes mailing list