[Git][ghc/ghc][ghc-9.6] upload_ghc_libs: More control over which packages to operate on

Ben Gamari (@bgamari) gitlab at gitlab.haskell.org
Sun Feb 12 23:07:40 UTC 2023



Ben Gamari pushed to branch ghc-9.6 at Glasgow Haskell Compiler / GHC


Commits:
3e18d493 by Ben Gamari at 2023-02-12T18:05:44-05:00
upload_ghc_libs: More control over which packages to operate on

Here we add a `--skip` flag to `upload_ghc_libs`, making it easier to
limit which packages to upload. This is often necessary when one package
is not uploadable (e.g. see #22740).

- - - - -


1 changed file:

- .gitlab/rel_eng/upload_ghc_libs.py


Changes:

=====================================
.gitlab/rel_eng/upload_ghc_libs.py
=====================================
@@ -197,7 +197,7 @@ def main() -> None:
     parser_prepare.add_argument('--bindist', required=True, type=Path, help='extracted binary distribution')
 
     parser_upload = subparsers.add_parser('upload')
-    parser_upload.add_argument('--skip', nargs='*', type=str, help='skip uploading of the given package')
+    parser_upload.add_argument('--skip', default=[], action='append', type=str, help='skip uploading of the given package')
     parser_upload.add_argument('--docs', required = True, type=Path, help='folder created by --prepare')
     parser_upload.add_argument('--publish', action='store_true', help='Publish Hackage packages instead of just uploading candidates')
     args = parser.parse_args()
@@ -212,7 +212,7 @@ def main() -> None:
     if args.command == "upload":
         for pkg_name in args.skip:
             assert pkg_name in PACKAGES
-        pkgs = pkgs - args.skip
+        pkgs = pkgs - set(args.skip)
 
     if args.command == "prepare":
         manifest = {}



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/3e18d49314ba4b6e6a9e4f3428b9b873265cb9aa

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/3e18d49314ba4b6e6a9e4f3428b9b873265cb9aa
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230212/05bc4794/attachment-0001.html>


More information about the ghc-commits mailing list