common/scripts/parse-py-metadata: always ignore tzdata
This commit is contained in:
parent
ad4310ca8a
commit
3719c1f29c
1 changed files with 5 additions and 0 deletions
|
@ -32,6 +32,9 @@ if TYPE_CHECKING:
|
||||||
from packaging.requirements import Requirement
|
from packaging.requirements import Requirement
|
||||||
from packaging.utils import canonicalize_name
|
from packaging.utils import canonicalize_name
|
||||||
|
|
||||||
|
# packages to always ignore
|
||||||
|
global_ignore = ["tzdata"]
|
||||||
|
|
||||||
|
|
||||||
def msg_err(msg: str, *, nocolor: bool = False, strict: bool = False):
|
def msg_err(msg: str, *, nocolor: bool = False, strict: bool = False):
|
||||||
if nocolor:
|
if nocolor:
|
||||||
|
@ -149,6 +152,8 @@ def parse_depends(args):
|
||||||
pkgname = vpkgs[k]
|
pkgname = vpkgs[k]
|
||||||
if pkgname in rdeps:
|
if pkgname in rdeps:
|
||||||
print(f" PYTHON: {k} <-> {pkgname}", flush=True)
|
print(f" PYTHON: {k} <-> {pkgname}", flush=True)
|
||||||
|
elif pkgname in global_ignore:
|
||||||
|
print(f" PYTHON: {k} <-> {pkgname} (ignored)", flush=True)
|
||||||
else:
|
else:
|
||||||
msg_err(f" PYTHON: {k} <-> {pkgname} NOT IN depends PLEASE FIX!",
|
msg_err(f" PYTHON: {k} <-> {pkgname} NOT IN depends PLEASE FIX!",
|
||||||
nocolor=args.nocolor, strict=args.strict)
|
nocolor=args.nocolor, strict=args.strict)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue