mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
www/py-pywikibot: Update 3.0.20200703 -> 4.3.0
This commit is contained in:
parent
fd28a7a2cc
commit
2a344f800a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=547592
@ -2,7 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= pywikibot
|
||||
DISTVERSION= 3.0.20200703
|
||||
DISTVERSION= 4.3.0
|
||||
CATEGORIES= www python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
@ -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
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user