Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jul 2014 16:47:21 +0000 (UTC)
From:      Frederic Culot <culot@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r362831 - in head/math/py-pandas: . files scripts
Message-ID:  <201407241647.s6OGlLD5039489@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: culot
Date: Thu Jul 24 16:47:21 2014
New Revision: 362831
URL: http://svnweb.freebsd.org/changeset/ports/362831
QAT: https://qat.redports.org/buildarchive/r362831/

Log:
  - Update to 0.14.1
  
  PR:		ports/191857
  Submitted by:	John W. O'Brien <john@saltant.com> (maintainer)

Added:
  head/math/py-pandas/scripts/
  head/math/py-pandas/scripts/print_skipped.py   (contents, props changed)
Deleted:
  head/math/py-pandas/files/print_skipped.py
Modified:
  head/math/py-pandas/Makefile
  head/math/py-pandas/distinfo

Modified: head/math/py-pandas/Makefile
==============================================================================
--- head/math/py-pandas/Makefile	Thu Jul 24 16:40:22 2014	(r362830)
+++ head/math/py-pandas/Makefile	Thu Jul 24 16:47:21 2014	(r362831)
@@ -1,7 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=	pandas
-PORTVERSION=	0.14.0
+PORTVERSION=	0.14.1
 CATEGORIES=	math devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

Modified: head/math/py-pandas/distinfo
==============================================================================
--- head/math/py-pandas/distinfo	Thu Jul 24 16:40:22 2014	(r362830)
+++ head/math/py-pandas/distinfo	Thu Jul 24 16:47:21 2014	(r362831)
@@ -1,2 +1,2 @@
-SHA256 (pandas-0.14.0.tar.gz) = f7997debca756c4dd5ccdf5a010dfe3d1c7dac98ee706b715d994cf7c9d35528
-SIZE (pandas-0.14.0.tar.gz) = 6526846
+SHA256 (pandas-0.14.1.tar.gz) = 8d36f69e63f4c36999d142d60e476a6359c77069ad0ed1e4aa16a7005884dd21
+SIZE (pandas-0.14.1.tar.gz) = 6713272

Added: head/math/py-pandas/scripts/print_skipped.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/py-pandas/scripts/print_skipped.py	Thu Jul 24 16:47:21 2014	(r362831)
@@ -0,0 +1,51 @@
+#!/usr/bin/env python
+
+import sys
+import math
+import xml.etree.ElementTree as et
+
+
+def parse_results(filename):
+    tree = et.parse(filename)
+    root = tree.getroot()
+    skipped = []
+
+    current_class = old_class = ''
+    i = 1
+    assert i - 1 == len(skipped)
+    for el in root.findall('testcase'):
+        cn = el.attrib['classname']
+        for sk in el.findall('skipped'):
+            old_class = current_class
+            current_class = cn
+            name = '{classname}.{name}'.format(classname=current_class,
+                                               name=el.attrib['name'])
+            msg = sk.attrib['message']
+            out = ''
+            if old_class != current_class:
+                ndigits = int(math.log(i, 10) + 1)
+                out += ('-' * (len(name + msg) + 4 + ndigits) + '\n') # 4 for : + space + # + space
+            out += '#{i} {name}: {msg}'.format(i=i, name=name, msg=msg)
+            skipped.append(out)
+            i += 1
+            assert i - 1 == len(skipped)
+    assert i - 1 == len(skipped)
+    assert len(skipped) == int(root.attrib['skip'])
+    return '\n'.join(skipped)
+
+
+def main(args):
+    print('SKIPPED TESTS:')
+    print(parse_results(args.filename))
+    return 0
+
+
+def parse_args():
+    import argparse
+    parser = argparse.ArgumentParser()
+    parser.add_argument('filename', help='XUnit file to parse')
+    return parser.parse_args()
+
+
+if __name__ == '__main__':
+    sys.exit(main(parse_args()))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407241647.s6OGlLD5039489>