diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2024-03-09 06:41:34 +0000 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2024-03-09 07:34:15 +0000 |
commit | bfd8c9b9165a75c9b3a67ead6a1f6327aa450967 (patch) | |
tree | 160daf33191bf3d2e8b80f63c6fdc7467857bd72 /www/py-pywikibot | |
parent | 5bbc822e37b6c81c6058347c229a7fcbb683bfc0 (diff) | |
download | ports-bfd8c9b9165a75c9b3a67ead6a1f6327aa450967.tar.gz ports-bfd8c9b9165a75c9b3a67ead6a1f6327aa450967.zip |
www/py-pywikibot: update 8.6.0 → 9.0.0
Reported by: portscout
Diffstat (limited to 'www/py-pywikibot')
-rw-r--r-- | www/py-pywikibot/Makefile | 3 | ||||
-rw-r--r-- | www/py-pywikibot/distinfo | 6 | ||||
-rw-r--r-- | www/py-pywikibot/files/patch-setup.py | 18 |
3 files changed, 14 insertions, 13 deletions
diff --git a/www/py-pywikibot/Makefile b/www/py-pywikibot/Makefile index e703f3b36e10..7783a92748fd 100644 --- a/www/py-pywikibot/Makefile +++ b/www/py-pywikibot/Makefile @@ -1,5 +1,5 @@ PORTNAME= pywikibot -DISTVERSION= 8.6.0 +DISTVERSION= 9.0.0 CATEGORIES= www python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -12,6 +12,7 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mwparserfromhell>=0.5.2:textproc/py-mwparserfromhell@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}requests>=2.21.0:www/py-requests@${PY_FLAVOR} USES= dos2unix python diff --git a/www/py-pywikibot/distinfo b/www/py-pywikibot/distinfo index 35739514c67c..1c0cb20d20e8 100644 --- a/www/py-pywikibot/distinfo +++ b/www/py-pywikibot/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1703796569 -SHA256 (pywikibot-8.6.0.tar.gz) = 380454e6b6e53a74f4925d1afaed9b485325fa62f8d475eb3931a5b83a1e0015 -SIZE (pywikibot-8.6.0.tar.gz) = 607508 +TIMESTAMP = 1709965245 +SHA256 (pywikibot-9.0.0.tar.gz) = 82120dd4dd275a48c0eaa2a459faad928211e7b43cf6efe4110ad95e805e7317 +SIZE (pywikibot-9.0.0.tar.gz) = 612776 diff --git a/www/py-pywikibot/files/patch-setup.py b/www/py-pywikibot/files/patch-setup.py index c5c1529ec580..3baf2bd20e11 100644 --- a/www/py-pywikibot/files/patch-setup.py +++ b/www/py-pywikibot/files/patch-setup.py @@ -1,21 +1,21 @@ ---- setup.py.orig 2023-07-06 07:11:10 UTC +--- setup.py.orig 2024-03-09 06:20:55 UTC +++ setup.py -@@ -141,12 +141,12 @@ def get_validated_version() -> str: - from subprocess import PIPE, run +@@ -160,12 +160,12 @@ def get_validated_version(name: str) -> str: # pragma + + from packaging.version import InvalidVersion, Version - from pkg_resources import parse_version, safe_version - try: - tags = run(['git', 'tag'], check=True, stdout=PIPE, -- universal_newlines=True).stdout.splitlines() -- except Exception as e: # pragma: no cover +- text=True).stdout.splitlines() +- except Exception as e: - print(e) - sys.exit('Creating source distribution canceled.') + #try: + # tags = run(['git', 'tag'], check=True, stdout=PIPE, -+ # universal_newlines=True).stdout.splitlines() -+ #except Exception as e: # pragma: no cover ++ # text=True).stdout.splitlines() ++ #except Exception as e: + # print(e) + # sys.exit('Creating source distribution canceled.') last_tag = None - if tags: # pragma: no cover + if tags: |