Exemple #1
0
 def add_arguments(self, parser: argparse.ArgumentParser) -> None:
     groups_group.add_to_parser(parser)
     save_strategy_group.add_to_parser(parser)
     update_strategy_group.add_to_parser(parser)
     install_group.add_to_parser(parser)
     parser.add_argument(
         "-u",
         "--unconstrained",
         action="store_true",
         default=False,
         help="Ignore the version constraint of packages",
     )
     parser.add_argument(
         "-t",
         "--top",
         action="store_true",
         help="Only update those list in pyproject.toml",
     )
     parser.add_argument(
         "--dry-run",
         "--outdated",
         action="store_true",
         dest="dry_run",
         help=
         "Show the difference only without modifying the lockfile content",
     )
     parser.add_argument("packages",
                         nargs="*",
                         help="If packages are given, only update them")
     parser.set_defaults(dev=None)
Exemple #2
0
 def add_arguments(self, parser: argparse.ArgumentParser) -> None:
     parser.add_argument(
         "-d",
         "--dev",
         default=False,
         action="store_true",
         help="Add packages into dev dependencies",
     )
     parser.add_argument("-s",
                         "--section",
                         help="Specify target section to add into")
     parser.add_argument(
         "-u",
         "--unconstrained",
         action="store_true",
         default=False,
         help="Ignore the version constraint of pinned packages",
     )
     parser.add_argument(
         "--no-sync",
         dest="sync",
         default=True,
         action="store_false",
         help="Only write pyproject.toml and do not sync the working set",
     )
     save_strategy_group.add_to_parser(parser)
     update_strategy_group.add_to_parser(parser)
     packages_group.add_to_parser(parser)
     install_group.add_to_parser(parser)
Exemple #3
0
 def add_arguments(self, parser: argparse.ArgumentParser) -> None:
     sections_group.add_to_parser(parser)
     save_strategy_group.add_to_parser(parser)
     update_strategy_group.add_to_parser(parser)
     parser.add_argument(
         "-u",
         "--unconstrained",
         action="store_true",
         default=False,
         help="Ignore the version constraint of packages",
     )
     parser.add_argument("packages",
                         nargs="*",
                         help="If packages are given, only update them")
Exemple #4
0
 def add_arguments(self, parser: argparse.ArgumentParser) -> None:
     parser.add_argument(
         "-d",
         "--dev",
         default=False,
         action="store_true",
         help="Add packages into dev dependencies",
     )
     parser.add_argument(
         "-s",
         "--section",
         dest="group",
         help="(DEPRECATED) Alias of `-G/--group`",
         type=deprecated(
             "`-s/--section` is deprecated in favor of `-G/--groups` "
             "and will be removed in the next minor release."),
     )
     parser.add_argument(
         "-G",
         "--group",
         help="Specify the target dependency group to add into")
     parser.add_argument(
         "-u",
         "--unconstrained",
         action="store_true",
         default=False,
         help="Ignore the version constraint of pinned packages",
     )
     parser.add_argument(
         "--no-sync",
         dest="sync",
         default=True,
         action="store_false",
         help="Only write pyproject.toml and do not sync the working set",
     )
     save_strategy_group.add_to_parser(parser)
     update_strategy_group.add_to_parser(parser)
     packages_group.add_to_parser(parser)
     install_group.add_to_parser(parser)