From owner-svn-ports-head@FreeBSD.ORG Sat Mar 15 15:07:08 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BFE85F5A; Sat, 15 Mar 2014 15:07:08 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 92E461D7; Sat, 15 Mar 2014 15:07:08 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2FF78Pf032655; Sat, 15 Mar 2014 15:07:08 GMT (envelope-from koobs@svn.freebsd.org) Received: (from koobs@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2FF78t0032649; Sat, 15 Mar 2014 15:07:08 GMT (envelope-from koobs@svn.freebsd.org) Message-Id: <201403151507.s2FF78t0032649@svn.freebsd.org> From: Kubilay Kocak Date: Sat, 15 Mar 2014 15:07:08 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r348331 - in head/net/py-oauth2: . files X-SVN-Group: ports-head 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.17 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: Sat, 15 Mar 2014 15:07:08 -0000 Author: koobs Date: Sat Mar 15 15:07:07 2014 New Revision: 348331 URL: http://svnweb.freebsd.org/changeset/ports/348331 QAT: https://qat.redports.org/buildarchive/r348331/ Log: net/py-oauth2: Fix tests from being installed in site-packages - Patch setup.py to exclude tests from install (CONFLICT) [1][2] - pkg-descr: Tab->space in WWW: (portlint) - Bump PORTREVISION [1] This Python package uses packages=find_packages() with a tests module in the root that contains an __init__.py file, which results in the tests module being installed in site-packages. The correct way of including tests in a pypi package using sdist, while excluding tests in the root from being installed it to use: * packages = find_packages(exclude='tests'), * A MANIFEST.in containing "include tests/*" or equivalent [2] https://github.com/simplegeo/python-oauth2/issues/139 Reported by: antoine Approved by: maintainer (via Twitter) Added: head/net/py-oauth2/files/ head/net/py-oauth2/files/patch-setup.py (contents, props changed) Modified: head/net/py-oauth2/Makefile head/net/py-oauth2/pkg-descr Modified: head/net/py-oauth2/Makefile ============================================================================== --- head/net/py-oauth2/Makefile Sat Mar 15 15:04:17 2014 (r348330) +++ head/net/py-oauth2/Makefile Sat Mar 15 15:07:07 2014 (r348331) @@ -3,7 +3,7 @@ PORTNAME= oauth2 PORTVERSION= 1.5.211 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} Added: head/net/py-oauth2/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/py-oauth2/files/patch-setup.py Sat Mar 15 15:07:07 2014 (r348331) @@ -0,0 +1,11 @@ +--- ./setup.py.orig 2014-03-15 23:48:44.604925965 +1100 ++++ ./setup.py 2014-03-15 23:49:01.462781884 +1100 +@@ -31,7 +31,7 @@ + author="Joe Stump", + author_email="joe@simplegeo.com", + url="http://github.com/simplegeo/python-oauth2", +- packages = find_packages(), ++ packages = find_packages(exclude=['tests']), + install_requires = ['httplib2'], + license = "MIT License", + keywords="oauth", Modified: head/net/py-oauth2/pkg-descr ============================================================================== --- head/net/py-oauth2/pkg-descr Sat Mar 15 15:04:17 2014 (r348330) +++ head/net/py-oauth2/pkg-descr Sat Mar 15 15:07:07 2014 (r348331) @@ -11,4 +11,4 @@ forefathers: * The library is likely no longer compatible with Python 2.3. * The Client class works and extends from httplib2. -WWW: http://github.com/simplegeo/python-oauth2 +WWW: http://github.com/simplegeo/python-oauth2