Marcel Telka
2024-03-20 91eadeb666137fe4c25ef8c61012a45b57ce6add
python/cliff: update to 4.6.0

3 files added
2 files modified
277 ■■■■■ changed files
components/python/cliff/Makefile 10 ●●●● patch | view | raw | blame | history
components/python/cliff/patches/01-test-reqs.patch 11 ●●●●● patch | view | raw | blame | history
components/python/cliff/patches/02-no-slowest.patch 12 ●●●●● patch | view | raw | blame | history
components/python/cliff/python-integrate-project.conf 6 ●●●●● patch | view | raw | blame | history
components/python/cliff/test/results-all.master 238 ●●●●● patch | view | raw | blame | history
components/python/cliff/Makefile
@@ -19,13 +19,11 @@
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME =        cliff
HUMAN_VERSION =            4.5.0
HUMAN_VERSION =            4.6.0
COMPONENT_SUMMARY =        cliff - Command Line Interface Formulation Framework
COMPONENT_PROJECT_URL =        https://docs.openstack.org/cliff/latest/
COMPONENT_ARCHIVE_URL =        \
    https://files.pythonhosted.org/packages/7f/a3/f4b583e5639cf778cf7f6f915532729b1cf10175f09344dbda115c08c2ea/cliff-4.5.0.tar.gz
COMPONENT_ARCHIVE_HASH =    \
    sha256:61beeac238530beb3ae19eefb421b8b290b97dcc9efee01fc32fe62fb75a31d9
    sha256:2f38ce8bd1ea4958d66f15b066ac47e65d61f600b9319b921e12e9e9cbcd99d0
COMPONENT_LICENSE =        Apache-2.0
COMPONENT_LICENSE_FILE =    LICENSE
@@ -42,6 +40,9 @@
include $(WS_MAKE_RULES)/common.mk
# Ignore stdout and stderr of successfull tests
TOX_POSARGS += --suppress-attachments
# Auto-generated dependencies
PYTHON_REQUIRED_PACKAGES += library/python/autopage
PYTHON_REQUIRED_PACKAGES += library/python/cmd2
@@ -51,7 +52,6 @@
PYTHON_REQUIRED_PACKAGES += library/python/stevedore
PYTHON_REQUIRED_PACKAGES += runtime/python
TEST_REQUIRED_PACKAGES.python += library/python/autopage
TEST_REQUIRED_PACKAGES.python += library/python/bandit
TEST_REQUIRED_PACKAGES.python += library/python/cmd2
TEST_REQUIRED_PACKAGES.python += library/python/coverage
TEST_REQUIRED_PACKAGES.python += library/python/importlib-metadata
components/python/cliff/patches/01-test-reqs.patch
New file
@@ -0,0 +1,11 @@
Bandit is not needed to run tests.
--- cliff-4.6.0/test-requirements.txt.orig
+++ cliff-4.6.0/test-requirements.txt
@@ -7,6 +7,3 @@
 # sphinx is required in test-requirements in addition to doc/requirements
 # because there is a sphinx extension that has tests
 sphinx>=2.0.0,!=2.1.0 # BSD
-
-# Bandit security code scanner
-bandit>=1.1.0 # Apache-2.0
components/python/cliff/patches/02-no-slowest.patch
New file
@@ -0,0 +1,12 @@
We are not interested in list of slowest test.
--- cliff-4.6.0/tox.ini.orig
+++ cliff-4.6.0/tox.ini
@@ -13,7 +13,6 @@
 distribute = False
 commands =
   stestr run {posargs}
-  stestr slowest
 deps =
   -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
   -r{toxinidir}/test-requirements.txt
