freebsd-ports/security/py-acme
Carlos J. Puga Medina bd251adcb6 security/py-{acme,certbot}: Make argparse a conditional dependency
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
2017-04-30 14:26:41 +00:00
..
files security/py-{acme,certbot}: Make argparse a conditional dependency 2017-04-30 14:26:41 +00:00
distinfo security/py-acme: update to 0.13.0 2017-04-29 12:00:22 +00:00
Makefile security/py-{acme,certbot}: Make argparse a conditional dependency 2017-04-30 14:26:41 +00:00
pkg-descr security/py-acme: update to 0.13.0 2017-04-29 12:00:22 +00:00