summaryrefslogtreecommitdiff
path: root/math/py-pandas
diff options
context:
space:
mode:
authorWen Heping <wen@FreeBSD.org>2017-12-27 12:29:16 +0000
committerWen Heping <wen@FreeBSD.org>2017-12-27 12:29:16 +0000
commit44f4ca605b7906e76aff10e3ab5769b4153a8019 (patch)
treec0480c71088f03bf173108e0795301dc96f401ea /math/py-pandas
parent- abcde requires the eyeD3 command, not the eyed3 module (diff)
- Upgrade to 0.21.1
- Remove stale testing bits PR: 224598 Submitted by: john@saltant.com(maintainer)
Diffstat (limited to 'math/py-pandas')
-rw-r--r--math/py-pandas/Makefile42
-rw-r--r--math/py-pandas/distinfo6
-rw-r--r--math/py-pandas/scripts/print_skipped.py52
3 files changed, 8 insertions, 92 deletions
diff --git a/math/py-pandas/Makefile b/math/py-pandas/Makefile
index 7a992cf991b1..e31243837b29 100644
--- a/math/py-pandas/Makefile
+++ b/math/py-pandas/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= pandas
-DISTVERSION= 0.21.0
+DISTVERSION= 0.21.1
CATEGORIES= math devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -16,25 +16,6 @@ RUN_DEPENDS:= ${BUILD_DEPENDS} \
${PYTHON_PKGNAMEPREFIX}dateutil>=1.5:devel/py-dateutil@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${FLAVOR}
-TEST_DEPENDS:= ${RUN_DEPENDS} \
- nosetests-${PYTHON_VER}:devel/py-nose \
- ${PYTHON_PKGNAMEPREFIX}sqlalchemy10>0:databases/py-sqlalchemy10@${FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}boto>0:devel/py-boto@${FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml@${FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}tables>=3.0.0:devel/py-tables@${FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}bottleneck>0:math/py-bottleneck@${FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}numexpr>=2.4.6:math/py-numexpr@${FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}openpyxl>=2.2.0:textproc/py-openpyxl@${FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}xlrd>0:textproc/py-xlrd@${FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}xlwt>0:textproc/py-xlwt@${FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}XlsxWriter>0:textproc/py-xlsxwriter@${FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}beautifulsoup>0:www/py-beautifulsoup@${FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}html5lib>0:www/py-html5lib@${FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${FLAVOR}
-# Note: we cannot include math/py-statsmodels in TEST_DEPENDS because it
-# depends upon us for BUILD and RUN.
OPTIONS_DEFINE= MPL SCIPY
OPTIONS_GROUP= ACCEL STORAGE HTML EXCEL
@@ -46,6 +27,9 @@ OPTIONS_GROUP_EXCEL= XLRD XLWT OPENPYXL XLSX
OPTIONS_RADIO_SQL= ALCHEMY10 ALCHEMY11
OPTIONS_DEFAULT= BTLNCK NUMEXPR
+# Note: we cannot include math/py-statsmodels in *_DEPENDS because it
+# depends upon us for BUILD and RUN.
+
MPL_DESC= Support graphical plotting output via math/py-matplotlib
SCIPY_DESC= Support various statistical functions via science/py-scipy
BTLNCK_DESC= Accelerate certain NaN evals via math/py-bottleneck
@@ -95,26 +79,10 @@ SUB_FILES= pkg-message
# Official support for 2.7, 3.5, and 3.6
USES= python
-USE_PYTHON= autoplist distutils cython
-
-# Uncomment the following line to enable regression-test
-# on a headless (X11-less) host (eg: RedPorts)
-#USES+= display:regression-test
-
-XUNITFILE= ${WRKDIR}/nosetests.xml
-NOSE_ENV= http_proxy=${HTTP_PROXY}
-NOSE_ARGS= ${PORTNAME} --exe --with-xunit --xunit-file=${XUNITFILE}
+USE_PYTHON= autoplist distutils
post-install:
@${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} \
-name '*.so' -exec ${STRIP_CMD} {} +
-regression-test: build
- @(cd ${WRKSRC} && \
- ${PYTHON_CMD} ${PYSETUP} build_ext --inplace && \
- ${PYTHON_CMD} -c 'import pandas.util.print_versions as pv; pv.show_versions()' && \
- ( ${SETENV} ${NOSE_ENV} nosetests-${PYTHON_VER} ${NOSE_ARGS} || ${TRUE} ) && \
- ${PYTHON_CMD} ${SCRIPTDIR}/print_skipped.py ${XUNITFILE} \
- )
-
.include <bsd.port.mk>
diff --git a/math/py-pandas/distinfo b/math/py-pandas/distinfo
index 7c03b8679ab7..d689ab8c01d1 100644
--- a/math/py-pandas/distinfo
+++ b/math/py-pandas/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1509894581
-SHA256 (pandas-0.21.0.tar.gz) = 5cd5cb30e72eeaf202f0e5e180780b897570e889d2db328c689a5a263405c559
-SIZE (pandas-0.21.0.tar.gz) = 11266258
+TIMESTAMP = 1514141635
+SHA256 (pandas-0.21.1.tar.gz) = c5f5cba88bf0659554c41c909e1f78139f6fce8fa9315a29a23692b38ff9788a
+SIZE (pandas-0.21.1.tar.gz) = 11288319
diff --git a/math/py-pandas/scripts/print_skipped.py b/math/py-pandas/scripts/print_skipped.py
deleted file mode 100644
index dd2180f6eeb1..000000000000
--- a/math/py-pandas/scripts/print_skipped.py
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/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:')
- for fn in args.filename:
- print(parse_results(fn))
- return 0
-
-
-def parse_args():
- import argparse
- parser = argparse.ArgumentParser()
- parser.add_argument('filename', nargs='+', help='XUnit file to parse')
- return parser.parse_args()
-
-
-if __name__ == '__main__':
- sys.exit(main(parse_args()))