예제 #1
0
파일: update.py 프로젝트: pawamoy/pdm
 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)
예제 #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)
예제 #3
0
 def add_arguments(self, parser: argparse.ArgumentParser) -> None:
     install_group.add_to_parser(parser)
     parser.add_argument(
         "-d",
         "--dev",
         default=False,
         action="store_true",
         help="Remove packages from 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 remove from"
     )
     parser.add_argument(
         "--no-sync",
         dest="sync",
         default=True,
         action="store_false",
         help="Only write pyproject.toml and do not uninstall packages",
     )
     parser.add_argument(
         "packages", nargs="+", help="Specify the packages to remove"
     )
예제 #4
0
파일: install.py 프로젝트: leibowitz/pdm
 def add_arguments(self, parser: argparse.ArgumentParser) -> None:
     sections_group.add_to_parser(parser)
     install_group.add_to_parser(parser)
     parser.add_argument(
         "--no-lock",
         dest="lock",
         action="store_false",
         default=True,
         help="Don't do lock if lockfile is not found or outdated.",
     )
예제 #5
0
파일: sync.py 프로젝트: pawamoy/pdm
 def add_arguments(self, parser: argparse.ArgumentParser) -> None:
     groups_group.add_to_parser(parser)
     dry_run_option.add_to_parser(parser)
     parser.add_argument(
         "-r",
         "--reinstall",
         action="store_true",
         help="Force reinstall existing dependencies",
     )
     clean_group.add_to_parser(parser)
     install_group.add_to_parser(parser)
예제 #6
0
 def add_arguments(self, parser: argparse.ArgumentParser) -> None:
     groups_group.add_to_parser(parser)
     install_group.add_to_parser(parser)
     dry_run_option.add_to_parser(parser)
     lockfile_option.add_to_parser(parser)
     parser.add_argument(
         "--no-lock",
         dest="lock",
         action="store_false",
         default=True,
         help="Don't do lock if the lock file is not found or outdated",
     )
     parser.add_argument(
         "--check",
         action="store_true",
         help="Check if the lock file is up to date and fail otherwise",
     )
예제 #7
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)
예제 #8
0
 def add_arguments(self, parser: argparse.ArgumentParser) -> None:
     install_group.add_to_parser(parser)
     parser.add_argument(
         "-d",
         "--dev",
         default=False,
         action="store_true",
         help="Remove packages from dev dependencies",
     )
     parser.add_argument(
         "-s", "--section", help="Specify the section the package belongs to"
     )
     parser.add_argument(
         "--no-sync",
         dest="sync",
         default=True,
         action="store_false",
         help="Only write pyproject.toml and do not uninstall packages",
     )
     parser.add_argument(
         "packages", nargs="+", help="Specify the packages to remove"
     )
예제 #9
0
파일: remove.py 프로젝트: danieleades/pdm
 def add_arguments(self, parser: argparse.ArgumentParser) -> None:
     install_group.add_to_parser(parser)
     dry_run_option.add_to_parser(parser)
     lockfile_option.add_to_parser(parser)
     parser.add_argument(
         "-d",
         "--dev",
         default=False,
         action="store_true",
         help="Remove packages from dev dependencies",
     )
     parser.add_argument(
         "-G", "--group", help="Specify the target dependency group to remove from"
     )
     parser.add_argument(
         "--no-sync",
         dest="sync",
         default=True,
         action="store_false",
         help="Only write pyproject.toml and do not uninstall packages",
     )
     parser.add_argument(
         "packages", nargs="+", help="Specify the packages to remove"
     )
예제 #10
0
 def add_arguments(self, parser: argparse.ArgumentParser) -> None:
     sections_group.add_to_parser(parser)
     dry_run_option.add_to_parser(parser)
     clean_group.add_to_parser(parser)
     install_group.add_to_parser(parser)