From owner-freebsd-ports@freebsd.org Wed Jul 6 09:21:28 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E0A62B21FDB for ; Wed, 6 Jul 2016 09:21:28 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mail-pf0-x232.google.com (mail-pf0-x232.google.com [IPv6:2607:f8b0:400e:c00::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id ADC261E52 for ; Wed, 6 Jul 2016 09:21:28 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mail-pf0-x232.google.com with SMTP id t190so78404030pfb.3 for ; Wed, 06 Jul 2016 02:21:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:reply-to:references:to:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=5uKTTLqOY7MIZjz0p+xHgeG97uYIba6iaPpqmFaABE0=; b=NQ2q8h04hx/wbUEdTXnDqeJiyjq72nruW14iid2m79rGEa+lOKXalCJDya6o4AqnpA 9sQBwIiaZBH64S45qWoEgdDj+OYP0ZVPVciFh681rzB0nVP378cclFO/hKmXQ9NTq0DD eEH1nySkb7qVD0kFK246VYxbQ17u0HXT+mPfgi9TrLy5Z5o3rIyP5uKZgUICBsypqbie e04qCBgqcl9WLtJVK3LN0NYLgkof8yuSl0DmIEA+dboo/dpSVge5pI2SX04w/RKNaVfb rzBGR60aEBmYPuJxJV3zh1D2CdMh+Z8oDsEKC8tmLsV0iZ3G7HIsf9GQwEQ//CXxqoCo XpDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:reply-to:references:to:from :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding; bh=5uKTTLqOY7MIZjz0p+xHgeG97uYIba6iaPpqmFaABE0=; b=F/RSoZFUeXu1MpHRORwwj0O08LzND8/vnau5WTlAebAGhVTqyd1zdQWii7EipCrwmP eZnOxiSSB60ps0VBSn68WvHWHsullkdgTZSxm7D9j+JGAvIRggB53EbN8a6i9qjMmpYb HQtt7FdC7UGrYMXizOTJUv3ANAgLBGcpRagPIrY49GlQ36bIiqAnRKAveo3f8Y7rjCGZ vdWiWMRofVSxpkHvDXJ2wUBx8QdEOeEVmPOAiWRDgHGnq5WI9EjRMaCno86opuc/RCHz Mp1aq7i4GFgFkkrkHyGaegeAjozOQz/j+NDB8PWGJyvNwdzIWdThKC5Tmpbv8K2aoDyl 4kCw== X-Gm-Message-State: ALyK8tIYPXpHU0/ywljCOyKup8fw49QICyZ6k06qaluksjiFfNeXHmwNwGszg2FZ/YSiGQ== X-Received: by 10.98.35.27 with SMTP id j27mr40289186pfj.10.1467796887564; Wed, 06 Jul 2016 02:21:27 -0700 (PDT) Received: from ?IPv6:2001:44b8:31ae:7b01:f985:3c4b:2a0c:8bea? (2001-44b8-31ae-7b01-f985-3c4b-2a0c-8bea.static.ipv6.internode.on.net. [2001:44b8:31ae:7b01:f985:3c4b:2a0c:8bea]) by smtp.gmail.com with ESMTPSA id i187sm2757225pfc.62.2016.07.06.02.21.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Jul 2016 02:21:27 -0700 (PDT) Sender: Kubilay Kocak Subject: Fwd: Re: svn commit: r418098 - head/misc/py-socli Reply-To: koobs@FreeBSD.org References: To: FreeBSD Ports List From: Kubilay Kocak X-Forwarded-Message-Id: Message-ID: <93e77505-05a3-5fe6-60ab-fde969237710@FreeBSD.org> Date: Wed, 6 Jul 2016 19:21:18 +1000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Thunderbird/47.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2016 09:21:29 -0000 Forgot to include freebsd-ports on my reply -------- Forwarded Message -------- Subject: Re: svn commit: r418098 - head/misc/py-socli Date: Wed, 6 Jul 2016 19:02:44 +1000 From: Kubilay Kocak Reply-To: koobs@FreeBSD.org To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org CC: Carlos J. Puga Medina On 6/07/2016 3:58 AM, Carlos J. Puga Medina wrote: > Author: cpm > Date: Tue Jul 5 17:58:37 2016 > New Revision: 418098 > URL: https://svnweb.freebsd.org/changeset/ports/418098 > > Log: > - Update to 1.8 release > - Change USES=python:3 to USES=python because python2 support has been added > - Remove ignore on package buiders A note for future reference and for others watching: USES=python, USES=python:2, and USES=python:3 have only ever, and continue only to mean: Depend on the lang/python, lang/python2 or lang/python3 *metaports*, because it depends on the python, python2 or python3 *symlinks*, because some script it has or runs uses that script filename. It does *not* mean "all/any Python versions", "supports any 2.x version", "any 3.x version" or anything else about the Python version(s) it supports. In particular, this means the use of USES=python to mean "any/all versions" in the vast majority, if not all ports is incorrect. Note: these "dependencies" can often (if not always) be removed by shebangfix'ing the files in question to use an explicit pythonX.Y script (making them PEP-394 compatible). The correct way to declare Python version support in a port is to explicitly, declaratively and accurately as possible (given the limitations below) list them using: * A.B-X.Y * -X.Y * X.Y+ * X.Y Ideally, they are declared identically to the versions listed in the setup.py, such as: Programming Language :: Python :: 2.6 Programming Language :: Python :: 2.7 Programming Language :: Python :: 3.2 Programming Language :: Python :: 3.3 Programming Language :: Python :: 3.4 Programming Language :: Python :: 3.5 Unfortunately, we can't currently declare multiple versions (that aren't ranges), such as A.B,A.C,X.Y, which we need. It would be awesome if someone could help expand the syntax, so we can actually start doing proper, correct and accurate version support declarations. Moving forward, we need better ways to declare "supports X, Y, Z versions *and* this or these symlinks (metaports), and we need to move to only explicitly listing supported versions, rather than implicitly. In the meantime, you can help by minimizing the use of USES=python, USES=python:2 and python:3 unless its absolutely required, or there is no better method. I'll write this up in the Python wiki pages, feel free to reply off-list if you have any questions or if you want to help ./koobs > Reviewed by: feld (mentor) > Approved by: feld (mentor) > Differential Revision: D7099 > > Modified: > head/misc/py-socli/Makefile > head/misc/py-socli/distinfo > > Modified: head/misc/py-socli/Makefile > ============================================================================== > --- head/misc/py-socli/Makefile Tue Jul 5 17:57:42 2016 (r418097) > +++ head/misc/py-socli/Makefile Tue Jul 5 17:58:37 2016 (r418098) > @@ -2,8 +2,7 @@ > # $FreeBSD$ > > PORTNAME= socli > -PORTVERSION= 1.7 > -PORTREVISION= 1 > +PORTVERSION= 1.8 > CATEGORIES= misc python > PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} > > @@ -16,7 +15,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE > RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}beautifulsoup>=0:www/py-beautifulsoup \ > ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests > > -USES= python:3 > +USES= python > USE_GITHUB= yes > USE_PYTHON= autoplist distutils > > @@ -24,10 +23,4 @@ GH_ACCOUNT= gautamkrishnar > > NO_ARCH= yes > > -.include > - > -.if defined(PACKAGE_BUILDING) && ${PYTHON_VER} != ${PYTHON_DEFAULT} > -IGNORE= you have python ${PYTHON_DEFAULT} set as the default, and this needs ${PYTHON_VER} > -.endif > - > -.include > +.include > > Modified: head/misc/py-socli/distinfo > ============================================================================== > --- head/misc/py-socli/distinfo Tue Jul 5 17:57:42 2016 (r418097) > +++ head/misc/py-socli/distinfo Tue Jul 5 17:58:37 2016 (r418098) > @@ -1,3 +1,3 @@ > -TIMESTAMP = 1466859233 > -SHA256 (gautamkrishnar-socli-1.7_GH0.tar.gz) = ce927f38a72468ed1f5a34b4d72ee1911475fa267cce82a2baeebd92f97c563f > -SIZE (gautamkrishnar-socli-1.7_GH0.tar.gz) = 7151 > +TIMESTAMP = 1467672057 > +SHA256 (gautamkrishnar-socli-1.8_GH0.tar.gz) = f3e462a0b5a9ce2ccf945be3a0500e37dc8c8bad293bfc12841d097a637c62d2 > +SIZE (gautamkrishnar-socli-1.8_GH0.tar.gz) = 7406 >