Marcel Telka
2024-04-02 39401b65920455ac06a257ad3bf2e03cade64a44
python/GitPython: update to 3.1.43

4 files modified
131 ■■■■ changed files
components/python/GitPython/Makefile 9 ●●●●● patch | view | raw | blame | history
components/python/GitPython/patches/01-test-requirements.patch 7 ●●●●● patch | view | raw | blame | history
components/python/GitPython/python-integrate-project.conf 3 ●●●●● patch | view | raw | blame | history
components/python/GitPython/test/results-all.master 112 ●●●● patch | view | raw | blame | history
components/python/GitPython/Makefile
@@ -19,13 +19,13 @@
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME =        GitPython
HUMAN_VERSION =            3.1.42
HUMAN_VERSION =            3.1.43
COMPONENT_SUMMARY =        GitPython - GitPython is a Python library used to interact with Git repositories
COMPONENT_PROJECT_URL =        https://github.com/gitpython-developers/GitPython
COMPONENT_ARCHIVE_URL =        \
    https://github.com/gitpython-developers/GitPython/archive/refs/tags/$(HUMAN_VERSION).tar.gz
COMPONENT_ARCHIVE_HASH =    \
    sha256:3efdd8a24dadbd1f8bce92959d474f87b376e46be179ecce6f09e5fc67bb57d6
    sha256:f87dfd8e0d0fce15690a5e84b92d3b02710161e116fda5d5f2324144b2cca23d
COMPONENT_LICENSE =        BSD-3-Clause
COMPONENT_LICENSE_FILE =    LICENSE
@@ -53,9 +53,6 @@
# Force no colors to override defaults in tox.ini
TOX_POSARGS += --color=no
# https://github.com/gitpython-developers/GitPython/issues/1797
PYTEST_ADDOPTS += --ignore test/test_index.py
# Manually added test dependencies
TEST_REQUIRED_PACKAGES += developer/versioning/git
@@ -64,7 +61,6 @@
PYTHON_REQUIRED_PACKAGES += library/python/setuptools
PYTHON_REQUIRED_PACKAGES += library/python/wheel
PYTHON_REQUIRED_PACKAGES += runtime/python
TEST_REQUIRED_PACKAGES.python += library/python/black
TEST_REQUIRED_PACKAGES.python += library/python/coverage
TEST_REQUIRED_PACKAGES.python += library/python/ddt
TEST_REQUIRED_PACKAGES.python += library/python/mypy
@@ -73,3 +69,4 @@
TEST_REQUIRED_PACKAGES.python += library/python/pytest-cov
TEST_REQUIRED_PACKAGES.python += library/python/pytest-mock
TEST_REQUIRED_PACKAGES.python += library/python/tomli
TEST_REQUIRED_PACKAGES.python += library/python/typing-extensions
components/python/GitPython/patches/01-test-requirements.patch
@@ -1,11 +1,12 @@
Not needed to run tests.
--- GitPython-3.1.42/test-requirements.txt.orig
+++ GitPython-3.1.42/test-requirements.txt
@@ -6,6 +6,4 @@
--- GitPython-3.1.43/test-requirements.txt.orig
+++ GitPython-3.1.43/test-requirements.txt
@@ -5,7 +5,5 @@
 pre-commit
 pytest >= 7.3.1
 pytest-cov
-pytest-instafail
 pytest-mock
-pytest-sugar
 typing-extensions ; python_version < "3.11"
