From owner-svn-ports-head@freebsd.org Fri Sep 20 16:43:42 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 25CFD1222B2; Fri, 20 Sep 2019 16:43:42 +0000 (UTC) (envelope-from nivit@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46Zfg20C7kz4NpT; Fri, 20 Sep 2019 16:43:42 +0000 (UTC) (envelope-from nivit@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DE2BE94B; Fri, 20 Sep 2019 16:43:41 +0000 (UTC) (envelope-from nivit@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x8KGhfQc042609; Fri, 20 Sep 2019 16:43:41 GMT (envelope-from nivit@FreeBSD.org) Received: (from nivit@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x8KGhfh2042607; Fri, 20 Sep 2019 16:43:41 GMT (envelope-from nivit@FreeBSD.org) Message-Id: <201909201643.x8KGhfh2042607@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: nivit set sender to nivit@FreeBSD.org using -f From: Nicola Vitale Date: Fri, 20 Sep 2019 16:43:41 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r512421 - in head/devel/py-virtualenv: . files X-SVN-Group: ports-head X-SVN-Commit-Author: nivit X-SVN-Commit-Paths: in head/devel/py-virtualenv: . files X-SVN-Commit-Revision: 512421 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Sep 2019 16:43:42 -0000 Author: nivit Date: Fri Sep 20 16:43:41 2019 New Revision: 512421 URL: https://svnweb.freebsd.org/changeset/ports/512421 Log: - Fix documentation build - Add textproc/py-sphinx_rtd_theme and textproc/towncrier to build dependencies - Add files/patch-docs_conf.py to fix ModuleNotFoundError (virtualenv) - Set LANG and LC_ALL environment variables to mitigate a RuntimeError during the build stage of the doc.: RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment. Consult https://click.palletsprojects.com/en/7.x/python3/ for mitigation steps. Added: head/devel/py-virtualenv/files/ head/devel/py-virtualenv/files/patch-docs_conf.py (contents, props changed) Modified: head/devel/py-virtualenv/Makefile Modified: head/devel/py-virtualenv/Makefile ============================================================================== --- head/devel/py-virtualenv/Makefile Fri Sep 20 15:56:44 2019 (r512420) +++ head/devel/py-virtualenv/Makefile Fri Sep 20 16:43:41 2019 (r512421) @@ -14,15 +14,24 @@ LICENSE= MIT TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} -DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=1.1.3:textproc/py-sphinx@${PY_FLAVOR} +DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=1.1.3:textproc/py-sphinx@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sphinx_rtd_theme>0:textproc/py-sphinx_rtd_theme@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}towncrier>0:textproc/py-towncrier@${PY_FLAVOR} DOCS_PORTDOCS= * -DOCS_VARS= PYDISTUTILS_BUILD_TARGET+=build_sphinx +DOCS_VARS= PYDISTUTILS_BUILD_TARGET="build build_sphinx" +# Required by towncrier/click when Python < 3.7 +# see https://click.palletsprojects.com/en/7.x/python3/ +# Documentation is in English, so... +MAKE_ENV= LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 + GH_ACCOUNT= pypa NO_ARCH= yes OPTIONS_DEFINE= DOCS + +PYDISTUTILS_BUILDARGS= -c ${WRKSRC}/docs USES= python USE_GITHUB= yes Added: head/devel/py-virtualenv/files/patch-docs_conf.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-virtualenv/files/patch-docs_conf.py Fri Sep 20 16:43:41 2019 (r512421) @@ -0,0 +1,10 @@ +--- docs/conf.py.orig 2019-09-03 16:32:54 UTC ++++ docs/conf.py +@@ -5,6 +5,7 @@ import re + import subprocess + import sys + from pathlib import Path ++sys.path.insert(0, os.path.abspath('../build/lib')) + + from virtualenv import __version__ +