mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
d91eb811d5
- Introduce new ports for the sqlalchemy 0.9 and 1.0 release branches. - Deprecate the ports for the 0.6 and 0.7 release branches, as these have been declared EoL and are no longer supported by upstream. - Update to the latest available version in each branch. In detail: Port Version Maintainer ---------------------------------------------- py-sqlalchemy06 0.6.9 nivit@FreeBSD.org (Deprecate 2016-08-20) [1] py-sqlalchemy07 0.7.10 nivit@FreeBSD.org (renamed py-sqlalchemy, Deprecate 2016-08-20) [1] py-sqlalchemy08 0.8.7 nivit@FreeBSD.org (renamed py-sqlalchemy-devel) [1] py-sqlalchemy09 0.9.10 m.tsatsenko@gmail.com (new, repocopy from py-sqlalchemy-devel) [2] py-sqlalchemy10 1.0.13 m.tsatsenko@gmail.com (new, repocopy from py-sqlalchemy-devel) [2] - Use options-helpers and option dependent make targets. - Use autoplist for documents as well as python code - Add all the docments to the packages: previously an arbitrary subset was added in a way that excluded CSS, images and other HTML assets. - Use TEST_DEPENDS and add a TEST_TARGET instead of having a 'TEST' option. - Use py-pytest for 0.9.x and later, rather than py-nose. - Add CONFLICTS_INSTALL between all of the py-sqlalchemyXY ports. PR: 191442 Submitted by: robak Reviewed by: robak Reviewed by: pi Approved by: nivit (maintainer timeout, ~300days) [1] Approved by: m.tsatsenko@gmail.com (maintainer) [2] Sponsored by: https://reviews.freebsd.org/D908
111 lines
4.6 KiB
Makefile
111 lines
4.6 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= pandas
|
|
PORTVERSION= 0.18.1
|
|
CATEGORIES= math devel python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= john@saltant.com
|
|
COMMENT= Flexible, high-performance data analysis in Python
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
BUILD_DEPENDS= ${PYNUMPY}
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS} \
|
|
${PYTHON_PKGNAMEPREFIX}dateutil>=1.5:devel/py-dateutil \
|
|
${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz \
|
|
${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3
|
|
TEST_DEPENDS:= ${RUN_DEPENDS} \
|
|
nosetests-${PYTHON_VER}:devel/py-nose \
|
|
cython:lang/cython \
|
|
${PYTHON_PKGNAMEPREFIX}sqlalchemy08>0:databases/py-sqlalchemy08 \
|
|
${PYTHON_PKGNAMEPREFIX}boto>0:devel/py-boto \
|
|
${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml \
|
|
${PYTHON_PKGNAMEPREFIX}tables>=3.0.0:devel/py-tables \
|
|
${PYTHON_PKGNAMEPREFIX}bottleneck>0:math/py-bottleneck \
|
|
${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib \
|
|
${PYTHON_PKGNAMEPREFIX}numexpr>=2.1.0:math/py-numexpr \
|
|
${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy \
|
|
${PYTHON_PKGNAMEPREFIX}openpyxl>=2.2.0:textproc/py-openpyxl \
|
|
${PYTHON_PKGNAMEPREFIX}xlrd>0:textproc/py-xlrd \
|
|
${PYTHON_PKGNAMEPREFIX}xlwt>0:textproc/py-xlwt \
|
|
${PYTHON_PKGNAMEPREFIX}XlsxWriter>0:textproc/py-xlsxwriter \
|
|
${PYTHON_PKGNAMEPREFIX}beautifulsoup>0:www/py-beautifulsoup \
|
|
${PYTHON_PKGNAMEPREFIX}html5lib>0:www/py-html5lib \
|
|
${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2
|
|
# Note: we cannot include math/py-statsmodels in TEST_DEPENDS because it
|
|
# depends upon us for BUILD and RUN.
|
|
|
|
OPTIONS_DEFINE= MPL OPENPYXL SCIPY
|
|
OPTIONS_GROUP= ACCEL STORAGE HTML EXCEL
|
|
OPTIONS_GROUP_ACCEL= BTLNCK NUMEXPR
|
|
OPTIONS_GROUP_STORAGE= BOTO TABLES SQL
|
|
OPTIONS_GROUP_HTML= LXML HTML5LIB JINJA2
|
|
OPTIONS_GROUP_EXCEL= XLRD XLWT OPENPYXL XLSX
|
|
OPTIONS_DEFAULT= BTLNCK NUMEXPR
|
|
|
|
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
|
|
NUMEXPR_DESC= Accelerate certain numerical ops via math/py-numexpr
|
|
BOTO_DESC= Support Amazon S3 storage via devel/py-boto
|
|
TABLES_DESC= Support HDF5-based storage via devel/py-tables
|
|
SQL_DESC= Support SQL databases via databases/py-sqlalchemy08
|
|
LXML_DESC= Parse HTML with devel/py-lxml and www/py-beautifulsoup
|
|
JINJA2_DESC= Support conditional HTML formatting with devel/py-Jinja2
|
|
HTML5LIB_DESC= Parse HTML with www/py-html5lib and www/py-beautifulsoup
|
|
OPENPYXL_DESC= Read/write MS Excel 2007+ with textproc/py-openpyxl
|
|
XLRD_DESC= Read MS Excel with textproc/py-xlrd
|
|
XLWT_DESC= Write MS Excel with textproc/py-xlwt
|
|
XLSX_DESC= Write MS Excel with textproc/py-xlsxwriter
|
|
ACCEL_DESC= Computation Acceleration Add-ons
|
|
STORAGE_DESC= Data Storage Add-ons
|
|
HTML_DESC= HTML Parsing/Generation Add-ons
|
|
EXCEL_DESC= MS Excel I/O Add-ons
|
|
|
|
MPL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib
|
|
SCIPY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy
|
|
BTLNCK_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}bottleneck>0:math/py-bottleneck
|
|
NUMEXPR_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numexpr>=2.1.0:math/py-numexpr
|
|
BOTO_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}boto>0:devel/py-boto
|
|
TABLES_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tables>=3.0.0:devel/py-tables
|
|
SQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlalchemy08>0:databases/py-sqlalchemy08
|
|
|
|
LXML_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml
|
|
HTML5LIB_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}html5lib>0:www/py-html5lib
|
|
JINJA2_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2
|
|
OPENPYXL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}openpyxl>=2.2.0:textproc/py-openpyxl
|
|
XLRD_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}xlrd>0:textproc/py-xlrd
|
|
XLWT_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}xlwt>0:textproc/py-xlwt
|
|
XLSX_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}XlsxWriter>0:textproc/py-xlsxwriter
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MLXML} || ${PORT_OPTIONS:MHTML5LIB}
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}beautifulsoup>0:www/py-beautifulsoup
|
|
.endif
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
USES= python
|
|
USE_PYTHON= autoplist distutils
|
|
|
|
# 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}
|
|
|
|
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>
|