bd251adcb6
Backport an upstream patch [1][2] to setup.py making argparse a conditional
dependency. Without this change, the following error is observed at run-time:
pkg_resources.DistributionNotFound: The 'argparse' distribution was not found and is required by certbot
This is due to the separate argparse distribution (via PyPI) no longer being
required for Python versions >= 2.7 and >= 3.2, as they contain the argparse
module in the standard library.
Since FreeBSD only supports Python versions with the argparse module built in,
*and* having removed the devel/py-argparse port, the install_requires=argparse
dependency cannot be satisfied, as install_requires is only relevant for non
standard library (PyPI) packages/dependencies.
[1] https://github.com/certbot/certbot/pull/4554
[2] https://github.com/certbot/certbot/issues/4485
PR: 218973
Reported by: olgeni
Approved by: koobs (py-certbot, maintainer)
Obtained from: 89af460792
Differential Revision: https://reviews.freebsd.org/D10546
42 lines
1.3 KiB
Makefile
42 lines
1.3 KiB
Makefile
# Created by: Carlos J Puga Medina <cpm@fbsd.es>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= acme
|
|
PORTVERSION= 0.13.0
|
|
PORTREVISION= 1
|
|
PORTEPOCH= 1
|
|
CATEGORIES= security python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= cpm@FreeBSD.org
|
|
COMMENT= ACME protocol implementation in Python
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cryptography>=0.8:security/py-cryptography \
|
|
${PYTHON_PKGNAMEPREFIX}ndg_httpsclient>0:net/py-ndg_httpsclient \
|
|
${PYTHON_PKGNAMEPREFIX}pyasn1>0:devel/py-pyasn1 \
|
|
${PYTHON_PKGNAMEPREFIX}dnspython>=1.12:dns/py-dnspython \
|
|
${PYTHON_PKGNAMEPREFIX}idna>0:dns/py-idna \
|
|
${PYTHON_PKGNAMEPREFIX}openssl>=0.13:security/py-openssl \
|
|
${PYTHON_PKGNAMEPREFIX}pyrfc3339>0:devel/py-pyrfc3339 \
|
|
${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz \
|
|
${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests \
|
|
${PYTHON_PKGNAMEPREFIX}setuptools>=1.0:devel/${PYTHON_PKGNAMEPREFIX}setuptools \
|
|
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six \
|
|
${PYTHON_PKGNAMEPREFIX}werkzeug>0:www/py-werkzeug
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}funcsigs>0:devel/py-funcsigs \
|
|
${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock \
|
|
${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose
|
|
|
|
USES= python
|
|
USE_PYTHON= autoplist distutils
|
|
|
|
NO_ARCH= yes
|
|
|
|
do-test:
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
|
|
|
|
.include <bsd.port.mk>
|