# The code uses the defined-or operator (//); 5.010 is also what IO::K8s asks.
requires 'perl', '5.010';

requires 'LWP::UserAgent';
requires 'LWP::Protocol::https';
requires 'IO::Socket::SSL';
requires 'IO::K8s', '1.113';
# protect_argv, which Kubernetes::REST::CLI::Watch passes on import, first
# appeared in 4.000.
requires 'MooX::Options', '4.000';
requires 'Moo';
requires 'MooX::Cmd';
requires 'Types::Standard';
requires 'JSON::MaybeXS';
# Kubernetes::REST::Kubeconfig reads kubeconfig files with it and the CLI
# writes --output yaml with it. 0.026 added duplicate_keys, which the
# kubeconfig reader passes so a repeated key keeps loading as its last value;
# 0.023, IO::K8s's minimum, dies on that option.
requires 'YAML::PP', '0.026';
requires 'Path::Tiny';
requires 'Module::Runtime';
requires 'namespace::clean';
requires 'Throwable';

# Kubernetes::REST::HTTPTinyIO, the backend without the LWP tree. From 0.055 on
# HTTP::Tiny dies when a custom CA file is missing or unreadable; before, it
# fell back to the system bundle, so a mistyped ssl_ca_file went unnoticed.
# 0.056 is the first release checked in its source; core since perl 5.24.
recommends 'HTTP::Tiny', '0.056';
# Debug helper named in the POD of Kubernetes::REST::LWPIO, never loaded.
suggests 'LWP::ConsoleLogger';

on test => sub {
  # subtest without a plan of its own (perl 5.10 ships 0.72)
  requires 'Test::More', '0.98';
  requires 'Test::Exception';
};
