View | Details | Raw Unified | Return to bug 191857 | Differences between
and this patch

Collapse All | Expand All

(-)math/py-pandas/Makefile (-1 / +1 lines)
Lines 1-7 Link Here
1
# $FreeBSD$
1
# $FreeBSD$
2
2
3
PORTNAME=	pandas
3
PORTNAME=	pandas
4
PORTVERSION=	0.14.0
4
PORTVERSION=	0.14.1
5
CATEGORIES=	math devel python
5
CATEGORIES=	math devel python
6
MASTER_SITES=	CHEESESHOP
6
MASTER_SITES=	CHEESESHOP
7
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
7
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
(-)math/py-pandas/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (pandas-0.14.0.tar.gz) = f7997debca756c4dd5ccdf5a010dfe3d1c7dac98ee706b715d994cf7c9d35528
1
SHA256 (pandas-0.14.1.tar.gz) = 8d36f69e63f4c36999d142d60e476a6359c77069ad0ed1e4aa16a7005884dd21
2
SIZE (pandas-0.14.0.tar.gz) = 6526846
2
SIZE (pandas-0.14.1.tar.gz) = 6713272
(-)math/py-pandas/files/patch-setup.py (+22 lines)
Line 0 Link Here
1
--- ./setup.py.orig	2014-07-14 13:28:02.000000000 -0400
2
+++ ./setup.py	2014-07-14 13:39:30.000000000 -0400
3
@@ -545,6 +545,19 @@
4
 if _have_setuptools:
5
     setuptools_kwargs["test_suite"] = "nose.collector"
6
 
7
+# FreeBSD math/py-pandas
8
+# Use a blunt weapon to work around
9
+# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191865
10
+# Perform no dependency checking in setuptools, allowing ports machinery
11
+# to satisfy all dependencies according to the maintainer.
12
+def _zapdict_verbose(d, k):
13
+    print('==> In {}, zapping {} = {}'.format(__file__, k, d[k]))
14
+    del d[k]
15
+
16
+_zapdict_verbose(setuptools_kwargs, 'setup_requires')
17
+_zapdict_verbose(setuptools_kwargs, 'install_requires')
18
+
19
+
20
 # The build cache system does string matching below this point.
21
 # if you change something, be careful.
22
 
(-)math/py-pandas/files/print_skipped.py (-51 lines)
Lines 1-51 Link Here
1
#!/usr/bin/env python
2
3
import sys
4
import math
5
import xml.etree.ElementTree as et
6
7
8
def parse_results(filename):
9
    tree = et.parse(filename)
10
    root = tree.getroot()
11
    skipped = []
12
13
    current_class = old_class = ''
14
    i = 1
15
    assert i - 1 == len(skipped)
16
    for el in root.findall('testcase'):
17
        cn = el.attrib['classname']
18
        for sk in el.findall('skipped'):
19
            old_class = current_class
20
            current_class = cn
21
            name = '{classname}.{name}'.format(classname=current_class,
22
                                               name=el.attrib['name'])
23
            msg = sk.attrib['message']
24
            out = ''
25
            if old_class != current_class:
26
                ndigits = int(math.log(i, 10) + 1)
27
                out += ('-' * (len(name + msg) + 4 + ndigits) + '\n') # 4 for : + space + # + space
28
            out += '#{i} {name}: {msg}'.format(i=i, name=name, msg=msg)
29
            skipped.append(out)
30
            i += 1
31
            assert i - 1 == len(skipped)
32
    assert i - 1 == len(skipped)
33
    assert len(skipped) == int(root.attrib['skip'])
34
    return '\n'.join(skipped)
35
36
37
def main(args):
38
    print('SKIPPED TESTS:')
39
    print(parse_results(args.filename))
40
    return 0
41
42
43
def parse_args():
44
    import argparse
45
    parser = argparse.ArgumentParser()
46
    parser.add_argument('filename', help='XUnit file to parse')
47
    return parser.parse_args()
48
49
50
if __name__ == '__main__':
51
    sys.exit(main(parse_args()))
(-)math/py-pandas/scripts/print_skipped.py (+51 lines)
Line 0 Link Here
1
#!/usr/bin/env python
2
3
import sys
4
import math
5
import xml.etree.ElementTree as et
6
7
8
def parse_results(filename):
9
    tree = et.parse(filename)
10
    root = tree.getroot()
11
    skipped = []
12
13
    current_class = old_class = ''
14
    i = 1
15
    assert i - 1 == len(skipped)
16
    for el in root.findall('testcase'):
17
        cn = el.attrib['classname']
18
        for sk in el.findall('skipped'):
19
            old_class = current_class
20
            current_class = cn
21
            name = '{classname}.{name}'.format(classname=current_class,
22
                                               name=el.attrib['name'])
23
            msg = sk.attrib['message']
24
            out = ''
25
            if old_class != current_class:
26
                ndigits = int(math.log(i, 10) + 1)
27
                out += ('-' * (len(name + msg) + 4 + ndigits) + '\n') # 4 for : + space + # + space
28
            out += '#{i} {name}: {msg}'.format(i=i, name=name, msg=msg)
29
            skipped.append(out)
30
            i += 1
31
            assert i - 1 == len(skipped)
32
    assert i - 1 == len(skipped)
33
    assert len(skipped) == int(root.attrib['skip'])
34
    return '\n'.join(skipped)
35
36
37
def main(args):
38
    print('SKIPPED TESTS:')
39
    print(parse_results(args.filename))
40
    return 0
41
42
43
def parse_args():
44
    import argparse
45
    parser = argparse.ArgumentParser()
46
    parser.add_argument('filename', help='XUnit file to parse')
47
    return parser.parse_args()
48
49
50
if __name__ == '__main__':
51
    sys.exit(main(parse_args()))

Return to bug 191857