Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Sep 2020 06:13:37 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
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
Message-ID:  <202009050613.0856DbWn038701@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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):



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009050613.0856DbWn038701>