mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-19 08:13:21 +00:00
5d4139f8bd
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
59 lines
2.5 KiB
Makefile
59 lines
2.5 KiB
Makefile
PORTNAME= cherrypy
|
|
PORTVERSION= 18.8.0
|
|
PORTREVISION= 0
|
|
CATEGORIES= www python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= CherryPy-${PORTVERSION}
|
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
|
COMMENT= Pythonic, object-oriented web development framework
|
|
WWW= http://www.cherrypy.org/
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR}
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cheroot>=8.2.1:www/py-cheroot@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}jaraco.collections>=4.2.0:devel/py-jaraco.collections@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}more-itertools>0:devel/py-more-itertools@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}portend>=2.1.1:net/py-portend@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}six>=1.11.0:devel/py-six@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}zclockfile>0:devel/py-zclockfile@${PY_FLAVOR}
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}codecov>=2.1.13:devel/py-codecov@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}coverage>=7.2.2:devel/py-coverage@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}objgraph>=3.5.0:devel/py-objgraph@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}path.py>0:devel/py-path.py@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pytest-cov>=2.9.0:devel/py-pytest-cov@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pytest-forked>=1.6.0:devel/py-pytest-forked@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pytest-services>=2:devel/py-pytest-services@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pytest-sugar>=0.9.7:devel/py-pytest-sugar@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}python-memcached>=1.59:databases/py-python-memcached@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}requests-toolbelt>0:www/py-requests-toolbelt@${PY_FLAVOR} \
|
|
${PY_SETUPTOOLS}
|
|
|
|
USES= cpe python
|
|
USE_PYTHON= autoplist concurrent distutils pytest
|
|
PYTEST_BROKEN_TESTS= test_0_NormalStateFlow test_8_Ram_Cleanup \
|
|
test_multipart_decoding \
|
|
test_multipart_decoding_bigger_maxrambytes test_pass \
|
|
test_4_File_deletion test_3_Redirect \
|
|
test_threadlocal_garbage
|
|
NO_ARCH= yes
|
|
PORTEXAMPLES= *
|
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
EXAMPLES_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cheetah3>0:devel/py-cheetah3@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}sqlobject>=1.5.1:databases/py-sqlobject@${PY_FLAVOR}
|
|
|
|
post-install-EXAMPLES-on:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
(cd ${WRKSRC}/cherrypy/tutorial && \
|
|
${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
|
|
(cd ${STAGEDIR}${PREFIX} && \
|
|
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
|
|
-d ${EXAMPLESDIR} ${EXAMPLESDIR:S,${PREFIX}/,,})
|
|
|
|
.include <bsd.port.mk>
|