From owner-svn-ports-head@freebsd.org Sat Sep 5 06:13:38 2020 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 A2DF33E199D; Sat, 5 Sep 2020 06:13:38 +0000 (UTC) (envelope-from yuri@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 4Bk4423tP6z413b; Sat, 5 Sep 2020 06:13:38 +0000 (UTC) (envelope-from yuri@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 6976D1988C; Sat, 5 Sep 2020 06:13:38 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 0856Dc5n038704; Sat, 5 Sep 2020 06:13:38 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0856DbWn038701; Sat, 5 Sep 2020 06:13:37 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <202009050613.0856DbWn038701@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Sat, 5 Sep 2020 06:13:37 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r547592 - in head/www/py-pywikibot: . files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/www/py-pywikibot: . files X-SVN-Commit-Revision: 547592 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.33 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, 05 Sep 2020 06:13:38 -0000 Author: yuri Date: Sat Sep 5 06:13:37 2020 New Revision: 547592 URL: https://svnweb.freebsd.org/changeset/ports/547592 Log: www/py-pywikibot: Update 3.0.20200703 -> 4.3.0 Modified: head/www/py-pywikibot/Makefile head/www/py-pywikibot/distinfo head/www/py-pywikibot/files/patch-setup.py Modified: head/www/py-pywikibot/Makefile ============================================================================== --- head/www/py-pywikibot/Makefile Sat Sep 5 06:08:49 2020 (r547591) +++ head/www/py-pywikibot/Makefile Sat Sep 5 06:13:37 2020 (r547592) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= pywikibot -DISTVERSION= 3.0.20200703 +DISTVERSION= 4.3.0 CATEGORIES= www python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} Modified: head/www/py-pywikibot/distinfo ============================================================================== --- head/www/py-pywikibot/distinfo Sat Sep 5 06:08:49 2020 (r547591) +++ head/www/py-pywikibot/distinfo Sat Sep 5 06:13:37 2020 (r547592) @@ -1,3 +1,3 @@ -TIMESTAMP = 1595377952 -SHA256 (pywikibot-3.0.20200703.tar.gz) = af7dc748b8b1d73e00f27058820df888bc40542d1a44809ef1a43d4747676e47 -SIZE (pywikibot-3.0.20200703.tar.gz) = 515314 +TIMESTAMP = 1599286256 +SHA256 (pywikibot-4.3.0.tar.gz) = 873208fe4c284521051b45488e9d72df5af7803e2fb280974d07842d30894f6a +SIZE (pywikibot-4.3.0.tar.gz) = 506423 Modified: head/www/py-pywikibot/files/patch-setup.py ============================================================================== --- head/www/py-pywikibot/files/patch-setup.py Sat Sep 5 06:08:49 2020 (r547591) +++ head/www/py-pywikibot/files/patch-setup.py Sat Sep 5 06:13:37 2020 (r547592) @@ -1,41 +1,21 @@ ---- setup.py.orig 2020-04-29 18:50:22 UTC +--- setup.py.orig 2020-09-05 06:11:40 UTC +++ setup.py -@@ -168,22 +168,22 @@ def get_version(name): - @rtype: str - """ - version = '3.0' +@@ -173,12 +173,12 @@ def get_validated_version(): # pragma: no cover + # validate version for sdist + from contextlib import suppress + from subprocess import run, PIPE - try: -- import subprocess -- date = subprocess.check_output( -- ['git', 'log', '-1', '--format=%ci']).strip() -- date = date.decode().split(' ', 1)[0].replace('-', '') -- version += '.' + date -- if 'sdist' not in sys.argv: -- version += '.dev0' +- tags = run(['git', 'tag'], check=True, stdout=PIPE, +- universal_newlines=True).stdout.splitlines() - except Exception as e: - print(e) -- from pkg_resources import get_distribution, DistributionNotFound -- try: -- version = get_distribution(name).version -- except DistributionNotFound as e: -- print(e) -- version += '.dev0' +- sys.exit('Creating source distribution canceled.') + #try: -+ # import subprocess -+ # date = subprocess.check_output( -+ # ['git', 'log', '-1', '--format=%ci']).strip() -+ # date = date.decode().split(' ', 1)[0].replace('-', '') -+ # version += '.' + date -+ # if 'sdist' not in sys.argv: -+ # version += '.dev0' ++ # tags = run(['git', 'tag'], check=True, stdout=PIPE, ++ # universal_newlines=True).stdout.splitlines() + #except Exception as e: + # print(e) -+ # from pkg_resources import get_distribution, DistributionNotFound -+ # try: -+ # version = get_distribution(name).version -+ # except DistributionNotFound as e: -+ # print(e) -+ # version += '.dev0' - return version ++ # sys.exit('Creating source distribution canceled.') - + for tag in ('stable', 'python2'): + with suppress(ValueError):