diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2022-03-28 17:55:31 +0200 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2022-03-28 17:55:31 +0200 |
commit | 997bb5e42c0fab08598bd2f75b3b7873d6dc3505 (patch) | |
tree | 10e1365bc6fa0ef847422adb12106e86a1b02262 /maintainers | |
parent | e3d20dfaa59f5fde6b277943b7bc080390627bfa (diff) | |
parent | 01656454995be26a38490626c060ec66a0415cfe (diff) | |
download | nixpkgs-997bb5e42c0fab08598bd2f75b3b7873d6dc3505.tar nixpkgs-997bb5e42c0fab08598bd2f75b3b7873d6dc3505.tar.gz nixpkgs-997bb5e42c0fab08598bd2f75b3b7873d6dc3505.tar.bz2 nixpkgs-997bb5e42c0fab08598bd2f75b3b7873d6dc3505.tar.lz nixpkgs-997bb5e42c0fab08598bd2f75b3b7873d6dc3505.tar.xz nixpkgs-997bb5e42c0fab08598bd2f75b3b7873d6dc3505.tar.zst nixpkgs-997bb5e42c0fab08598bd2f75b3b7873d6dc3505.zip |
Merge branch 'master' into staging-next
; Conflicts: ; pkgs/development/python-modules/dnspython/default.nix ; pkgs/development/python-modules/googleapis-common-protos/default.nix
Diffstat (limited to 'maintainers')
-rw-r--r-- | maintainers/maintainer-list.nix | 12 | ||||
-rw-r--r-- | maintainers/scripts/luarocks-packages.csv | 2 | ||||
-rwxr-xr-x | maintainers/scripts/remove-old-aliases.py | 21 |
3 files changed, 28 insertions, 7 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index d1f6dbdc9ae..31d23c6c345 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -10438,6 +10438,12 @@ githubId = 811827; name = "Gabriel Lievano"; }; + rgrinberg = { + name = "Rudi Grinberg"; + email = "me@rgrinberg.com"; + github = "rgrinberg"; + githubId = 139003; + }; rgrunbla = { email = "remy@grunblatt.org"; github = "rgrunbla"; @@ -12788,6 +12794,12 @@ githubId = 1983821; name = "Eric Wolf"; }; + uakci = { + name = "uakci"; + email = "uakci@uakci.pl"; + github = "uakci"; + githubId = 6961268; + }; udono = { email = "udono@virtual-things.biz"; github = "udono"; diff --git a/maintainers/scripts/luarocks-packages.csv b/maintainers/scripts/luarocks-packages.csv index d69546cdf07..bdda8020a3d 100644 --- a/maintainers/scripts/luarocks-packages.csv +++ b/maintainers/scripts/luarocks-packages.csv @@ -81,6 +81,6 @@ rapidjson,https://github.com/xpol/lua-rapidjson.git,,,,, readline,,,,,, say,https://github.com/Olivine-Labs/say.git,,,,, std._debug,https://github.com/lua-stdlib/_debug.git,,,,, -std.normalize,git://github.com/lua-stdlib/normalize.git,,,,, +std.normalize,https://github.com/lua-stdlib/normalize.git,,,,, stdlib,,,,41.2.2,,vyp vstruct,https://github.com/ToxicFrog/vstruct.git,,,,, diff --git a/maintainers/scripts/remove-old-aliases.py b/maintainers/scripts/remove-old-aliases.py index 8ed326cbc20..c5629c82959 100755 --- a/maintainers/scripts/remove-old-aliases.py +++ b/maintainers/scripts/remove-old-aliases.py @@ -28,6 +28,11 @@ def process_args() -> argparse.Namespace: default=1, help="operate on aliases older than $year-$month", ) + arg_parser.add_argument( + "--only-throws", + action="store_true", + help="only operate on throws. e.g remove throws older than $date", + ) arg_parser.add_argument("--file", required=True, type=Path, help="alias file") arg_parser.add_argument( "--dry-run", action="store_true", help="don't modify files, only print results" @@ -36,7 +41,7 @@ def process_args() -> argparse.Namespace: def get_date_lists( - txt: list[str], cutoffdate: datetimedate + txt: list[str], cutoffdate: datetimedate, only_throws: bool ) -> tuple[list[str], list[str], list[str]]: """get a list of lines in which the date is older than $cutoffdate""" date_older_list: list[str] = [] @@ -57,7 +62,11 @@ def get_date_lists( except ValueError: continue - if my_date is None or my_date > cutoffdate or "preserve, reason:" in line.lower(): + if ( + my_date is None + or my_date > cutoffdate + or "preserve, reason:" in line.lower() + ): continue if "=" not in line: @@ -67,7 +76,7 @@ def get_date_lists( print(f"RESOLVE MANUALLY {line}") elif "throw" in line: date_older_throw_list.append(line) - else: + elif not only_throws: date_older_list.append(line) return ( @@ -160,6 +169,7 @@ def main() -> None: """main""" args = process_args() + only_throws = args.only_throws aliasfile = Path(args.file).absolute() cutoffdate = (datetime.strptime(f"{args.year}-{args.month}-01", "%Y-%m-%d")).date() @@ -170,13 +180,12 @@ def main() -> None: date_older_throw_list: list[str] = [] date_older_list, date_sep_line_list, date_older_throw_list = get_date_lists( - txt, cutoffdate + txt, cutoffdate, only_throws ) converted_to_throw: list[tuple[str, str]] = [] - converted_to_throw = convert_to_throw(date_older_list) - if date_older_list: + converted_to_throw = convert_to_throw(date_older_list) print(" Will be converted to throws. ".center(100, "-")) for l_n in date_older_list: print(l_n) |