components/python/cliff/python-integrate-project.conf
@@ -13,6 +13,9 @@
# Copyright 2023 Marcel Telka
#
%patch% 01-test-reqs.patch
%patch% 02-no-slowest.patch
%include-2%
#
# Following dependency loops were detected (where 'A --> B' means 'A needs B to
@@ -24,3 +27,6 @@
# a case the required projects are not available yet (bootstrap).
#
PYTHON_TEST_BOOTSTRAP = yes
%include-3%
# Ignore stdout and stderr of successfull tests
TOX_POSARGS += --suppress-attachments
components/python/cliff/test/results-all.master
New file
@@ -0,0 +1,238 @@
py$(PYV): remove tox env folder $(@D)/.tox/py$(PYV)
py$(PYV): commands[0]> stestr run --suppress-attachments
cliff.tests.test__argparse.TestArgparse.test_argument_parser ... ok
cliff.tests.test__argparse.TestArgparse.test_argument_parser_add_group ... ok
cliff.tests.test__argparse.TestArgparse.test_argument_parser_add_mutually_exclusive_group ... ok
cliff.tests.test__argparse.TestArgparse.test_argument_parser_add_mx_nested_group ... ok
cliff.tests.test__argparse.TestArgparse.test_argument_parser_add_mx_nested_mutually_exclusive_group ... ok
cliff.tests.test__argparse.TestArgparse.test_argument_parser_add_nested_group ... ok
cliff.tests.test__argparse.TestArgparse.test_argument_parser_add_nested_mutually_exclusive_group ... ok
cliff.tests.test_app.TestCommandLookup.test_fuzzy_common_prefix ... ok
cliff.tests.test_app.TestCommandLookup.test_fuzzy_no_commands ... ok
cliff.tests.test_app.TestCommandLookup.test_fuzzy_no_prefix ... ok
cliff.tests.test_app.TestCommandLookup.test_fuzzy_same_distance ... ok
cliff.tests.test_app.TestCommandLookup.test_list_matching_commands ... ok
cliff.tests.test_app.TestCommandLookup.test_unknown_cmd ... ok
cliff.tests.test_app.TestCommandLookup.test_unknown_cmd_debug ... ok
cliff.tests.test_app.TestHelpHandling.test_deferred_help ... ok
cliff.tests.test_app.TestHelpHandling.test_help ... ok
cliff.tests.test_app.TestHelpHandling.test_interrupted_deferred_help ... ok
cliff.tests.test_app.TestHelpHandling.test_interrupted_help ... ok
cliff.tests.test_app.TestHelpHandling.test_pipeclose_deferred_help ... ok
cliff.tests.test_app.TestHelpHandling.test_pipeclose_help ... ok
cliff.tests.test_app.TestHelpHandling.test_subcommand_deferred_help ... ok
cliff.tests.test_app.TestHelpHandling.test_subcommand_help ... ok
cliff.tests.test_app.TestIO.test_io_streams ... ok
cliff.tests.test_app.TestIO.test_writer_encoding ... ok
cliff.tests.test_app.TestInitAndCleanup.test_clean_up_error ... ok
cliff.tests.test_app.TestInitAndCleanup.test_clean_up_error_debug ... ok
cliff.tests.test_app.TestInitAndCleanup.test_clean_up_interrupt ... ok
cliff.tests.test_app.TestInitAndCleanup.test_clean_up_pipeclose ... ok
cliff.tests.test_app.TestInitAndCleanup.test_clean_up_success ... ok
cliff.tests.test_app.TestInitAndCleanup.test_error_handling_clean_up_raises_exception ... ok
cliff.tests.test_app.TestInitAndCleanup.test_error_handling_clean_up_raises_exception_debug ... ok
cliff.tests.test_app.TestInitAndCleanup.test_initialize_app ... ok
cliff.tests.test_app.TestInitAndCleanup.test_interrupt_command ... ok
cliff.tests.test_app.TestInitAndCleanup.test_normal_clean_up_raises_exception ... ok
cliff.tests.test_app.TestInitAndCleanup.test_normal_clean_up_raises_exception_debug ... ok
cliff.tests.test_app.TestInitAndCleanup.test_pipeclose_command ... ok
cliff.tests.test_app.TestInitAndCleanup.test_prepare_to_run_command ... ok
cliff.tests.test_app.TestInteractiveMode.test_interactive_mode_cmdloop ... ok
cliff.tests.test_app.TestInteractiveMode.test_interactive_mode_cmdloop_error ... ok
cliff.tests.test_app.TestInteractiveMode.test_no_args_triggers_interactive_mode ... ok
cliff.tests.test_app.TestOptionParser.test_conflicting_option_custom_arguments_should_not_throw ... ok
cliff.tests.test_app.TestOptionParser.test_conflicting_option_should_throw ... ok
cliff.tests.test_app.TestOptionParser.test_option_parser_abbrev_issue ... ok
cliff.tests.test_app.TestVerboseMode.test_verbose ... ok
cliff.tests.test_columns.TestColumns.test_human_readable ... ok
cliff.tests.test_columns.TestColumns.test_machine_readable ... ok
cliff.tests.test_columns.TestColumns.test_repr ... ok
cliff.tests.test_columns.TestColumns.test_sorting ... ok
cliff.tests.test_columns.TestColumns.test_str ... ok
cliff.tests.test_command.TestArgumentParser.test_option_name_collision ... ok
cliff.tests.test_command.TestArgumentParser.test_option_name_collision_with_alias ... ok
cliff.tests.test_command.TestArgumentParser.test_raise_conflict_argument_error ... ok
cliff.tests.test_command.TestArgumentParser.test_resolve_conflict_argument ... ok
cliff.tests.test_command.TestArgumentParser.test_resolve_option_with_name_collision ... ok
cliff.tests.test_command.TestArgumentParser.test_with_conflict_handler ... ok
cliff.tests.test_command.TestArgumentParser.test_wrong_conflict_handler ... ok
cliff.tests.test_command.TestBasicValues.test_get_name ... ok
cliff.tests.test_command.TestBasicValues.test_get_parser ... ok
cliff.tests.test_command.TestBasicValues.test_run_return ... ok
cliff.tests.test_command.TestDescription.test_get_description_attribute ... ok
cliff.tests.test_command.TestDescription.test_get_description_default ... ok
cliff.tests.test_command.TestDescription.test_get_description_docstring ... ok
cliff.tests.test_command.TestHelp.test_smart_help_formatter ... ok
cliff.tests.test_command_hooks.TestChangeHooks.test_after ... ok
cliff.tests.test_command_hooks.TestChangeHooks.test_before ... ok
cliff.tests.test_command_hooks.TestChangeHooks.test_get_epilog ... ok
cliff.tests.test_command_hooks.TestChangeHooks.test_get_parser ... ok
cliff.tests.test_command_hooks.TestCommandLoadHooks.test_app_and_name ... ok
cliff.tests.test_command_hooks.TestCommandLoadHooks.test_no_app_or_name ... ok
cliff.tests.test_command_hooks.TestHooks.test_after ... ok
cliff.tests.test_command_hooks.TestHooks.test_before ... ok
cliff.tests.test_command_hooks.TestHooks.test_get_epilog ... ok
cliff.tests.test_command_hooks.TestHooks.test_get_parser ... ok
cliff.tests.test_command_hooks.TestListerChangeHooks.test_after ... ok
cliff.tests.test_command_hooks.TestListerChangeHooks.test_before ... ok
cliff.tests.test_command_hooks.TestListerChangeHooks.test_get_epilog ... ok
cliff.tests.test_command_hooks.TestListerChangeHooks.test_get_parser ... ok
cliff.tests.test_command_hooks.TestListerHooks.test_after ... ok
cliff.tests.test_command_hooks.TestListerHooks.test_before ... ok
cliff.tests.test_command_hooks.TestListerHooks.test_get_epilog ... ok
cliff.tests.test_command_hooks.TestListerHooks.test_get_parser ... ok
cliff.tests.test_command_hooks.TestShowOneChangeHooks.test_after ... ok
cliff.tests.test_command_hooks.TestShowOneChangeHooks.test_before ... ok
cliff.tests.test_command_hooks.TestShowOneChangeHooks.test_get_epilog ... ok
cliff.tests.test_command_hooks.TestShowOneChangeHooks.test_get_parser ... ok
cliff.tests.test_command_hooks.TestShowOneHooks.test_after ... ok
cliff.tests.test_command_hooks.TestShowOneHooks.test_before ... ok
cliff.tests.test_command_hooks.TestShowOneHooks.test_get_epilog ... ok
cliff.tests.test_command_hooks.TestShowOneHooks.test_get_parser ... ok
cliff.tests.test_commandmanager.TestCommandManagerGroups.test_add_command_group ... ok
cliff.tests.test_commandmanager.TestCommandManagerGroups.test_get_command_groups ... ok
cliff.tests.test_commandmanager.TestCommandManagerGroups.test_get_command_names ... ok
cliff.tests.test_commandmanager.TestDynamicCommands.test_add ... ok
cliff.tests.test_commandmanager.TestDynamicCommands.test_intersected_commands ... ok
cliff.tests.test_commandmanager.TestFindInvalidCommand.test(no-command-given) ... ok
cliff.tests.test_commandmanager.TestFindInvalidCommand.test(no-such-command) ... ok
cliff.tests.test_commandmanager.TestFindUnknownCommand.test ... ok
cliff.tests.test_commandmanager.TestGetByPartialName.test_multiple_candidates ... ok
cliff.tests.test_commandmanager.TestGetByPartialName.test_no_candidates ... ok
cliff.tests.test_commandmanager.TestGetByPartialName.test_one_candidate ... ok
cliff.tests.test_commandmanager.TestLegacyCommand.test_find_legacy ... ok
cliff.tests.test_commandmanager.TestLegacyCommand.test_legacy_overrides_new ... ok
cliff.tests.test_commandmanager.TestLegacyCommand.test_no_command ... ok
cliff.tests.test_commandmanager.TestLegacyCommand.test_no_legacy ... ok
cliff.tests.test_commandmanager.TestLoad.test_load_commands ... ok
cliff.tests.test_commandmanager.TestLoad.test_load_commands_keep_underscores ... ok
cliff.tests.test_commandmanager.TestLoad.test_load_commands_replace_underscores ... ok
cliff.tests.test_commandmanager.TestLookupAndFind.test(one-word) ... ok
cliff.tests.test_commandmanager.TestLookupAndFind.test(three-words) ... ok
cliff.tests.test_commandmanager.TestLookupAndFind.test(two-words) ... ok
cliff.tests.test_commandmanager.TestLookupAndFindPartialName.test(one-word) ... ok
cliff.tests.test_commandmanager.TestLookupAndFindPartialName.test(three-words) ... ok
cliff.tests.test_commandmanager.TestLookupAndFindPartialName.test(two-words) ... ok
cliff.tests.test_commandmanager.TestLookupWithRemainder.test(one) ... ok
cliff.tests.test_commandmanager.TestLookupWithRemainder.test(three) ... ok
cliff.tests.test_commandmanager.TestLookupWithRemainder.test(two) ... ok
cliff.tests.test_complete.TestCompletion.test_complete_dictionary_subcmd ... ok
cliff.tests.test_complete.TestCompletion.test_dictionary ... ok
cliff.tests.test_complete.TestCompletionAction.test_complete_command_get_actions ... ok
cliff.tests.test_complete.TestCompletionAction.test_complete_command_get_actions_interactive ... ok
cliff.tests.test_complete.TestCompletionAction.test_complete_command_remove_dashes ... ok
cliff.tests.test_complete.TestCompletionAction.test_complete_command_take_action ... ok
cliff.tests.test_complete.TestCompletionAlternatives.test_complete_bash ... ok
cliff.tests.test_complete.TestCompletionAlternatives.test_complete_command_parser ... ok
cliff.tests.test_complete.TestCompletionAlternatives.test_complete_no_code ... ok
cliff.tests.test_formatters_csv.TestCSVFormatter.test_commaseparated_list_formatter ... ok
cliff.tests.test_formatters_csv.TestCSVFormatter.test_commaseparated_list_formatter_formattable_column ... ok
cliff.tests.test_formatters_csv.TestCSVFormatter.test_commaseparated_list_formatter_quoted ... ok
cliff.tests.test_formatters_csv.TestCSVFormatter.test_commaseparated_list_formatter_unicode ... ok
cliff.tests.test_formatters_json.TestJSONFormatter.test_formattablecolumn_list ... ok
cliff.tests.test_formatters_json.TestJSONFormatter.test_formattablecolumn_one ... ok
cliff.tests.test_formatters_json.TestJSONFormatter.test_list ... ok
cliff.tests.test_formatters_json.TestJSONFormatter.test_one ... ok
cliff.tests.test_formatters_shell.TestShellFormatter.test ... ok
cliff.tests.test_formatters_shell.TestShellFormatter.test_args ... ok
cliff.tests.test_formatters_shell.TestShellFormatter.test_formattable_column ... ok
cliff.tests.test_formatters_shell.TestShellFormatter.test_non_bash_friendly_values ... ok
cliff.tests.test_formatters_shell.TestShellFormatter.test_non_string_values ... ok
cliff.tests.test_formatters_table.TestFieldWidths.test ... ok
cliff.tests.test_formatters_table.TestFieldWidths.test_info ... ok
cliff.tests.test_formatters_table.TestFieldWidths.test_zero ... ok
cliff.tests.test_formatters_table.TestListFormatter.test_empty ... ok
cliff.tests.test_formatters_table.TestListFormatter.test_empty_table ... ok
cliff.tests.test_formatters_table.TestListFormatter.test_env_maxwidth_args_big ... ok
cliff.tests.test_formatters_table.TestListFormatter.test_env_maxwidth_args_tiny ... ok
cliff.tests.test_formatters_table.TestListFormatter.test_env_maxwidth_noresize ... ok
cliff.tests.test_formatters_table.TestListFormatter.test_env_maxwidth_resize_all ... ok
cliff.tests.test_formatters_table.TestListFormatter.test_env_maxwidth_resize_all_tiny ... ok
cliff.tests.test_formatters_table.TestListFormatter.test_env_maxwidth_resize_one ... ok
cliff.tests.test_formatters_table.TestListFormatter.test_env_maxwidth_resize_two ... ok
cliff.tests.test_formatters_table.TestListFormatter.test_formattable_column ... ok
cliff.tests.test_formatters_table.TestListFormatter.test_max_width_10 ... ok
cliff.tests.test_formatters_table.TestListFormatter.test_max_width_40 ... ok
cliff.tests.test_formatters_table.TestListFormatter.test_max_width_45 ... ok
cliff.tests.test_formatters_table.TestListFormatter.test_max_width_50 ... ok
cliff.tests.test_formatters_table.TestListFormatter.test_max_width_80 ... ok
cliff.tests.test_formatters_table.TestListFormatter.test_max_width_and_envvar_max ... ok
cliff.tests.test_formatters_table.TestListFormatter.test_max_width_and_envvar_mid ... ok
cliff.tests.test_formatters_table.TestListFormatter.test_table_formatter_formattable_column ... ok
cliff.tests.test_formatters_table.TestListFormatter.test_table_list_formatter ... ok
cliff.tests.test_formatters_table.TestMaxWidth.test_10 ... ok
cliff.tests.test_formatters_table.TestMaxWidth.test_50 ... ok
cliff.tests.test_formatters_table.TestMaxWidth.test_70 ... ok
cliff.tests.test_formatters_table.TestMaxWidth.test_80 ... ok
cliff.tests.test_formatters_table.TestTableFormatter.test ... ok
cliff.tests.test_formatters_table.TestTerminalWidth.test_table_formatter_cli_param ... ok
cliff.tests.test_formatters_table.TestTerminalWidth.test_table_formatter_cli_param_envvar_big ... ok
cliff.tests.test_formatters_table.TestTerminalWidth.test_table_formatter_cli_param_envvar_tiny ... ok
cliff.tests.test_formatters_table.TestTerminalWidth.test_table_formatter_cli_param_unlimited_tw ... ok
cliff.tests.test_formatters_table.TestTerminalWidth.test_table_formatter_no_cli_param ... ok
cliff.tests.test_formatters_table.TestTerminalWidth.test_table_formatter_no_cli_param_unlimited_tw ... ok
cliff.tests.test_formatters_value.TestValueFormatter.test ... ok
cliff.tests.test_formatters_value.TestValueFormatter.test_formattable_column ... ok
cliff.tests.test_formatters_value.TestValueFormatter.test_list_formatter ... ok
cliff.tests.test_formatters_value.TestValueFormatter.test_list_formatter_formattable_column ... ok
cliff.tests.test_formatters_yaml.TestYAMLFormatter.test_format_one ... ok
cliff.tests.test_formatters_yaml.TestYAMLFormatter.test_formattablecolumn_list ... ok
cliff.tests.test_formatters_yaml.TestYAMLFormatter.test_formattablecolumn_one ... ok
cliff.tests.test_formatters_yaml.TestYAMLFormatter.test_list ... ok
cliff.tests.test_formatters_yaml.TestYAMLFormatter.test_list_custom_object ... ok
cliff.tests.test_formatters_yaml.TestYAMLFormatter.test_one_custom_object ... ok
cliff.tests.test_help.TestHelp.test_list_deprecated_commands ... ok
cliff.tests.test_help.TestHelp.test_list_matching_commands ... ok
cliff.tests.test_help.TestHelp.test_list_matching_commands_no_match ... ok
cliff.tests.test_help.TestHelp.test_show_help_for_command ... ok
cliff.tests.test_help.TestHelp.test_show_help_for_help ... ok
cliff.tests.test_help.TestHelp.test_show_help_print_exc_with_ep_load_fail ... ok
cliff.tests.test_help.TestHelp.test_show_help_with_ep_load_fail ... ok
cliff.tests.test_interactive.TestInteractive.test_both_completenames ... ok
cliff.tests.test_interactive.TestInteractive.test_cliff_completenames ... ok
cliff.tests.test_interactive.TestInteractive.test_cmd2_completenames ... ok
cliff.tests.test_interactive.TestInteractive.test_empty_text_completedefault ... ok
cliff.tests.test_interactive.TestInteractive.test_errexit ... ok
cliff.tests.test_interactive.TestInteractive.test_long_completedefault ... ok
cliff.tests.test_interactive.TestInteractive.test_no_completedefault ... ok
cliff.tests.test_interactive.TestInteractive.test_no_completenames ... ok
cliff.tests.test_interactive.TestInteractive.test_no_errexit ... ok
cliff.tests.test_interactive.TestInteractive.test_nonempty_text_completedefault2 ... ok
cliff.tests.test_lister.TestLister.test_formatter_args ... ok
cliff.tests.test_lister.TestLister.test_no_exist_column ... ok
cliff.tests.test_lister.TestLister.test_sort_by_column_cliff_side_procedure ... ok
cliff.tests.test_lister.TestLister.test_sort_by_column_data_already_sorted ... ok
cliff.tests.test_lister.TestLister.test_sort_by_column_reverse_order ... ok
cliff.tests.test_lister.TestLister.test_sort_by_column_with_different_types ... ok
cliff.tests.test_lister.TestLister.test_sort_by_column_with_null ... ok
cliff.tests.test_lister.TestLister.test_sort_by_non_displayed_column ... ok
cliff.tests.test_lister.TestLister.test_sort_by_non_existing_column ... ok
cliff.tests.test_show.TestShow.test_dict2columns ... ok
cliff.tests.test_show.TestShow.test_formatter_args ... ok
cliff.tests.test_show.TestShow.test_no_exist_column ... ok
cliff.tests.test_sphinxext.TestSphinxExtension.test_description_epilog ... ok
cliff.tests.test_sphinxext.TestSphinxExtension.test_empty_help ... ok
cliff.tests.test_sphinxext.TestSphinxExtension.test_flag ... ok
cliff.tests.test_sphinxext.TestSphinxExtension.test_metavar ... ok
cliff.tests.test_sphinxext.TestSphinxExtension.test_multiple_opts ... ok
cliff.tests.test_sphinxext.TestSphinxExtension.test_nonempty_help ... ok
cliff.tests.test_sphinxext.TestSphinxExtension.test_supressed ... ok
cliff.tests.test_sphinxext.TestSphinxExtension.test_various_option_names_with_hyphen ... ok
cliff.tests.test_utils.TestTerminalWidth.test ... ok
cliff.tests.test_utils.TestTerminalWidth.test_get_terminal_size ... ok
======
Totals
======
Ran: 220 tests
 - Passed: 220
 - Skipped: 0
 - Expected Fail: 0
 - Unexpected Success: 0
 - Failed: 0
==============
Worker Balance
==============
  py$(PYV): OK
  congratulations :)