forked from Lainports/freebsd-ports
Directory and PORTNAME changed to match normalised name in release
tarball; consumers updated to match.
Although setuptools itself is specified as a run dependency in the
Python package metadata, it is currently left out here to prevent
environment pollution until at least PR 270510 is committed.
Additionally, this version of setuptools-scm requires setuptools>=61,
which means this version is only meant for USE_PYTHON=pep517 ports
as all USE_PYTHON=distutils ports will switch to devel/py-setuptools58
also after PR 270510. science/py-emmet-core is switched to
devel/py-setuptools_scm7 accordingly, as it specifies setuptools-scm<8.
devel/py-{flit-scm,hatch-vcs} have ${PY_SETUPTOOLS} added to
RUN_DEPENDS to compensate.
Further details: https://wiki.freebsd.org/Python/setuptools
Reported by: yuri
Co-authored by: matthew
Exp-run by: antoine (earlier iteration)
Approved by: yuri (science/py-emmet-core, previous iteration)
PR: 272134
Differential Revision: https://reviews.freebsd.org/D39288
44 lines
1.6 KiB
Makefile
44 lines
1.6 KiB
Makefile
PORTNAME= tablib
|
|
PORTVERSION= 3.5.0
|
|
CATEGORIES= textproc python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= kai@FreeBSD.org
|
|
COMMENT= Format agnostic tabular data library (XLS, JSON, YAML, CSV)
|
|
WWW= https://github.com/jazzband/tablib
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= ${PY_SETUPTOOLS} \
|
|
${PYTHON_PKGNAMEPREFIX}setuptools-scm>=6.2:devel/py-setuptools-scm@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
|
|
|
|
USES= cpe python
|
|
CPE_VENDOR= python
|
|
USE_PYTHON= autoplist pep517 pytest
|
|
|
|
NO_ARCH= yes
|
|
|
|
OPTIONS_DEFINE= CLI HTML ODS PANDAS XLS XLSX YAML
|
|
OPTIONS_DEFAULT=CLI HTML ODS PANDAS XLS XLSX YAML
|
|
|
|
CLI_DESC= Command-line support
|
|
HTML_DESC= HTML format support
|
|
ODS_DESC= Open Document .ods support
|
|
PANDAS_DESC= Pandas Dataframe support
|
|
XLS_DESC= Microsoft Excel .xls support
|
|
XLSX_DESC= Microsoft Excel .xlsx support
|
|
YAML_DESC= YAML format support
|
|
|
|
CLI_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tabulate>=0:devel/py-tabulate@${PY_FLAVOR}
|
|
HTML_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}markuppy>=0:textproc/py-markuppy@${PY_FLAVOR}
|
|
ODS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}odfpy>=0:devel/py-odfpy@${PY_FLAVOR}
|
|
PANDAS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pandas>=0:math/py-pandas@${PY_FLAVOR}
|
|
XLS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}xlrd>=0:textproc/py-xlrd@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}xlwt>=0:textproc/py-xlwt@${PY_FLAVOR}
|
|
XLSX_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}openpyxl>=2.6.0:textproc/py-openpyxl@${PY_FLAVOR}
|
|
YAML_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml@${PY_FLAVOR}
|
|
|
|
.include <bsd.port.mk>
|