components/python/GitPython/python-integrate-project.conf
@@ -42,8 +42,5 @@
# Force no colors to override defaults in tox.ini
TOX_POSARGS += --color=no
# https://github.com/gitpython-developers/GitPython/issues/1797
PYTEST_ADDOPTS += --ignore test/test_index.py
# Manually added test dependencies
TEST_REQUIRED_PACKAGES += developer/versioning/git
components/python/GitPython/test/results-all.master
@@ -6,8 +6,48 @@
rootdir: $(@D)
configfile: pyproject.toml
testpaths: test
collecting ... collected 578 items
collecting ... collected 664 items
test/deprecation/test_basic.py::test_commit_trailers_dict_does_not_warn PASSED
test/deprecation/test_basic.py::test_commit_trailers_list_does_not_warn PASSED
test/deprecation/test_basic.py::test_commit_trailers_warns PASSED
test/deprecation/test_basic.py::test_diff_renamed_file_does_not_warn PASSED
test/deprecation/test_basic.py::test_diff_renamed_warns PASSED
test/deprecation/test_basic.py::test_iterable_inheriting_warns PASSED
test/deprecation/test_basic.py::test_iterable_obj_inheriting_does_not_warn PASSED
test/deprecation/test_basic.py::test_traversable_list_traverse_override_does_not_warn PASSED
test/deprecation/test_basic.py::test_traverse_list_traverse_in_base_class_warns PASSED
test/deprecation/test_basic.py::test_traverse_traverse_in_base_class_warns PASSED
test/deprecation/test_basic.py::test_traverse_traverse_override_does_not_warn PASSED
test/deprecation/test_cmd_git.py::test_cannot_access_undefined_on_git_class PASSED
test/deprecation/test_cmd_git.py::test_class_dir PASSED
test/deprecation/test_cmd_git.py::test_execute_without_shell_arg_does_not_warn PASSED
test/deprecation/test_cmd_git.py::test_get_use_shell_on_class_default PASSED
test/deprecation/test_cmd_git.py::test_get_use_shell_on_instance_default PASSED
test/deprecation/test_cmd_git.py::test_instance_dir PASSED
test/deprecation/test_cmd_git.py::test_metaclass_alias PASSED
test/deprecation/test_cmd_git.py::test_use_shell_cannot_set_on_instance[False] PASSED
test/deprecation/test_cmd_git.py::test_use_shell_cannot_set_on_instance[True] PASSED
test/deprecation/test_cmd_git.py::test_use_shell_is_mock_patchable_on_class_as_object_attribute[False] PASSED
test/deprecation/test_cmd_git.py::test_use_shell_is_mock_patchable_on_class_as_object_attribute[True] PASSED
test/deprecation/test_cmd_git.py::test_use_shell_set_and_get_on_class PASSED
test/deprecation/test_cmd_git.py::test_use_shell_set_on_class_get_on_instance PASSED
test/deprecation/test_compat.py::test_cannot_access_undefined PASSED
test/deprecation/test_compat.py::test_dir PASSED
test/deprecation/test_compat.py::test_is_platform PASSED
test/deprecation/test_toplevel.py::test_alias_target_module_names_are_by_location PASSED
test/deprecation/test_toplevel.py::test_cannot_access_undefined PASSED
test/deprecation/test_toplevel.py::test_cannot_import_undefined PASSED
test/deprecation/test_toplevel.py::test_dir_contains_public_attributes PASSED
test/deprecation/test_toplevel.py::test_dir_does_not_contain_private_module_aliases PASSED
test/deprecation/test_toplevel.py::test_dir_does_not_contain_util PASSED
test/deprecation/test_toplevel.py::test_private_module_alias_access PASSED
test/deprecation/test_toplevel.py::test_private_module_alias_import PASSED
test/deprecation/test_toplevel.py::test_util_alias_access PASSED
test/deprecation/test_toplevel.py::test_util_alias_import PASSED
test/deprecation/test_types.py::test_can_access_lit_commit_ish_but_it_is_not_usable PASSED
test/deprecation/test_types.py::test_cannot_access_undefined PASSED
test/deprecation/test_types.py::test_dir PASSED
test/performance/test_commit.py::TestPerformance::test_commit_iteration PASSED
test/performance/test_commit.py::TestPerformance::test_commit_serialization PASSED
test/performance/test_commit.py::TestPerformance::test_commit_traversal PASSED
@@ -86,8 +126,10 @@
test/test_diff.py::TestDiff::test_diff_index_raw_format PASSED
test/test_diff.py::TestDiff::test_diff_initial_commit PASSED
test/test_diff.py::TestDiff::test_diff_interface PASSED
test/test_diff.py::TestDiff::test_diff_interface_stability PASSED
test/test_diff.py::TestDiff::test_diff_of_modified_files_not_added_to_the_index PASSED
test/test_diff.py::TestDiff::test_diff_patch_format PASSED
test/test_diff.py::TestDiff::test_diff_patch_with_external_engine PASSED
test/test_diff.py::TestDiff::test_diff_submodule PASSED
test/test_diff.py::TestDiff::test_diff_unsafe_paths PASSED
test/test_diff.py::TestDiff::test_diff_with_change_in_type PASSED
@@ -274,6 +316,8 @@
test/test_git.py::TestGit::test_env_vars_passed_to_git PASSED
test/test_git.py::TestGit::test_environment PASSED
test/test_git.py::TestGit::test_execute_kwargs_set_agrees_with_method PASSED
test/test_git.py::TestGit::test_failed_refresh_with_arg_does_not_invalidate_cached_version_info PASSED
test/test_git.py::TestGit::test_failed_refresh_with_env_does_not_invalidate_cached_version_info PASSED
test/test_git.py::TestGit::test_git_exc_name_is_git PASSED
test/test_git.py::TestGit::test_handle_process_output PASSED
test/test_git.py::TestGit::test_initial_refresh_from_bad_git_path_env_error_1___2___ PASSED
@@ -338,7 +382,48 @@
test/test_git.py::TestGit::test_refresh_with_good_absolute_git_path_arg PASSED
test/test_git.py::TestGit::test_refresh_with_good_relative_git_path_arg PASSED
test/test_git.py::TestGit::test_single_char_git_options_are_passed_to_git PASSED
test/test_git.py::TestGit::test_version PASSED
test/test_git.py::TestGit::test_successful_default_refresh_invalidates_cached_version_info PASSED
test/test_git.py::TestGit::test_successful_refresh_with_arg_invalidates_cached_version_info PASSED
test/test_git.py::TestGit::test_successful_refresh_with_env_invalidates_cached_version_info PASSED
test/test_git.py::TestGit::test_successful_refresh_with_same_arg_invalidates_cached_version_info PASSED
test/test_git.py::TestGit::test_successful_refresh_with_same_env_invalidates_cached_version_info PASSED
test/test_git.py::TestGit::test_version_info PASSED
test/test_git.py::TestGit::test_version_info_cache_is_not_pickled PASSED
test/test_git.py::TestGit::test_version_info_cache_is_per_instance PASSED
test/test_git.py::TestGit::test_version_info_is_cached PASSED
test/test_git.py::TestGit::test_version_info_is_leading_numbers_1____123____456____789_____123__456__789__ PASSED
test/test_git.py::TestGit::test_version_info_is_leading_numbers_2____12____34____56____78_____12__34__56__78__ PASSED
test/test_git.py::TestGit::test_version_info_is_leading_numbers_3____12____34____56____78____90_____12__34__56__78__ PASSED
test/test_git.py::TestGit::test_version_info_is_leading_numbers_4____1____2____a____3_____1__2__ PASSED
test/test_git.py::TestGit::test_version_info_is_leading_numbers_5____1_____2____3_____1___ PASSED
test/test_git.py::TestGit::test_version_info_is_leading_numbers_6____1____2a____3_____1___ PASSED
test/test_git.py::TestGit::test_version_info_pickleable PASSED
test/test_imports.py::test_git_index_util_attribute_is_git_index_util PASSED
test/test_imports.py::test_git_util_attribute_is_git_index_util PASSED
test/test_imports.py::test_separate_git_util_module_exists PASSED
test/test_index.py::TestIndex::test__to_relative_path_at_root PASSED
test/test_index.py::TestIndex::test_add_a_file_with_wildcard_chars PASSED
test/test_index.py::TestIndex::test_add_utf8P_path PASSED
test/test_index.py::TestIndex::test_commit_msg_hook_fail PASSED
test/test_index.py::TestIndex::test_commit_msg_hook_success PASSED
test/test_index.py::TestIndex::test_compare_write_tree PASSED
test/test_index.py::TestIndex::test_hook_uses_shell_not_from_cwd_1__False__ PASSED
test/test_index.py::TestIndex::test_hook_uses_shell_not_from_cwd_2__True__ PASSED
test/test_index.py::TestIndex::test_index_add_pathlike PASSED
test/test_index.py::TestIndex::test_index_bare_add PASSED
test/test_index.py::TestIndex::test_index_file_base PASSED
test/test_index.py::TestIndex::test_index_file_diffing PASSED
test/test_index.py::TestIndex::test_index_file_from_tree PASSED
test/test_index.py::TestIndex::test_index_lock_handling PASSED
test/test_index.py::TestIndex::test_index_merge_tree PASSED
test/test_index.py::TestIndex::test_index_mutation PASSED
test/test_index.py::TestIndex::test_index_new PASSED
test/test_index.py::TestIndex::test_index_single_addremove PASSED
test/test_index.py::TestIndex::test_pre_commit_hook_fail PASSED
test/test_index.py::TestIndex::test_pre_commit_hook_success PASSED
test/test_index.py::TestIndex::test_run_commit_hook PASSED
test/test_index.py::TestIndexUtils::test_temporary_file_swap[Path] PASSED
test/test_index.py::TestIndexUtils::test_temporary_file_swap[str] PASSED
test/test_installation.py::TestInstallation::test_installation PASSED
test/test_quick_doc.py::QuickDoc::test_cloned_repo_object PASSED
test/test_quick_doc.py::QuickDoc::test_init_repo_object PASSED
@@ -368,6 +453,7 @@
test/test_remote.py::TestRemote::test_creation_and_removal PASSED
test/test_remote.py::TestRemote::test_fetch_error PASSED
test/test_remote.py::TestRemote::test_fetch_info PASSED
test/test_remote.py::TestRemote::test_fetch_unsafe_branch_name PASSED
test/test_remote.py::TestRemote::test_fetch_unsafe_options PASSED
test/test_remote.py::TestRemote::test_fetch_unsafe_options_allowed PASSED
test/test_remote.py::TestRemote::test_fetch_unsafe_url PASSED
@@ -588,27 +674,9 @@
test/test_util.py::TestUtils::test_utctz_to_altz PASSED
================================== XFAILURES ===================================
___________________________ TestSubmodule.test_depth ___________________________
self = <test.test_submodule.TestSubmodule testMethod=test_depth>
rwdir = '/tmp/test_deptheemc93mk'
    @pytest.mark.xfail(
        reason="for some unknown reason the assertion fails, even though it in fact is working in more common setup",
        raises=AssertionError,
    )
    @with_rw_directory
    def test_depth(self, rwdir):
        parent = git.Repo.init(osp.join(rwdir, "test_depth"))
        sm_name = "mymodules/myname"
        sm_depth = 1
        sm = parent.create_submodule(sm_name, sm_name, url=self._small_repo_url(), depth=sm_depth)
>       self.assertEqual(len(list(sm.module().iter_commits())), sm_depth)
E       AssertionError: 211 != 1
test/test_submodule.py:1078: AssertionError
$(PYTHON_DIR)/unittest/case.py:830: AssertionError: 211 != 1
=========================== short test summary info ============================
======== 504 passed, 73 skipped, 1 xfailed, 2 warnings ========
======== 590 passed, 73 skipped, 1 xfailed, 3 warnings ========
  py$(PYV): OK
  congratulations :)