From 5d6770295078997d955e1235450d484942094dc7 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Thu, 30 Nov 2023 20:48:13 -0700 Subject: [PATCH 01/32] Update to 23.10 - Use vendor_conf.d for fish --- conda-cpuinfo.patch | 13 ------------ conda.spec | 48 +++++++++++++++++++++++++++++++++++++-------- sources | 2 +- 3 files changed, 41 insertions(+), 22 deletions(-) diff --git a/conda-cpuinfo.patch b/conda-cpuinfo.patch index d395727..682f08b 100644 --- a/conda-cpuinfo.patch +++ b/conda-cpuinfo.patch @@ -11,16 +11,3 @@ index dbeac32..8b78e69 100644 return frozendict(get_cpu_info()) -diff --git a/tests/core/test_solve.py b/tests/core/test_solve.py -index efb839a..71812ca 100644 ---- a/tests/core/test_solve.py -+++ b/tests/core/test_solve.py -@@ -8,7 +8,7 @@ from unittest.mock import Mock - - import pytest - --from conda._vendor.cpuinfo import get_cpu_info -+from cpuinfo import get_cpu_info - from conda.auxlib.ish import dals - from conda.base.context import conda_tests_ctxt_mgmt_def_pol, context - from conda.common.compat import on_linux diff --git a/conda.spec b/conda.spec index 2b43e36..9c0d852 100644 --- a/conda.spec +++ b/conda.spec @@ -1,7 +1,7 @@ %bcond_without tests Name: conda -Version: 23.9.0 +Version: 23.10.0 Release: %autorelease Summary: Cross-platform, Python-agnostic binary package manager @@ -20,7 +20,7 @@ Patch1: 0001-Use-main-entry-point-for-conda-and-re-add-conda-env-.patch Patch3: conda-cpuinfo.patch # Fix tests on 32bit # https://github.com/conda/conda/pull/9759 -Patch4: conda-32bit.patch +#Patch4: conda-32bit.patch Patch10004: 0004-Do-not-try-to-run-usr-bin-python.patch Patch10005: 0005-Fix-failing-tests-in-test_api.py.patch @@ -158,9 +158,9 @@ sed -r -i -e '1i [ -z "$CONDA_EXE" ] && CONDA_EXE=%{_bindir}/conda' \ -e '/PATH=.*condabin/s|PATH=|[ -d $(dirname "$CONDA_EXE")/condabin ] \&\& PATH=|' %{buildroot}/etc/profile.d/conda.sh sed -r -i -e '1i set _CONDA_EXE=%{_bindir}/conda\nset _CONDA_ROOT=' \ -e 's/CONDA_PFX=.*/CONDA_PFX=/' %{buildroot}/etc/profile.d/conda.csh -install -m 0644 -Dt %{buildroot}/etc/fish/conf.d/ conda/shell/etc/fish/conf.d/conda.fish +install -m 0644 -Dt %{buildroot}%{_datadir}/fish/vendor_conf.d/ conda/shell/etc/fish/conf.d/conda.fish sed -r -i -e '1i set -gx CONDA_EXE "/usr/bin/conda"\nset _CONDA_ROOT "/usr"\nset _CONDA_EXE "/usr/bin/conda"\nset -gx CONDA_PYTHON_EXE "/usr/bin/python3"' \ - %{buildroot}/etc/fish/conf.d/conda.fish + %{buildroot}%{_datadir}/fish/vendor_conf.d/conda.fish # Install bash completion script install -m 0644 -Dt %{buildroot}%{bash_completionsdir}/ %SOURCE1 @@ -193,6 +193,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} conda info # tests/test_misc.py::test_explicit_missing_cache_entries requires network access # tests/core/test_initialize.py tries to unlink /usr/bin/python3 and fails when python is a release candidate # tests/core/test_solve.py::test_cuda_fail_1 fails on non-x86_64 +# tests/core/test_solve.py libmamba - some depsolving differences - TODO +# tests/core/test_solve.py libmamba - some depsolving differences - TODO +# tests/core/test_prefix_graph.py libmamba - some depsolving differences - TODO # tests/trust/test_signature_verification.py requires conda_content_trust - not yet packaged py.test-%{python3_version} -vv -m "not integration" \ --deselect=tests/test_cli.py::TestJson::test_list \ @@ -231,7 +234,37 @@ py.test-%{python3_version} -vv -m "not integration" \ --deselect=tests/core/test_subdir_data.py::test_use_only_tar_bz2 \ --deselect=tests/core/test_initialize.py \ --deselect=tests/core/test_solve.py::test_cuda_fail_1 \ + --deselect=tests/core/test_solve.py::test_conda_downgrade[libmamba] \ + --deselect=tests/core/test_solve.py::test_python2_update[libmamba] \ + --deselect=tests/core/test_solve.py::test_update_deps_2[libmamba] \ + --deselect=tests/core/test_solve.py::test_fast_update_with_update_modifier_not_set[libmamba] \ + --deselect=tests/core/test_solve.py::test_timestamps_1[libmamba] \ + --deselect=tests/core/test_solve.py::test_remove_with_constrained_dependencies[libmamba] \ --deselect=tests/gateways/test_jlap.py::test_download_and_hash \ + --deselect=tests/test_plan.py::test_pinned_specs_conda_meta_pinned \ + --deselect=tests/test_plan.py::test_pinned_specs_condarc \ + --deselect=tests/test_plan.py::test_pinned_specs_all \ + --deselect=tests/cli/test_subcommands.py::test_compare[libmamba] \ + --deselect=tests/cli/test_subcommands.py::test_package[libmamba] \ + --deselect=tests/cli/test_subcommands.py::test_remove[libmamba-remove] \ + --deselect=tests/cli/test_subcommands.py::test_remove[libmamba-uninstall] \ + --deselect=tests/cli/test_subcommands.py::test_remove_all_json[libmamba-remove] \ + --deselect=tests/cli/test_subcommands.py::test_remove_all_json[libmamba-uninstall] \ + --deselect=tests/cli/test_subcommands.py::test_remove_all_json[classic-remove] \ + --deselect=tests/cli/test_subcommands.py::test_remove_all_json[classic-uninstall] \ + --deselect=tests/cli/test_subcommands.py::test_update[classic-update] \ + --deselect=tests/cli/test_subcommands.py::test_update[classic-upgrade] \ + --deselect=tests/cli/test_subcommands.py::test_env_remove[libmamba] \ + --deselect=tests/cli/test_subcommands.py::test_env_config_vars[libmamba] \ + --deselect=tests/core/test_subdir_data.py::test_subdir_data_coverage \ + --deselect=tests/models/test_prefix_graph.py::test_prefix_graph_1[libmamba] \ + --deselect=tests/models/test_prefix_graph.py::test_prefix_graph_2[libmamba] \ + --deselect=tests/models/test_prefix_graph.py::test_remove_youngest_descendant_nodes_with_specs[libmamba] \ + --deselect=tests/models/test_prefix_graph.py::test_deep_cyclical_dependency[libmamba] \ + --deselect=tests/plugins/subcommands/doctor/test_cli.py::test_conda_doctor_with_test_environment \ + --deselect=tests/core/test_prefix_data.py::test_get_environment_env_vars \ + --deselect=tests/core/test_prefix_data.py::test_set_unset_environment_env_vars \ + --deselect=tests/core/test_prefix_data.py::test_set_unset_environment_env_vars_no_exist \ --ignore=tests/trust \ conda tests %endif @@ -241,10 +274,9 @@ py.test-%{python3_version} -vv -m "not integration" \ %{_bindir}/conda %{_bindir}/conda-env %{bash_completionsdir}/conda -# TODO - better ownership/requires for fish -%dir /etc/fish -%dir /etc/fish/conf.d -/etc/fish/conf.d/conda.fish +# TODO - better ownership for fish/vendor_conf.d +%dir %{_datadir}/fish/vendor_conf.d +%{_datadir}/fish/vendor_conf.d/conda.fish /etc/profile.d/conda.sh /etc/profile.d/conda.csh diff --git a/sources b/sources index f3592f5..91b0312 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (conda-23.9.0.tar.gz) = 2aaa5ba01f49f7ad5dc55e48bc4811a4f7e969ba67d075536e3822ddb2e4e481a32a78e9234112be5dcec0ec14b9090aea079dc48840aebb1e380a288413ac7a +SHA512 (conda-23.10.0.tar.gz) = d7605d734670161cd0de294a5ab15d9bc7ee2072b74c26e627283d3ad416ca7e34bf5a87fde5114da0fff732499aab99ea2d64fca2494deef6f1b370e368c635 From d51b3ca3264899f678b11f35fea7e3a9fb78eda1 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Thu, 30 Nov 2023 20:48:13 -0700 Subject: [PATCH 02/32] Update to 23.11.0 --- ...hell-assume-shell-plugins-are-in-etc.patch | 26 +++++++++---------- conda.spec | 7 ++++- sources | 2 +- 3 files changed, 20 insertions(+), 15 deletions(-) diff --git a/0006-shell-assume-shell-plugins-are-in-etc.patch b/0006-shell-assume-shell-plugins-are-in-etc.patch index b7710f9..577c06b 100644 --- a/0006-shell-assume-shell-plugins-are-in-etc.patch +++ b/0006-shell-assume-shell-plugins-are-in-etc.patch @@ -1,51 +1,51 @@ diff --git a/conda/activate.py b/conda/activate.py -index 8149162..0d751e3 100644 +index e7944a2..318cf88 100644 --- a/conda/activate.py +++ b/conda/activate.py -@@ -918,13 +918,7 @@ class PosixActivator(_Activator): +@@ -924,13 +924,7 @@ class PosixActivator(_Activator): set_var_tmpl = "%s='%s'" run_script_tmpl = '. "%s"' -- hook_source_path = join( +- hook_source_path = Path( - CONDA_PACKAGE_ROOT, - "shell", - "etc", - "profile.d", - "conda.sh", - ) -+ hook_source_path = '/etc/profile.d/conda.sh' ++ hook_source_path = "/etc/profile.d/conda.sh" def _update_prompt(self, set_vars, conda_prompt_modifier): ps1 = self.environ.get("PS1", "") -@@ -971,13 +965,7 @@ class CshActivator(_Activator): +@@ -977,13 +971,7 @@ class CshActivator(_Activator): set_var_tmpl = "set %s='%s'" run_script_tmpl = 'source "%s"' -- hook_source_path = join( +- hook_source_path = Path( - CONDA_PACKAGE_ROOT, - "shell", - "etc", - "profile.d", - "conda.csh", - ) -+ hook_source_path = '/etc/profile.d/conda.csh' ++ hook_source_path = "/etc/profile.d/conda.csh" def _update_prompt(self, set_vars, conda_prompt_modifier): prompt = self.environ.get("prompt", "") -@@ -1033,7 +1021,7 @@ class XonshActivator(_Activator): +@@ -1039,7 +1027,7 @@ class XonshActivator(_Activator): else 'source-bash --suppress-skip-message -n "%s"' ) -- hook_source_path = join(CONDA_PACKAGE_ROOT, "shell", "conda.xsh") +- hook_source_path = Path(CONDA_PACKAGE_ROOT, "shell", "conda.xsh") + hook_source_path = "/etc/profile.d/conda.xsh" def _hook_preamble(self) -> str: return '$CONDA_EXE = "%s"' % self.path_conversion(context.conda_exe) -@@ -1074,14 +1062,7 @@ class FishActivator(_Activator): +@@ -1080,14 +1068,7 @@ class FishActivator(_Activator): set_var_tmpl = 'set -g %s "%s"' run_script_tmpl = 'source "%s"' -- hook_source_path = join( +- hook_source_path = Path( - CONDA_PACKAGE_ROOT, - "shell", - "etc", @@ -58,10 +58,10 @@ index 8149162..0d751e3 100644 def _hook_preamble(self) -> str: if on_win: diff --git a/conda/base/context.py b/conda/base/context.py -index c22fafd..cf29eb6 100644 +index 52c789c..4bed062 100644 --- a/conda/base/context.py +++ b/conda/base/context.py -@@ -739,7 +739,7 @@ class Context(Configuration): +@@ -756,7 +756,7 @@ class Context(Configuration): def av_data_dir(self): """Where critical artifact verification data (e.g., various public keys) can be found.""" # TODO (AV): Find ways to make this user configurable? diff --git a/conda.spec b/conda.spec index 9c0d852..2974aca 100644 --- a/conda.spec +++ b/conda.spec @@ -1,7 +1,7 @@ %bcond_without tests Name: conda -Version: 23.10.0 +Version: 23.11.0 Release: %autorelease Summary: Cross-platform, Python-agnostic binary package manager @@ -216,6 +216,7 @@ py.test-%{python3_version} -vv -m "not integration" \ --deselect=tests/cli/test_main_notices.py::test_notices_cannot_read_cache_files \ --deselect=tests/cli/test_main_rename.py \ --deselect=tests/cli/test_main_run.py \ + --deselect=tests/cli/test_subcommands.py::test_create[libmamba] \ --deselect=tests/cli/test_subcommands.py::test_env_create \ --deselect=tests/cli/test_subcommands.py::test_env_update \ --deselect=tests/cli/test_subcommands.py::test_init \ @@ -227,6 +228,8 @@ py.test-%{python3_version} -vv -m "not integration" \ --deselect=tests/cli/test_subcommands.py::test_rename \ --deselect=tests/cli/test_subcommands.py::test_run \ --deselect=tests/cli/test_subcommands.py::test_search \ + --deselect=tests/cli/test_subcommands.py::test_update[libmamba-update] \ + --deselect=tests/cli/test_subcommands.py::test_update[libmamba-upgrade] \ --deselect=tests/cli/test_subcommands.py::test_update[update] \ --deselect=tests/cli/test_subcommands.py::test_update[upgrade] \ --deselect=tests/core/test_package_cache_data.py::test_ProgressiveFetchExtract_prefers_conda_v2_format \ @@ -241,6 +244,8 @@ py.test-%{python3_version} -vv -m "not integration" \ --deselect=tests/core/test_solve.py::test_timestamps_1[libmamba] \ --deselect=tests/core/test_solve.py::test_remove_with_constrained_dependencies[libmamba] \ --deselect=tests/gateways/test_jlap.py::test_download_and_hash \ + --deselect=tests/gateways/test_jlap.py::test_jlap_fetch_ssl[True] \ + --deselect=tests/gateways/test_jlap.py::test_jlap_fetch_ssl[False] \ --deselect=tests/test_plan.py::test_pinned_specs_conda_meta_pinned \ --deselect=tests/test_plan.py::test_pinned_specs_condarc \ --deselect=tests/test_plan.py::test_pinned_specs_all \ diff --git a/sources b/sources index 91b0312..f33503d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (conda-23.10.0.tar.gz) = d7605d734670161cd0de294a5ab15d9bc7ee2072b74c26e627283d3ad416ca7e34bf5a87fde5114da0fff732499aab99ea2d64fca2494deef6f1b370e368c635 +SHA512 (conda-23.11.0.tar.gz) = 0bb2fc1bfc44d7bed617880052e02a6cd3f9d88eeaae80f20251415e1552cd289e63ef1de6e2d6ee1d27d6aabd9224d027c801af731be62ca5e473736e191f35 From beff4ff623911fa4a6ed2d4b905abb82f11f9cfd Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Sat, 23 Dec 2023 20:48:14 -0700 Subject: [PATCH 03/32] Preserve hook_source_path as a Path object --- 0006-shell-assume-shell-plugins-are-in-etc.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/0006-shell-assume-shell-plugins-are-in-etc.patch b/0006-shell-assume-shell-plugins-are-in-etc.patch index 577c06b..9be1883 100644 --- a/0006-shell-assume-shell-plugins-are-in-etc.patch +++ b/0006-shell-assume-shell-plugins-are-in-etc.patch @@ -13,7 +13,7 @@ index e7944a2..318cf88 100644 - "profile.d", - "conda.sh", - ) -+ hook_source_path = "/etc/profile.d/conda.sh" ++ hook_source_path = Path("/etc/profile.d/conda.sh") def _update_prompt(self, set_vars, conda_prompt_modifier): ps1 = self.environ.get("PS1", "") @@ -28,7 +28,7 @@ index e7944a2..318cf88 100644 - "profile.d", - "conda.csh", - ) -+ hook_source_path = "/etc/profile.d/conda.csh" ++ hook_source_path = Path("/etc/profile.d/conda.csh") def _update_prompt(self, set_vars, conda_prompt_modifier): prompt = self.environ.get("prompt", "") @@ -37,7 +37,7 @@ index e7944a2..318cf88 100644 ) - hook_source_path = Path(CONDA_PACKAGE_ROOT, "shell", "conda.xsh") -+ hook_source_path = "/etc/profile.d/conda.xsh" ++ hook_source_path = Path("/etc/profile.d/conda.xsh") def _hook_preamble(self) -> str: return '$CONDA_EXE = "%s"' % self.path_conversion(context.conda_exe) @@ -53,7 +53,7 @@ index e7944a2..318cf88 100644 - "conf.d", - "conda.fish", - ) -+ hook_source_path = "/etc/fish/conf.d/conda.fish" ++ hook_source_path = Path("/etc/fish/conf.d/conda.fish") def _hook_preamble(self) -> str: if on_win: From 38bdf2c17d856783fbc9ff6e12ed432ed86b3fa9 Mon Sep 17 00:00:00 2001 From: Karolina Surma Date: Wed, 20 Dec 2023 12:45:49 +0100 Subject: [PATCH 04/32] Avoid circular dependency on python3-conda-libmamba-solver --- conda.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/conda.spec b/conda.spec index 2974aca..56e8d3f 100644 --- a/conda.spec +++ b/conda.spec @@ -129,7 +129,10 @@ sed -i -e s/linux-64/%{python3_platform}/ tests/data/conda_format_repo/%{python3 sed -i -e '/"--cov/d' pyproject.toml %generate_buildrequires -%pyproject_buildrequires +# When not testing, we don't need runtime dependencies. +# Normally, we would still BuildRequire them to not accidentally build an uninstallable package, +# but there is a runtime dependency loop with python3-conda-libmamba-solver. +%pyproject_buildrequires %{!?with_tests:-R} %build %pyproject_wheel From f6bec6937d132ac4db9ad3ae9ebfffbbf275b7de Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jan 2024 16:04:24 +0000 Subject: [PATCH 05/32] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 78bf0073f1a77f7024d4211cd25527a400a1daa8 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 24 Jan 2024 07:55:14 +0000 Subject: [PATCH 06/32] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 0a649051225cf71411ada0c1b01b2707d87103d0 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Wed, 14 Feb 2024 20:59:16 -0700 Subject: [PATCH 07/32] Update to 24.1.1 --- conda.spec | 17 +++++++++++++---- sources | 2 +- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/conda.spec b/conda.spec index 56e8d3f..207e7cf 100644 --- a/conda.spec +++ b/conda.spec @@ -1,7 +1,7 @@ %bcond_without tests Name: conda -Version: 23.11.0 +Version: 24.1.1 Release: %autorelease Summary: Cross-platform, Python-agnostic binary package manager @@ -185,7 +185,7 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} conda info # test_ProgressiveFetchExtract_prefers_conda_v2_format, test_subdir_data_prefers_conda_to_tar_bz2, # test_use_only_tar_bz2 fail in F31 koji, but not with mock --enablerepo=local. Let's disable # them for now. -# tests/conda_env/test_create.py::test_create_update_remote_env_file requires network access +# tests/env/test_create.py::test_create_update_remote_env_file requires network access # tests/cli/test_conda_argparse.py::test_list_through_python_api does not recognize /usr as a conda environment # tests/cli/test_main_{clean,info,list,list_reverse,rename}.py tests require network access # tests/cli/test_main_notices.py::test_notices_appear_once_when_running_decorated_commands needs a conda_build fixture that we remove @@ -207,16 +207,22 @@ py.test-%{python3_version} -vv -m "not integration" \ --deselect=tests/test_cli.py::test_run_returns_zero_errorlevel \ --deselect=tests/test_cli.py::test_run_readonly_env \ --deselect=tests/test_misc.py::test_explicit_missing_cache_entries \ - --ignore=tests/conda_env/specs/test_binstar.py \ - --deselect=tests/conda_env/test_create.py::test_create_update_remote_env_file \ + --ignore=tests/env/specs/test_binstar.py \ + --deselect=tests/env/test_create.py::test_create_update_remote_env_file \ --deselect='tests/cli/test_common.py::test_is_active_prefix[active_prefix-True]' \ + --deselect=tests/cli/test_config.py::test_conda_config_describe \ + --deselect=tests/cli/test_config.py::test_conda_config_validate \ + --deselect=tests/cli/test_config.py::test_conda_config_validate_sslverify_truststore \ --deselect=tests/cli/test_conda_argparse.py::test_list_through_python_api \ --deselect=tests/cli/test_main_clean.py \ + --deselect=tests/cli/test_main_info.py::test_info_python_output \ --deselect=tests/cli/test_main_info.py::test_info_conda_json \ --deselect=tests/cli/test_main_list.py::test_list \ --deselect=tests/cli/test_main_list.py::test_list_reverse \ --deselect=tests/cli/test_main_notices.py::test_notices_appear_once_when_running_decorated_commands \ --deselect=tests/cli/test_main_notices.py::test_notices_cannot_read_cache_files \ + --deselect=tests/cli/test_main_remove.py::test_remove_all \ + --deselect=tests/cli/test_main_remove.py::test_remove_all_keep_env \ --deselect=tests/cli/test_main_rename.py \ --deselect=tests/cli/test_main_run.py \ --deselect=tests/cli/test_subcommands.py::test_create[libmamba] \ @@ -269,6 +275,9 @@ py.test-%{python3_version} -vv -m "not integration" \ --deselect=tests/models/test_prefix_graph.py::test_prefix_graph_2[libmamba] \ --deselect=tests/models/test_prefix_graph.py::test_remove_youngest_descendant_nodes_with_specs[libmamba] \ --deselect=tests/models/test_prefix_graph.py::test_deep_cyclical_dependency[libmamba] \ + --deselect=tests/plugins/test_pre_solves.py::test_pre_solve_invoked \ + --deselect=tests/plugins/test_post_solves.py::test_post_solve_action_raises_exception \ + --deselect=tests/plugins/test_post_solves.py::test_post_solve_invoked \ --deselect=tests/plugins/subcommands/doctor/test_cli.py::test_conda_doctor_with_test_environment \ --deselect=tests/core/test_prefix_data.py::test_get_environment_env_vars \ --deselect=tests/core/test_prefix_data.py::test_set_unset_environment_env_vars \ diff --git a/sources b/sources index f33503d..63baa0a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (conda-23.11.0.tar.gz) = 0bb2fc1bfc44d7bed617880052e02a6cd3f9d88eeaae80f20251415e1552cd289e63ef1de6e2d6ee1d27d6aabd9224d027c801af731be62ca5e473736e191f35 +SHA512 (conda-24.1.1.tar.gz) = 83acc44515691cb136bb36ce23e8488190e4785fc5c74602b2af61529f79a8fd88a781c6595cd6ec54ca9b52f12cac0daef1c097157d09849b87e75b3280b785 From e5e74076ca4bb9ca64f15cfa425846308aff9a02 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Tue, 20 Feb 2024 19:48:01 -0700 Subject: [PATCH 08/32] Update to 24.1.2 --- conda.spec | 2 +- sources | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conda.spec b/conda.spec index 207e7cf..134b1ec 100644 --- a/conda.spec +++ b/conda.spec @@ -1,7 +1,7 @@ %bcond_without tests Name: conda -Version: 24.1.1 +Version: 24.1.2 Release: %autorelease Summary: Cross-platform, Python-agnostic binary package manager diff --git a/sources b/sources index 63baa0a..52565e6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (conda-24.1.1.tar.gz) = 83acc44515691cb136bb36ce23e8488190e4785fc5c74602b2af61529f79a8fd88a781c6595cd6ec54ca9b52f12cac0daef1c097157d09849b87e75b3280b785 +SHA512 (conda-24.1.2.tar.gz) = a887a7043a2ec2d298a4f2fa9c99d3038aadc3438fdeec90497d041b28633afa56b49d13b24d19c8d67a2cf0d915cfb8a9a8f8bb3ff5d5e602d65267f6ee93df From 1abcd0c13abf23730f238daeca4329c780e5eb79 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Tue, 19 Mar 2024 18:54:18 -0600 Subject: [PATCH 09/32] Update to 24.3.0 --- conda.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/conda.spec b/conda.spec index 134b1ec..cbcb389 100644 --- a/conda.spec +++ b/conda.spec @@ -1,7 +1,7 @@ %bcond_without tests Name: conda -Version: 24.1.2 +Version: 24.3.0 Release: %autorelease Summary: Cross-platform, Python-agnostic binary package manager @@ -206,6 +206,9 @@ py.test-%{python3_version} -vv -m "not integration" \ --deselect=tests/test_cli.py::test_run_returns_nonzero_errorlevel \ --deselect=tests/test_cli.py::test_run_returns_zero_errorlevel \ --deselect=tests/test_cli.py::test_run_readonly_env \ + --deselect=tests/test_install.py::test_conda_pip_interop_dependency_satisfied_by_pip \ + --deselect=tests/test_install.py::test_install_from_extracted_package \ + --deselect=tests/test_install.py::test_install_mkdir \ --deselect=tests/test_misc.py::test_explicit_missing_cache_entries \ --ignore=tests/env/specs/test_binstar.py \ --deselect=tests/env/test_create.py::test_create_update_remote_env_file \ diff --git a/sources b/sources index 52565e6..9fec35b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (conda-24.1.2.tar.gz) = a887a7043a2ec2d298a4f2fa9c99d3038aadc3438fdeec90497d041b28633afa56b49d13b24d19c8d67a2cf0d915cfb8a9a8f8bb3ff5d5e602d65267f6ee93df +SHA512 (conda-24.3.0.tar.gz) = 57569f7cfa089b1e3cb351302bc496089d400b3fb7796a2890923b2a99b73342328533f2cd3c16244196ec098f69f0cddca3bc0328fb1dc0aced06255fb7df9a From 5925ee3a6104c31c8e7227e01f1dba1e1d5c9043 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Fri, 26 Apr 2024 17:02:51 -0600 Subject: [PATCH 10/32] Update to 24.4.0 --- conda.spec | 2 +- sources | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conda.spec b/conda.spec index cbcb389..483dfab 100644 --- a/conda.spec +++ b/conda.spec @@ -1,7 +1,7 @@ %bcond_without tests Name: conda -Version: 24.3.0 +Version: 24.4.0 Release: %autorelease Summary: Cross-platform, Python-agnostic binary package manager diff --git a/sources b/sources index 9fec35b..0d51e28 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (conda-24.3.0.tar.gz) = 57569f7cfa089b1e3cb351302bc496089d400b3fb7796a2890923b2a99b73342328533f2cd3c16244196ec098f69f0cddca3bc0328fb1dc0aced06255fb7df9a +SHA512 (conda-24.4.0.tar.gz) = b1760bd2d7dd46757a969ecf69884839c73274199eb44ffc52cfe5650f68864fb2e8608606a9bae3e498f729207ddde7618c010f69f22dabd15a297980b2ca61 From dd6335a03ec6fe0ab77db18bd7143041dff30187 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Sun, 9 Jun 2024 02:47:14 +0200 Subject: [PATCH 11/32] Bootstrap for Python 3.13 --- conda.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/conda.spec b/conda.spec index 483dfab..5ebee7f 100644 --- a/conda.spec +++ b/conda.spec @@ -1,3 +1,4 @@ +%global _without_tests 1 %bcond_without tests Name: conda From fc7da1f8ec81f89d11f049b4d4dc76482fb0dc57 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Sat, 29 Jun 2024 23:36:55 +0200 Subject: [PATCH 12/32] Rebuilt for Python 3.13 --- conda.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/conda.spec b/conda.spec index 5ebee7f..483dfab 100644 --- a/conda.spec +++ b/conda.spec @@ -1,4 +1,3 @@ -%global _without_tests 1 %bcond_without tests Name: conda From c2c4383abee87463a960ab4ee51eb52f76a6c380 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 17 Jul 2024 19:52:48 +0000 Subject: [PATCH 13/32] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From 5095af4c04635ad9b25c300bcdf03d10beaac977 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Thu, 1 Aug 2024 22:52:06 -0600 Subject: [PATCH 14/32] Update to 24.7.1 - Add patch to support python 3.13 --- ...oint-for-conda-and-re-add-conda-env-.patch | 27 -------------- ...patch => 0001-conda_sys_prefix.patch.patch | 16 +++++++- ...oint-for-conda-and-re-add-conda-env-.patch | 27 ++++++++++++++ ...hell-assume-shell-plugins-are-in-etc.patch | 20 +++++----- 14117.patch | 32 ++++++++++++++++ conda-32bit.patch | 21 ----------- conda.spec | 37 ++++++++++++++++--- sources | 2 +- 8 files changed, 115 insertions(+), 67 deletions(-) delete mode 100644 0001-Use-main-entry-point-for-conda-and-re-add-conda-env-.patch rename conda_sys_prefix.patch => 0001-conda_sys_prefix.patch.patch (51%) create mode 100644 0002-Use-main-entry-point-for-conda-and-re-add-conda-env-.patch create mode 100644 14117.patch delete mode 100644 conda-32bit.patch diff --git a/0001-Use-main-entry-point-for-conda-and-re-add-conda-env-.patch b/0001-Use-main-entry-point-for-conda-and-re-add-conda-env-.patch deleted file mode 100644 index c655aa9..0000000 --- a/0001-Use-main-entry-point-for-conda-and-re-add-conda-env-.patch +++ /dev/null @@ -1,27 +0,0 @@ -From b5f226ef5dd81dec3b01f58e22c252a27a84e515 Mon Sep 17 00:00:00 2001 -From: rpm-build -Date: Sun, 8 Oct 2023 19:51:26 -0600 -Subject: [PATCH] Use main entry point for conda and re-add conda-env entry - point, no need to run conda init - ---- - pyproject.toml | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/pyproject.toml b/pyproject.toml -index 2c897d3..1abe369 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -49,7 +49,8 @@ documentation = "https://docs.conda.io/projects/conda/en/stable/" - repository = "https://github.com/conda/conda" - - [project.scripts] --conda = "conda.cli.main_pip:main" -+conda = "conda.cli.main:main" -+conda-env = "conda_env.cli.main:main" - - [tool.hatch.version] - source = "vcs" --- -2.42.0 - diff --git a/conda_sys_prefix.patch b/0001-conda_sys_prefix.patch.patch similarity index 51% rename from conda_sys_prefix.patch rename to 0001-conda_sys_prefix.patch.patch index 5bf76b7..6e2c646 100644 --- a/conda_sys_prefix.patch +++ b/0001-conda_sys_prefix.patch.patch @@ -1,8 +1,17 @@ +From 7eeb6a32d2004bc20a156dd8920964c107e99321 Mon Sep 17 00:00:00 2001 +From: rpm-build +Date: Tue, 30 Jul 2024 18:00:00 -0600 +Subject: [PATCH 1/2] conda_sys_prefix.patch + +--- + conda/__init__.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + diff --git a/conda/__init__.py b/conda/__init__.py -index 923ccde..2b64a72 100644 +index 4245cae..a436b1d 100644 --- a/conda/__init__.py +++ b/conda/__init__.py -@@ -28,7 +28,7 @@ __summary__ = __doc__ +@@ -54,7 +54,7 @@ __summary__ = __doc__ __url__ = "https://github.com/conda/conda" if os.getenv("CONDA_ROOT") is None: @@ -11,3 +20,6 @@ index 923ccde..2b64a72 100644 #: The conda package directory. CONDA_PACKAGE_ROOT = abspath(dirname(__file__)) +-- +2.45.2 + diff --git a/0002-Use-main-entry-point-for-conda-and-re-add-conda-env-.patch b/0002-Use-main-entry-point-for-conda-and-re-add-conda-env-.patch new file mode 100644 index 0000000..4ecaa47 --- /dev/null +++ b/0002-Use-main-entry-point-for-conda-and-re-add-conda-env-.patch @@ -0,0 +1,27 @@ +From fb4189dc963862edd92e22426eac7dd672688163 Mon Sep 17 00:00:00 2001 +From: rpm-build +Date: Tue, 30 Jul 2024 21:38:56 -0600 +Subject: [PATCH 2/2] Use main entry point for conda and re-add conda-env entry + point, no need to run conda init + +--- + pyproject.toml | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 443243a..2b44cd1 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -51,7 +51,8 @@ readme = "README.md" + requires-python = ">=3.8" + + [project.scripts] +-conda = "conda.cli.main_pip:main" ++conda = "conda.cli.main:main" ++conda-env = "conda_env.cli.main:main" + + [project.urls] + changelog = "https://github.com/conda/conda/blob/main/CHANGELOG.md" +-- +2.45.2 + diff --git a/0006-shell-assume-shell-plugins-are-in-etc.patch b/0006-shell-assume-shell-plugins-are-in-etc.patch index 9be1883..7349d47 100644 --- a/0006-shell-assume-shell-plugins-are-in-etc.patch +++ b/0006-shell-assume-shell-plugins-are-in-etc.patch @@ -1,8 +1,8 @@ diff --git a/conda/activate.py b/conda/activate.py -index e7944a2..318cf88 100644 +index 9e487a0..6833adb 100644 --- a/conda/activate.py +++ b/conda/activate.py -@@ -924,13 +924,7 @@ class PosixActivator(_Activator): +@@ -1133,13 +1133,7 @@ class PosixActivator(_Activator): set_var_tmpl = "%s='%s'" run_script_tmpl = '. "%s"' @@ -16,8 +16,8 @@ index e7944a2..318cf88 100644 + hook_source_path = Path("/etc/profile.d/conda.sh") def _update_prompt(self, set_vars, conda_prompt_modifier): - ps1 = self.environ.get("PS1", "") -@@ -977,13 +971,7 @@ class CshActivator(_Activator): + ps1 = os.getenv("PS1", "") +@@ -1186,13 +1180,7 @@ class CshActivator(_Activator): set_var_tmpl = "set %s='%s'" run_script_tmpl = 'source "%s"' @@ -31,8 +31,8 @@ index e7944a2..318cf88 100644 + hook_source_path = Path("/etc/profile.d/conda.csh") def _update_prompt(self, set_vars, conda_prompt_modifier): - prompt = self.environ.get("prompt", "") -@@ -1039,7 +1027,7 @@ class XonshActivator(_Activator): + prompt = os.getenv("prompt", "") +@@ -1248,7 +1236,7 @@ class XonshActivator(_Activator): else 'source-bash --suppress-skip-message -n "%s"' ) @@ -40,8 +40,8 @@ index e7944a2..318cf88 100644 + hook_source_path = Path("/etc/profile.d/conda.xsh") def _hook_preamble(self) -> str: - return '$CONDA_EXE = "%s"' % self.path_conversion(context.conda_exe) -@@ -1080,14 +1068,7 @@ class FishActivator(_Activator): + return f'$CONDA_EXE = "{self.path_conversion(context.conda_exe)}"' +@@ -1289,14 +1277,7 @@ class FishActivator(_Activator): set_var_tmpl = 'set -g %s "%s"' run_script_tmpl = 'source "%s"' @@ -58,10 +58,10 @@ index e7944a2..318cf88 100644 def _hook_preamble(self) -> str: if on_win: diff --git a/conda/base/context.py b/conda/base/context.py -index 52c789c..4bed062 100644 +index 9542d3e..9376108 100644 --- a/conda/base/context.py +++ b/conda/base/context.py -@@ -756,7 +756,7 @@ class Context(Configuration): +@@ -797,7 +797,7 @@ class Context(Configuration): def av_data_dir(self): """Where critical artifact verification data (e.g., various public keys) can be found.""" # TODO (AV): Find ways to make this user configurable? diff --git a/14117.patch b/14117.patch new file mode 100644 index 0000000..bd8fbd7 --- /dev/null +++ b/14117.patch @@ -0,0 +1,32 @@ +From 62196c897df3d7aea7063d0c08d1bf6e6fd91600 Mon Sep 17 00:00:00 2001 +From: "Benjamin A. Beasley" +Date: Fri, 2 Aug 2024 08:50:43 -0400 +Subject: [PATCH] Adapt for logging lock internal changes in Python 3.13 + +--- + conda/common/io.py | 9 +++++++-- + 1 file changed, 7 insertions(+), 2 deletions(-) + +diff --git a/conda/common/io.py b/conda/common/io.py +index 91f37e144d0..d3b655e47f4 100644 +--- a/conda/common/io.py ++++ b/conda/common/io.py +@@ -269,11 +269,16 @@ def argv(args_list): + + @contextmanager + def _logger_lock(): +- logging._acquireLock() ++ try: ++ # Python 3.13+ ++ acquire, release = logging._prepareFork, logging._afterFork ++ except AttributeError: ++ acquire, release = logging._acquireLock, logging._releaseLock ++ acquire() + try: + yield + finally: +- logging._releaseLock() ++ release() + + + @contextmanager diff --git a/conda-32bit.patch b/conda-32bit.patch deleted file mode 100644 index 19fa4d3..0000000 --- a/conda-32bit.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff --git a/tests/core/test_solve.py b/tests/core/test_solve.py -index 71812ca..778bbb4 100644 ---- a/tests/core/test_solve.py -+++ b/tests/core/test_solve.py -@@ -224,14 +224,14 @@ def test_cuda_fail_1(tmpdir, clear_cuda_version): - else: - plat = "osx-64" - elif sys.platform == "linux": -- plat = "linux-64" -+ plat = "linux-%s" % platform.architecture()[0][0:2] - elif sys.platform == "win32": - if platform.architecture()[0] == "32bit": - plat = "win-32" - else: - plat = "win-64" - else: -- plat = "linux-64" -+ plat = "linux-%s" % platform.architecture()[0][0:2] - - assert str(exc.value).strip() == dals( - """The following specifications were found to be incompatible with your system: diff --git a/conda.spec b/conda.spec index 483dfab..23dd913 100644 --- a/conda.spec +++ b/conda.spec @@ -1,7 +1,7 @@ %bcond_without tests Name: conda -Version: 24.4.0 +Version: 24.7.1 Release: %autorelease Summary: Cross-platform, Python-agnostic binary package manager @@ -13,14 +13,13 @@ URL: http://conda.pydata.org/docs/ Source0: https://github.com/conda/conda/archive/%{version}/%{name}-%{version}.tar.gz # bash completion script moved to a separate project Source1: https://raw.githubusercontent.com/tartansandal/conda-bash-completion/1.7/conda -Patch0: conda_sys_prefix.patch +Patch0: 0001-conda_sys_prefix.patch.patch # Use main entry point for conda and re-add conda-env entry point, no need to run conda init -Patch1: 0001-Use-main-entry-point-for-conda-and-re-add-conda-env-.patch +Patch1: 0002-Use-main-entry-point-for-conda-and-re-add-conda-env-.patch # Use system cpuinfo Patch3: conda-cpuinfo.patch -# Fix tests on 32bit -# https://github.com/conda/conda/pull/9759 -#Patch4: conda-32bit.patch +# Python 3.13 lock support +Patch4: https://github.com/conda/conda/pull/14117.patch Patch10004: 0004-Do-not-try-to-run-usr-bin-python.patch Patch10005: 0005-Fix-failing-tests-in-test_api.py.patch @@ -185,6 +184,7 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} conda info # test_ProgressiveFetchExtract_prefers_conda_v2_format, test_subdir_data_prefers_conda_to_tar_bz2, # test_use_only_tar_bz2 fail in F31 koji, but not with mock --enablerepo=local. Let's disable # them for now. +# tests/env/test_create.py::test_create_env_json requires network access # tests/env/test_create.py::test_create_update_remote_env_file requires network access # tests/cli/test_conda_argparse.py::test_list_through_python_api does not recognize /usr as a conda environment # tests/cli/test_main_{clean,info,list,list_reverse,rename}.py tests require network access @@ -193,6 +193,17 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} conda info # tests/cli/test_main_run.py require /usr/bin/conda to be installed # tests/cli/test_subcommands.py tests require network access # tests/cli/test_subcommands.py::test_rename seems to need an active environment +# tests/test_activate.py::test_activate_same_environment - requries network +# tests/test_activate.py::test_build_activate_dont_activate_unset_var - requires network +# tests/test_activate.py::test_build_activate_restore_unset_env_vars - requries network +# tests/test_activate.py::test_build_activate_shlvl_warn_clobber_vars - requries network +# tests/test_activate.py::test_build_activate_shlvl_0 - requries network +# tests/test_activate.py::test_build_activate_shlvl_1 - requries network +# tests/test_activate.py::test_build_deactivate_shlvl_2_from_stack - requries network +# tests/test_activate.py::test_build_deactivate_shlvl_2_from_activate - requries network +# tests/test_activate.py::test_build_deactivate_shlvl_1 - requries network +# tests/test_activate.py::test_build_stack_shlvl_1 - requries network +# tests/test_activate.py::test_get_env_vars_big_whitespace/test_get_env_vars_empty_file require network access # tests/test_misc.py::test_explicit_missing_cache_entries requires network access # tests/core/test_initialize.py tries to unlink /usr/bin/python3 and fails when python is a release candidate # tests/core/test_solve.py::test_cuda_fail_1 fails on non-x86_64 @@ -201,6 +212,18 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} conda info # tests/core/test_prefix_graph.py libmamba - some depsolving differences - TODO # tests/trust/test_signature_verification.py requires conda_content_trust - not yet packaged py.test-%{python3_version} -vv -m "not integration" \ + --deselect=tests/test_activate.py::test_activate_same_environment \ + --deselect=tests/test_activate.py::test_build_activate_dont_activate_unset_var \ + --deselect=tests/test_activate.py::test_build_activate_restore_unset_env_vars \ + --deselect=tests/test_activate.py::test_build_activate_shlvl_warn_clobber_vars \ + --deselect=tests/test_activate.py::test_build_activate_shlvl_0 \ + --deselect=tests/test_activate.py::test_build_activate_shlvl_1 \ + --deselect=tests/test_activate.py::test_build_deactivate_shlvl_2_from_stack \ + --deselect=tests/test_activate.py::test_build_deactivate_shlvl_2_from_activate \ + --deselect=tests/test_activate.py::test_build_deactivate_shlvl_1 \ + --deselect=tests/test_activate.py::test_build_stack_shlvl_1 \ + --deselect=tests/test_activate.py::test_get_env_vars_big_whitespace \ + --deselect=tests/test_activate.py::test_get_env_vars_empty_file \ --deselect=tests/test_cli.py::TestJson::test_list \ --deselect=tests/test_cli.py::test_run_returns_int \ --deselect=tests/test_cli.py::test_run_returns_nonzero_errorlevel \ @@ -211,6 +234,8 @@ py.test-%{python3_version} -vv -m "not integration" \ --deselect=tests/test_install.py::test_install_mkdir \ --deselect=tests/test_misc.py::test_explicit_missing_cache_entries \ --ignore=tests/env/specs/test_binstar.py \ + --deselect=tests/env/test_create.py::test_create_env_json[example/environment.yml] \ + --deselect=tests/env/test_create.py::test_create_env_json[example/environment_with_pip.yml] \ --deselect=tests/env/test_create.py::test_create_update_remote_env_file \ --deselect='tests/cli/test_common.py::test_is_active_prefix[active_prefix-True]' \ --deselect=tests/cli/test_config.py::test_conda_config_describe \ diff --git a/sources b/sources index 0d51e28..521780f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (conda-24.4.0.tar.gz) = b1760bd2d7dd46757a969ecf69884839c73274199eb44ffc52cfe5650f68864fb2e8608606a9bae3e498f729207ddde7618c010f69f22dabd15a297980b2ca61 +SHA512 (conda-24.7.1.tar.gz) = 8fbd8e868a9ac0a73c0d940a393ebbf25f16d1b82ca6c59691e148dbb20c7d4767794fae72cd9a84f071714065e80f8f859f629a239e75feaf43c5d570625a59 From f349058d4f949e67b61d8b791a04eda9ffbd7011 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Tue, 8 Oct 2024 08:38:39 -0600 Subject: [PATCH 15/32] Update to 24.9.1 --- 0004-Do-not-try-to-run-usr-bin-python.patch | 19 +++---- conda-cpuinfo.patch | 13 ----- conda.spec | 61 +++++++++++++-------- sources | 2 +- 4 files changed, 48 insertions(+), 47 deletions(-) delete mode 100644 conda-cpuinfo.patch diff --git a/0004-Do-not-try-to-run-usr-bin-python.patch b/0004-Do-not-try-to-run-usr-bin-python.patch index 197eb23..f747eb0 100644 --- a/0004-Do-not-try-to-run-usr-bin-python.patch +++ b/0004-Do-not-try-to-run-usr-bin-python.patch @@ -1,16 +1,15 @@ -diff --git a/conda/common/path.py b/conda/common/path.py -index 32ed396..76bc20a 100644 ---- a/conda/common/path.py -+++ b/conda/common/path.py -@@ -5,6 +5,7 @@ from __future__ import annotations - import os +diff -up conda-24.9.1/conda/common/path/python.py.python conda-24.9.1/conda/common/path/python.py +--- conda-24.9.1/conda/common/path/python.py.python 2024-10-01 15:11:32.000000000 -0600 ++++ conda-24.9.1/conda/common/path/python.py 2024-10-07 21:43:44.951895698 -0600 +@@ -5,6 +5,7 @@ + from __future__ import annotations + import re - import subprocess +import sys - from functools import lru_cache, reduce - from itertools import accumulate, chain from logging import getLogger -@@ -175,9 +176,11 @@ def parse_entry_point_def(ep_definition): + from os.path import join, split, splitext + +@@ -52,9 +53,11 @@ def parse_entry_point_def(ep_definition) def get_python_short_path(python_version=None): if on_win: return "python.exe" diff --git a/conda-cpuinfo.patch b/conda-cpuinfo.patch deleted file mode 100644 index 682f08b..0000000 --- a/conda-cpuinfo.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/conda/base/context.py b/conda/base/context.py -index dbeac32..8b78e69 100644 ---- a/conda/base/context.py -+++ b/conda/base/context.py -@@ -1864,7 +1864,7 @@ conda_tests_ctxt_mgmt_def_pol = replace_context_default - @lru_cache(maxsize=None) - def _get_cpu_info(): - # DANGER: This is rather slow -- from .._vendor.cpuinfo import get_cpu_info -+ from cpuinfo import get_cpu_info - - return frozendict(get_cpu_info()) - diff --git a/conda.spec b/conda.spec index 23dd913..b5e29b3 100644 --- a/conda.spec +++ b/conda.spec @@ -1,7 +1,7 @@ %bcond_without tests Name: conda -Version: 24.7.1 +Version: 24.9.1 Release: %autorelease Summary: Cross-platform, Python-agnostic binary package manager @@ -16,8 +16,6 @@ Source1: https://raw.githubusercontent.com/tartansandal/conda-bash-comple Patch0: 0001-conda_sys_prefix.patch.patch # Use main entry point for conda and re-add conda-env entry point, no need to run conda init Patch1: 0002-Use-main-entry-point-for-conda-and-re-add-conda-env-.patch -# Use system cpuinfo -Patch3: conda-cpuinfo.patch # Python 3.13 lock support Patch4: https://github.com/conda/conda/pull/14117.patch @@ -70,6 +68,7 @@ BuildRequires: python-unversioned-command BuildRequires: python%{python3_pkgversion}-boto3 BuildRequires: python%{python3_pkgversion}-flask BuildRequires: python%{python3_pkgversion}-jsonpatch +BuildRequires: python%{python3_pkgversion}-pexpect BuildRequires: python%{python3_pkgversion}-pytest-mock BuildRequires: python%{python3_pkgversion}-pytest-rerunfailures BuildRequires: python%{python3_pkgversion}-pytest-timeout @@ -94,19 +93,9 @@ sed -i -e '/ruamel.yaml/s/,<[0-9.]*//' pyproject.toml # pytest-split/xdoctest not packaged, store-duration not needed sed -i -e '/splitting-algorithm/d' -e '/store-durations/d' -e '/xdoctest/d' pyproject.toml -# delete interpreter line, the user can always call the file -# explicitly as python3 /usr/lib/python3.6/site-packages/conda/_vendor/appdirs.py -# or so. -sed -r -i '1 {/#![/]usr[/]bin[/]env/d}' conda/_vendor/appdirs.py - -# Use Fedora's cpuinfo since it supports more arches -rm -r conda/_vendor/cpuinfo -sed -i -e '/^dependencies = /a\ \ "py-cpuinfo",' pyproject.toml - # Use system versions -rm -r conda/_vendor/{distro.py,frozendict} -find conda -name \*.py | xargs sed -i -e 's/^\( *\)from .*_vendor\.\(\(distro\|frozendict\).*\) import/\1from \2 import/' -sed -i -e '/^dependencies = /a\ \ "distro",' pyproject.toml +rm -r conda/_vendor/frozendict +find conda -name \*.py | xargs sed -i -e 's/^\( *\)from .*_vendor\.\(frozendict.*\) import/\1from \2 import/' sed -i -e '/^dependencies = /a\ \ "frozendict",' pyproject.toml # Unpackaged - use vendored version @@ -138,7 +127,7 @@ sed -i -e '/"--cov/d' pyproject.toml %install %pyproject_install -%py3_shebang_fix %{buildroot}%{python3_sitelib}/conda/shell/bin/conda +#py3_shebang_fix %{buildroot}%{python3_sitelib}/conda/shell/bin/conda %pyproject_save_files conda* mkdir -p %{buildroot}%{_sysconfdir}/conda/condarc.d @@ -180,19 +169,20 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} conda info # test_cli.py::TestRun.test_run_returns_int # test_cli.py::TestRun.test_run_returns_nonzero_errorlevel # test_cli.py::TestRun.test_run_returns_zero_errorlevel - # test_ProgressiveFetchExtract_prefers_conda_v2_format, test_subdir_data_prefers_conda_to_tar_bz2, # test_use_only_tar_bz2 fail in F31 koji, but not with mock --enablerepo=local. Let's disable # them for now. -# tests/env/test_create.py::test_create_env_json requires network access -# tests/env/test_create.py::test_create_update_remote_env_file requires network access # tests/cli/test_conda_argparse.py::test_list_through_python_api does not recognize /usr as a conda environment -# tests/cli/test_main_{clean,info,list,list_reverse,rename}.py tests require network access +# tests/cli/test_main_{clean,info,install,list,list_reverse,rename}.py tests require network access # tests/cli/test_main_notices.py::test_notices_appear_once_when_running_decorated_commands needs a conda_build fixture that we remove # tests/cli/test_main_notices.py::test_notices_cannot_read_cache_files - TypeError: '<' not supported between instances of 'MagicMock' and 'int' # tests/cli/test_main_run.py require /usr/bin/conda to be installed # tests/cli/test_subcommands.py tests require network access +# tests/cli/test_subcommands.py::test_doctor- conda.exceptions.EnvironmentLocationNotFound: Not a conda environment: /usr # tests/cli/test_subcommands.py::test_rename seems to need an active environment +# tests/env/test_create.py::test_create_env_json requires network access +# tests/env/test_create.py::test_create_update_remote_env_file requires network access +# tests/env/test_create.py::test_protected_dirs_error_for_env_create - requires network access # tests/test_activate.py::test_activate_same_environment - requries network # tests/test_activate.py::test_build_activate_dont_activate_unset_var - requires network # tests/test_activate.py::test_build_activate_restore_unset_env_vars - requries network @@ -204,12 +194,22 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} conda info # tests/test_activate.py::test_build_deactivate_shlvl_1 - requries network # tests/test_activate.py::test_build_stack_shlvl_1 - requries network # tests/test_activate.py::test_get_env_vars_big_whitespace/test_get_env_vars_empty_file require network access +# tests/test_activate.py::test_pre_post_command_invoked[hook] - requires conda to be installed +# tests/test_activate.py::test_pre_post_command_raises[hook] - requires conda to be installed # tests/test_misc.py::test_explicit_missing_cache_entries requires network access # tests/core/test_initialize.py tries to unlink /usr/bin/python3 and fails when python is a release candidate # tests/core/test_solve.py::test_cuda_fail_1 fails on non-x86_64 # tests/core/test_solve.py libmamba - some depsolving differences - TODO # tests/core/test_solve.py libmamba - some depsolving differences - TODO # tests/core/test_prefix_graph.py libmamba - some depsolving differences - TODO +# tests/plugins/subcommands/doctor/test_cli.py::test_conda_doctor_happy_path - conda.exceptions.EnvironmentLocationNotFound: Not a conda environment: /usr +# tests/plugins/subcommands/doctor/test_cli.py::test_conda_doctor_happy_path_verbose - conda.exceptions.EnvironmentLocationNotFound: Not a conda environment: /usr +# tests/plugins/test_health_checks.py::test_health_check_ran - conda.exceptions.EnvironmentLocationNotFound: Not a conda environment: /usr +# tests/plugins/test_subcommands.py::test_help - Difference in whitespace +# tests/testing/test_fixtures.py::test_tmp_env - requires network access +# tests/testing/test_fixtures.py::test_session_tmp_env - requires network access +# tests/testing/test_fixtures.py::test_env - requires network tests to succeed +# tests/testing/test_fixtures.py::test_tmp_channel - requires network access # tests/trust/test_signature_verification.py requires conda_content_trust - not yet packaged py.test-%{python3_version} -vv -m "not integration" \ --deselect=tests/test_activate.py::test_activate_same_environment \ @@ -224,6 +224,8 @@ py.test-%{python3_version} -vv -m "not integration" \ --deselect=tests/test_activate.py::test_build_stack_shlvl_1 \ --deselect=tests/test_activate.py::test_get_env_vars_big_whitespace \ --deselect=tests/test_activate.py::test_get_env_vars_empty_file \ + --deselect=tests/test_activate.py::test_pre_post_command_invoked[hook] \ + --deselect=tests/test_activate.py::test_pre_post_command_raises[hook] \ --deselect=tests/test_cli.py::TestJson::test_list \ --deselect=tests/test_cli.py::test_run_returns_int \ --deselect=tests/test_cli.py::test_run_returns_nonzero_errorlevel \ @@ -234,9 +236,6 @@ py.test-%{python3_version} -vv -m "not integration" \ --deselect=tests/test_install.py::test_install_mkdir \ --deselect=tests/test_misc.py::test_explicit_missing_cache_entries \ --ignore=tests/env/specs/test_binstar.py \ - --deselect=tests/env/test_create.py::test_create_env_json[example/environment.yml] \ - --deselect=tests/env/test_create.py::test_create_env_json[example/environment_with_pip.yml] \ - --deselect=tests/env/test_create.py::test_create_update_remote_env_file \ --deselect='tests/cli/test_common.py::test_is_active_prefix[active_prefix-True]' \ --deselect=tests/cli/test_config.py::test_conda_config_describe \ --deselect=tests/cli/test_config.py::test_conda_config_validate \ @@ -245,6 +244,9 @@ py.test-%{python3_version} -vv -m "not integration" \ --deselect=tests/cli/test_main_clean.py \ --deselect=tests/cli/test_main_info.py::test_info_python_output \ --deselect=tests/cli/test_main_info.py::test_info_conda_json \ + --deselect=tests/cli/test_main_install.py::test_conda_pip_interop_dependency_satisfied_by_pip \ + --deselect=tests/cli/test_main_install.py::test_install_from_extracted_package \ + --deselect=tests/cli/test_main_install.py::test_install_mkdir \ --deselect=tests/cli/test_main_list.py::test_list \ --deselect=tests/cli/test_main_list.py::test_list_reverse \ --deselect=tests/cli/test_main_notices.py::test_notices_appear_once_when_running_decorated_commands \ @@ -254,6 +256,7 @@ py.test-%{python3_version} -vv -m "not integration" \ --deselect=tests/cli/test_main_rename.py \ --deselect=tests/cli/test_main_run.py \ --deselect=tests/cli/test_subcommands.py::test_create[libmamba] \ + --deselect=tests/cli/test_subcommands.py::test_doctor \ --deselect=tests/cli/test_subcommands.py::test_env_create \ --deselect=tests/cli/test_subcommands.py::test_env_update \ --deselect=tests/cli/test_subcommands.py::test_init \ @@ -280,6 +283,10 @@ py.test-%{python3_version} -vv -m "not integration" \ --deselect=tests/core/test_solve.py::test_fast_update_with_update_modifier_not_set[libmamba] \ --deselect=tests/core/test_solve.py::test_timestamps_1[libmamba] \ --deselect=tests/core/test_solve.py::test_remove_with_constrained_dependencies[libmamba] \ + --deselect=tests/env/test_create.py::test_create_env_json[example/environment.yml] \ + --deselect=tests/env/test_create.py::test_create_env_json[example/environment_with_pip.yml] \ + --deselect=tests/env/test_create.py::test_create_update_remote_env_file \ + --deselect=tests/env/test_create.py::test_protected_dirs_error_for_env_create \ --deselect=tests/gateways/test_jlap.py::test_download_and_hash \ --deselect=tests/gateways/test_jlap.py::test_jlap_fetch_ssl[True] \ --deselect=tests/gateways/test_jlap.py::test_jlap_fetch_ssl[False] \ @@ -306,10 +313,18 @@ py.test-%{python3_version} -vv -m "not integration" \ --deselect=tests/plugins/test_pre_solves.py::test_pre_solve_invoked \ --deselect=tests/plugins/test_post_solves.py::test_post_solve_action_raises_exception \ --deselect=tests/plugins/test_post_solves.py::test_post_solve_invoked \ + --deselect=tests/plugins/subcommands/doctor/test_cli.py::test_conda_doctor_happy_path \ + --deselect=tests/plugins/subcommands/doctor/test_cli.py::test_conda_doctor_happy_path_verbose \ --deselect=tests/plugins/subcommands/doctor/test_cli.py::test_conda_doctor_with_test_environment \ + --deselect=tests/plugins/test_health_checks.py::test_health_check_ran \ + --deselect=tests/plugins/test_subcommands.py::test_help \ --deselect=tests/core/test_prefix_data.py::test_get_environment_env_vars \ --deselect=tests/core/test_prefix_data.py::test_set_unset_environment_env_vars \ --deselect=tests/core/test_prefix_data.py::test_set_unset_environment_env_vars_no_exist \ + --deselect=tests/testing/test_fixtures.py::test_tmp_env \ + --deselect=tests/testing/test_fixtures.py::test_session_tmp_env \ + --deselect=tests/testing/test_fixtures.py::test_env \ + --deselect=tests/testing/test_fixtures.py::test_tmp_channel \ --ignore=tests/trust \ conda tests %endif diff --git a/sources b/sources index 521780f..35af575 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (conda-24.7.1.tar.gz) = 8fbd8e868a9ac0a73c0d940a393ebbf25f16d1b82ca6c59691e148dbb20c7d4767794fae72cd9a84f071714065e80f8f859f629a239e75feaf43c5d570625a59 +SHA512 (conda-24.9.1.tar.gz) = a8aa570609ec313f9a79755eb893a0b8171abedce550fc46236622a9eed08d536d3eadcd03e3f3ba476a433169feb3339b72a42ce171712b065de9b353df13ff From c03d4ab444b3dc30c4301db2f6894f9c5a4e161d Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Tue, 8 Oct 2024 21:05:19 -0600 Subject: [PATCH 16/32] Set default channel to conda-forge (rhbz#2279958) --- conda.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conda.spec b/conda.spec index b5e29b3..275a685 100644 --- a/conda.spec +++ b/conda.spec @@ -133,6 +133,8 @@ sed -i -e '/"--cov/d' pyproject.toml mkdir -p %{buildroot}%{_sysconfdir}/conda/condarc.d mkdir -p %{buildroot}%{_datadir}/conda/condarc.d cat >%{buildroot}%{_datadir}/conda/condarc.d/defaults.yaml < Date: Thu, 17 Oct 2024 07:47:42 -0600 Subject: [PATCH 17/32] Update to 24.9.2 --- conda.spec | 2 +- sources | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conda.spec b/conda.spec index 275a685..25b475a 100644 --- a/conda.spec +++ b/conda.spec @@ -1,7 +1,7 @@ %bcond_without tests Name: conda -Version: 24.9.1 +Version: 24.9.2 Release: %autorelease Summary: Cross-platform, Python-agnostic binary package manager diff --git a/sources b/sources index 35af575..fb653ee 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (conda-24.9.1.tar.gz) = a8aa570609ec313f9a79755eb893a0b8171abedce550fc46236622a9eed08d536d3eadcd03e3f3ba476a433169feb3339b72a42ce171712b065de9b353df13ff +SHA512 (conda-24.9.2.tar.gz) = b293253eb8174580dfd63142863c7652c285912fb64253bef5bf7994bfa9ee6dec71af926f7082613d44b9c97d966877d86815b6b19f45319b9edf844978f3ee From f8dda6467951bfb93816f93e385a401a34ee5d54 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Sat, 30 Nov 2024 13:54:57 -0700 Subject: [PATCH 18/32] Update to 24.11.0 --- 0002-Use-main-entry-point-for-conda-and-re-add-conda-env-.patch | 2 +- conda.spec | 2 +- sources | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/0002-Use-main-entry-point-for-conda-and-re-add-conda-env-.patch b/0002-Use-main-entry-point-for-conda-and-re-add-conda-env-.patch index 4ecaa47..d51e992 100644 --- a/0002-Use-main-entry-point-for-conda-and-re-add-conda-env-.patch +++ b/0002-Use-main-entry-point-for-conda-and-re-add-conda-env-.patch @@ -13,7 +13,7 @@ index 443243a..2b44cd1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,8 @@ readme = "README.md" - requires-python = ">=3.8" + requires-python = ">=3.9" [project.scripts] -conda = "conda.cli.main_pip:main" diff --git a/conda.spec b/conda.spec index 25b475a..bfb6d02 100644 --- a/conda.spec +++ b/conda.spec @@ -1,7 +1,7 @@ %bcond_without tests Name: conda -Version: 24.9.2 +Version: 24.11.0 Release: %autorelease Summary: Cross-platform, Python-agnostic binary package manager diff --git a/sources b/sources index fb653ee..ec434b3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (conda-24.9.2.tar.gz) = b293253eb8174580dfd63142863c7652c285912fb64253bef5bf7994bfa9ee6dec71af926f7082613d44b9c97d966877d86815b6b19f45319b9edf844978f3ee +SHA512 (conda-24.11.0.tar.gz) = 2664305e4e1e4214cabd42e55dc0f31ed1fc3b65397dfc56d90f115686f73346172637955a12da3f28f8fd2dc4520f3fe45185e19874f49d234dbfa57829ef1c From 983031fe72e16fa155f79de1678159cb64d4c31c Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Wed, 11 Dec 2024 20:33:50 -0700 Subject: [PATCH 19/32] Update to 24.11.1 --- conda.spec | 4 +++- sources | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/conda.spec b/conda.spec index bfb6d02..89b2df2 100644 --- a/conda.spec +++ b/conda.spec @@ -1,7 +1,7 @@ %bcond_without tests Name: conda -Version: 24.11.0 +Version: 24.11.1 Release: %autorelease Summary: Cross-platform, Python-agnostic binary package manager @@ -174,6 +174,7 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} conda info # test_ProgressiveFetchExtract_prefers_conda_v2_format, test_subdir_data_prefers_conda_to_tar_bz2, # test_use_only_tar_bz2 fail in F31 koji, but not with mock --enablerepo=local. Let's disable # them for now. +# tests/cli/test_all_commands.py::test_denylist_channels - conda.exceptions.EnvironmentLocationNotFound: Not a conda environment: /usr # tests/cli/test_conda_argparse.py::test_list_through_python_api does not recognize /usr as a conda environment # tests/cli/test_main_{clean,info,install,list,list_reverse,rename}.py tests require network access # tests/cli/test_main_notices.py::test_notices_appear_once_when_running_decorated_commands needs a conda_build fixture that we remove @@ -238,6 +239,7 @@ py.test-%{python3_version} -vv -m "not integration" \ --deselect=tests/test_install.py::test_install_mkdir \ --deselect=tests/test_misc.py::test_explicit_missing_cache_entries \ --ignore=tests/env/specs/test_binstar.py \ + --deselect=tests/cli/test_all_commands.py::test_denylist_channels \ --deselect='tests/cli/test_common.py::test_is_active_prefix[active_prefix-True]' \ --deselect=tests/cli/test_config.py::test_conda_config_describe \ --deselect=tests/cli/test_config.py::test_conda_config_validate \ diff --git a/sources b/sources index ec434b3..9ecda71 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (conda-24.11.0.tar.gz) = 2664305e4e1e4214cabd42e55dc0f31ed1fc3b65397dfc56d90f115686f73346172637955a12da3f28f8fd2dc4520f3fe45185e19874f49d234dbfa57829ef1c +SHA512 (conda-24.11.1.tar.gz) = 2db8dcc8401f624b5de2ab9476cb34e5456709ce5a30e562561956413f3a01965c75115aa78b5bee9612145cee6c9d526a8470d869419013f386883e29ee525c From ba451f3238ac519c49938d7f116d994988e13ad2 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Fri, 20 Dec 2024 22:01:51 -0700 Subject: [PATCH 20/32] Update to 24.11.2 --- conda.spec | 2 +- sources | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conda.spec b/conda.spec index 89b2df2..f2db570 100644 --- a/conda.spec +++ b/conda.spec @@ -1,7 +1,7 @@ %bcond_without tests Name: conda -Version: 24.11.1 +Version: 24.11.2 Release: %autorelease Summary: Cross-platform, Python-agnostic binary package manager diff --git a/sources b/sources index 9ecda71..27e24b7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (conda-24.11.1.tar.gz) = 2db8dcc8401f624b5de2ab9476cb34e5456709ce5a30e562561956413f3a01965c75115aa78b5bee9612145cee6c9d526a8470d869419013f386883e29ee525c +SHA512 (conda-24.11.2.tar.gz) = ee79185b247f6f293671179e033428febf3c2a5d6c93b5ee4eaa429d3d7316aee094e5338cfec8821e15c0d780a829e2283b36155dbad51a29965b8b6d4a7daa From 021e8124518e5f62d13ca66fa95fe6387ab1c54c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 16 Jan 2025 14:23:14 +0000 Subject: [PATCH 21/32] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 5f82b139a5baebab17048ba7b2e9f1c0abeb1f0a Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Mon, 20 Jan 2025 17:14:43 -0700 Subject: [PATCH 22/32] Update to 24.11.3 --- conda.spec | 2 +- sources | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conda.spec b/conda.spec index f2db570..df427e2 100644 --- a/conda.spec +++ b/conda.spec @@ -1,7 +1,7 @@ %bcond_without tests Name: conda -Version: 24.11.2 +Version: 24.11.3 Release: %autorelease Summary: Cross-platform, Python-agnostic binary package manager diff --git a/sources b/sources index 27e24b7..a2aa5f8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (conda-24.11.2.tar.gz) = ee79185b247f6f293671179e033428febf3c2a5d6c93b5ee4eaa429d3d7316aee094e5338cfec8821e15c0d780a829e2283b36155dbad51a29965b8b6d4a7daa +SHA512 (conda-24.11.3.tar.gz) = e6bf3a18aa44894243e44140ab2f9911f405d9fc8c518cbdb8eccf5cf4051df7326748e7b03649c3941a854b09b87bbb176632310bb92e5303308fc07d4a4cc6 From d7c8539d8c3211cacf24e28f9f9f4807516dc21a Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 6 Jun 2025 16:44:31 +0200 Subject: [PATCH 23/32] Bootstrap for Python 3.14 --- conda.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/conda.spec b/conda.spec index df427e2..98458f2 100644 --- a/conda.spec +++ b/conda.spec @@ -1,3 +1,4 @@ +%global _without_tests 1 %bcond_without tests Name: conda From b7b10a0b9b1cad2dd718fdbcc06a63b698739950 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Wed, 18 Jun 2025 15:50:46 +0200 Subject: [PATCH 24/32] Bootstrap for Python 3.14.0b3 bytecode From 76ff27954e77883c737e788a35d16566ad21171b Mon Sep 17 00:00:00 2001 From: Python Maint Date: Mon, 21 Jul 2025 11:29:50 +0200 Subject: [PATCH 25/32] Unbootstrap for Python 3.14 --- conda.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/conda.spec b/conda.spec index 98458f2..df427e2 100644 --- a/conda.spec +++ b/conda.spec @@ -1,4 +1,3 @@ -%global _without_tests 1 %bcond_without tests Name: conda From 1b5bb91b0299dd060cd029bda93b7a00089b1d57 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 23 Jul 2025 18:36:22 +0000 Subject: [PATCH 26/32] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From 14d9eba33695a8505c6895d8f848f59fb94dc583 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 15 Aug 2025 12:42:31 +0200 Subject: [PATCH 27/32] Rebuilt for Python 3.14.0rc2 bytecode From 0884a0436bae144f8742ef18f8b634283c31d1da Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 19 Sep 2025 12:11:41 +0200 Subject: [PATCH 28/32] Rebuilt for Python 3.14.0rc3 bytecode From dd5dca4cb90cefe1e2a229829542db9772b52f86 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Wed, 6 Aug 2025 10:50:58 -0600 Subject: [PATCH 29/32] Update to 25.11.0 (rhbz#2356170) --- ...oint-for-conda-and-re-add-conda-env-.patch | 11 +- ...hell-assume-shell-plugins-are-in-etc.patch | 38 +++--- 14117.patch | 32 ----- conda.spec | 124 ++++++++++++++++-- sources | 2 +- 5 files changed, 136 insertions(+), 71 deletions(-) delete mode 100644 14117.patch diff --git a/0002-Use-main-entry-point-for-conda-and-re-add-conda-env-.patch b/0002-Use-main-entry-point-for-conda-and-re-add-conda-env-.patch index d51e992..3d3d298 100644 --- a/0002-Use-main-entry-point-for-conda-and-re-add-conda-env-.patch +++ b/0002-Use-main-entry-point-for-conda-and-re-add-conda-env-.patch @@ -1,19 +1,18 @@ -From fb4189dc963862edd92e22426eac7dd672688163 Mon Sep 17 00:00:00 2001 +From f8f9a23a2a7540ec39cab9606f8b95aa8b346b65 Mon Sep 17 00:00:00 2001 From: rpm-build -Date: Tue, 30 Jul 2024 21:38:56 -0600 +Date: Mon, 24 Nov 2025 17:30:20 -0700 Subject: [PATCH 2/2] Use main entry point for conda and re-add conda-env entry - point, no need to run conda init --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml -index 443243a..2b44cd1 100644 +index 7c8f24f..049859b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,8 @@ readme = "README.md" - requires-python = ">=3.9" + requires-python = ">=3.10" [project.scripts] -conda = "conda.cli.main_pip:main" @@ -23,5 +22,5 @@ index 443243a..2b44cd1 100644 [project.urls] changelog = "https://github.com/conda/conda/blob/main/CHANGELOG.md" -- -2.45.2 +2.51.1 diff --git a/0006-shell-assume-shell-plugins-are-in-etc.patch b/0006-shell-assume-shell-plugins-are-in-etc.patch index 7349d47..68c60df 100644 --- a/0006-shell-assume-shell-plugins-are-in-etc.patch +++ b/0006-shell-assume-shell-plugins-are-in-etc.patch @@ -1,10 +1,10 @@ diff --git a/conda/activate.py b/conda/activate.py -index 9e487a0..6833adb 100644 +index f79a03f..951bed4 100644 --- a/conda/activate.py +++ b/conda/activate.py -@@ -1133,13 +1133,7 @@ class PosixActivator(_Activator): +@@ -914,13 +914,7 @@ class PosixActivator(_Activator): set_var_tmpl = "%s='%s'" - run_script_tmpl = '. "%s"' + run_script_tmpl = ". \"`cygpath '%s'`\"" if on_win else '. "%s"' - hook_source_path = Path( - CONDA_PACKAGE_ROOT, @@ -14,12 +14,12 @@ index 9e487a0..6833adb 100644 - "conda.sh", - ) + hook_source_path = Path("/etc/profile.d/conda.sh") + inline_hook_source = True def _update_prompt(self, set_vars, conda_prompt_modifier): - ps1 = os.getenv("PS1", "") -@@ -1186,13 +1180,7 @@ class CshActivator(_Activator): +@@ -956,13 +950,7 @@ class CshActivator(_Activator): set_var_tmpl = "set %s='%s'" - run_script_tmpl = 'source "%s"' + run_script_tmpl = "source \"`cygpath '%s'`\"" if on_win else 'source "%s"' - hook_source_path = Path( - CONDA_PACKAGE_ROOT, @@ -29,19 +29,19 @@ index 9e487a0..6833adb 100644 - "conda.csh", - ) + hook_source_path = Path("/etc/profile.d/conda.csh") - - def _update_prompt(self, set_vars, conda_prompt_modifier): - prompt = os.getenv("prompt", "") -@@ -1248,7 +1236,7 @@ class XonshActivator(_Activator): + # TCSH/CSH removes newlines when doing command substitution (see `man tcsh`), + # source conda.csh directly and use line terminators to separate commands + inline_hook_source = False +@@ -1001,7 +989,7 @@ class XonshActivator(_Activator): else 'source-bash --suppress-skip-message -n "%s"' ) - hook_source_path = Path(CONDA_PACKAGE_ROOT, "shell", "conda.xsh") + hook_source_path = Path("/etc/profile.d/conda.xsh") + inline_hook_source = True - def _hook_preamble(self) -> str: - return f'$CONDA_EXE = "{self.path_conversion(context.conda_exe)}"' -@@ -1289,14 +1277,7 @@ class FishActivator(_Activator): + def template_path_var(self, key: str, value: str) -> str: +@@ -1055,14 +1043,7 @@ class FishActivator(_Activator): set_var_tmpl = 'set -g %s "%s"' run_script_tmpl = 'source "%s"' @@ -54,19 +54,19 @@ index 9e487a0..6833adb 100644 - "conda.fish", - ) + hook_source_path = Path("/etc/fish/conf.d/conda.fish") + inline_hook_source = True + - def _hook_preamble(self) -> str: - if on_win: diff --git a/conda/base/context.py b/conda/base/context.py -index 9542d3e..9376108 100644 +index adf6d6e..612ea4a 100644 --- a/conda/base/context.py +++ b/conda/base/context.py -@@ -797,7 +797,7 @@ class Context(Configuration): - def av_data_dir(self): +@@ -848,7 +848,7 @@ class Context(Configuration): + def av_data_dir(self) -> PathType: """Where critical artifact verification data (e.g., various public keys) can be found.""" # TODO (AV): Find ways to make this user configurable? - return join(self.conda_prefix, "etc", "conda") + return '/etc/conda' @property - def signing_metadata_url_base(self): + def signing_metadata_url_base(self) -> str | None: diff --git a/14117.patch b/14117.patch deleted file mode 100644 index bd8fbd7..0000000 --- a/14117.patch +++ /dev/null @@ -1,32 +0,0 @@ -From 62196c897df3d7aea7063d0c08d1bf6e6fd91600 Mon Sep 17 00:00:00 2001 -From: "Benjamin A. Beasley" -Date: Fri, 2 Aug 2024 08:50:43 -0400 -Subject: [PATCH] Adapt for logging lock internal changes in Python 3.13 - ---- - conda/common/io.py | 9 +++++++-- - 1 file changed, 7 insertions(+), 2 deletions(-) - -diff --git a/conda/common/io.py b/conda/common/io.py -index 91f37e144d0..d3b655e47f4 100644 ---- a/conda/common/io.py -+++ b/conda/common/io.py -@@ -269,11 +269,16 @@ def argv(args_list): - - @contextmanager - def _logger_lock(): -- logging._acquireLock() -+ try: -+ # Python 3.13+ -+ acquire, release = logging._prepareFork, logging._afterFork -+ except AttributeError: -+ acquire, release = logging._acquireLock, logging._releaseLock -+ acquire() - try: - yield - finally: -- logging._releaseLock() -+ release() - - - @contextmanager diff --git a/conda.spec b/conda.spec index df427e2..fcd60a6 100644 --- a/conda.spec +++ b/conda.spec @@ -1,7 +1,7 @@ %bcond_without tests Name: conda -Version: 24.11.3 +Version: 25.11.0 Release: %autorelease Summary: Cross-platform, Python-agnostic binary package manager @@ -16,8 +16,6 @@ Source1: https://raw.githubusercontent.com/tartansandal/conda-bash-comple Patch0: 0001-conda_sys_prefix.patch.patch # Use main entry point for conda and re-add conda-env entry point, no need to run conda init Patch1: 0002-Use-main-entry-point-for-conda-and-re-add-conda-env-.patch -# Python 3.13 lock support -Patch4: https://github.com/conda/conda/pull/14117.patch Patch10004: 0004-Do-not-try-to-run-usr-bin-python.patch Patch10005: 0005-Fix-failing-tests-in-test_api.py.patch @@ -28,13 +26,13 @@ BuildArch: noarch BuildRequires: pkgconfig(bash-completion) %global bash_completionsdir %(pkg-config --variable=completionsdir bash-completion 2>/dev/null || echo '/etc/bash_completion.d') BuildRequires: sed +# For man pages +BuildRequires: python-conda-sphinx-theme Requires: python%{python3_pkgversion}-conda = %{version}-%{release} # Removed upstream in favour of calling "conda activate" in version 4.4.0 Obsoletes: conda-activate < 4.4 -%?python_enable_dependency_generator - %global _description %{expand: Conda is a cross-platform, Python-agnostic binary package manager. It @@ -65,12 +63,16 @@ Summary: %{summary} BuildRequires: python%{python3_pkgversion}-devel # For tests BuildRequires: python-unversioned-command +BuildRequires: python%{python3_pkgversion}-boltons BuildRequires: python%{python3_pkgversion}-boto3 +BuildRequires: python%{python3_pkgversion}-conda-libmamba-solver BuildRequires: python%{python3_pkgversion}-flask BuildRequires: python%{python3_pkgversion}-jsonpatch +BuildRequires: python%{python3_pkgversion}-libmambapy BuildRequires: python%{python3_pkgversion}-pexpect BuildRequires: python%{python3_pkgversion}-pytest-mock BuildRequires: python%{python3_pkgversion}-pytest-rerunfailures +BuildRequires: python%{python3_pkgversion}-pytest-split BuildRequires: python%{python3_pkgversion}-pytest-timeout BuildRequires: python%{python3_pkgversion}-pytest-xprocess BuildRequires: python%{python3_pkgversion}-responses @@ -80,8 +82,6 @@ Provides: bundled(python%{python3_pkgversion}-appdirs) = 1.2.0 Provides: bundled(python%{python3_pkgversion}-auxlib) = 0.0.43 Provides: bundled(python%{python3_pkgversion}-boltons) = 21.0.0 -%{?python_provide:%python_provide python%{python3_pkgversion}-conda} - %description -n python%{python3_pkgversion}-conda %_description %prep @@ -93,11 +93,6 @@ sed -i -e '/ruamel.yaml/s/,<[0-9.]*//' pyproject.toml # pytest-split/xdoctest not packaged, store-duration not needed sed -i -e '/splitting-algorithm/d' -e '/store-durations/d' -e '/xdoctest/d' pyproject.toml -# Use system versions -rm -r conda/_vendor/frozendict -find conda -name \*.py | xargs sed -i -e 's/^\( *\)from .*_vendor\.\(frozendict.*\) import/\1from \2 import/' -sed -i -e '/^dependencies = /a\ \ "frozendict",' pyproject.toml - # Unpackaged - use vendored version sed -i -e '/"boltons *>/d' pyproject.toml @@ -174,7 +169,61 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} conda info # test_ProgressiveFetchExtract_prefers_conda_v2_format, test_subdir_data_prefers_conda_to_tar_bz2, # test_use_only_tar_bz2 fail in F31 koji, but not with mock --enablerepo=local. Let's disable # them for now. +# tests/base/test_context.py::test_default_activation_prefix - conda.exceptions.CondaHTTPError # tests/cli/test_all_commands.py::test_denylist_channels - conda.exceptions.EnvironmentLocationNotFound: Not a conda environment: /usr +# tests/cli/test_cli_install.py::test_frozen_env_cep22[libmamba] - conda.exceptions.CondaHTTPError +# tests/cli/test_cli_install.py::test_frozen_env_cep22[classic] - conda.exceptions.CondaHTTPError +# Unsure - but perhaps config does not has a subdir? +# tests/cli/test_common.py::test_validate_subdir_config - TypeError: expected str, bytes or os.PathLike object, not NoneType +# tests/cli/test_common.py::test_validate_subdir_config_invalid_subdir - TypeError: argument should be a str or an os.PathLike object where __fspath__ returns a str, not 'NoneType' +# Would need an installed conda to test +# tests/cli/test_main.py::test_main_sourced_unix_shells_no_line_ending_fix[bash-expected_patterns0] - FileNotFoundError: [Errno 2] No such file or directory: '/etc/profile.d/conda.sh' +# tests/cli/test_main.py::test_main_sourced_unix_shells_no_line_ending_fix[zsh-expected_patterns1] - FileNotFoundError: [Errno 2] No such file or directory: '/etc/profile.d/conda.sh' +# tests/cli/test_main.py::test_main_sourced_unix_shells_no_line_ending_fix[fish-expected_patterns2] - FileNotFoundError: [Errno 2] No such file or directory: '/etc/fish/conf.d/conda.fish' +# tests/cli/test_main.py::test_main_sourced_unix_shells_no_line_ending_fix[xonsh-expected_patterns5] - FileNotFoundError: [Errno 2] No such file or directory: '/etc/profile.d/conda.xsh' +# tests/cli/test_main_export.py::test_export_preserves_channels_from_installed_packages - AssertionError: Expected to find conda-forge or defaults in channels: ['https://conda.anaconda.org/conda-forge'] +# tests/cli/test_main_export.py::test_export_package_alphabetical_ordering - AssertionError: Should have multiple packages for ordering test +# tests/cli/test_main_export.py::test_export_no_builds_format - AssertionError: Should have conda packages to test +# tests/cli/test_main_export.py::test_export_regular_format_consistency - AssertionError: Should have conda packages to test +# tests/cli/test_main_export.py::test_export_pip_dependencies_handling[environment-yaml-yaml_safe_load] - AssertionError: Should have conda dependencies +# tests/cli/test_main_export.py::test_export_pip_dependencies_handling[environment-json-loads] - AssertionError: Should have conda dependencies +# tests/cli/test_main_export.py::test_export_with_pip_dependencies_integration[YAML--yaml_safe_load] - conda.exceptions.CondaHTTPError +# tests/cli/test_main_export.py::test_export_with_pip_dependencies_integration[JSON---format=json-loads] - conda.exceptions.CondaHTTPError +# tests/cli/test_main_export.py::test_export_explicit_format_validation_errors - conda.exceptions.CondaHTTPError +# tests/cli/test_main_export.py::test_export_multiple_platforms - conda.exceptions.CondaHTTPError +# tests/cli/test_main_export.py::test_export_single_platform_different_platform - conda.exceptions.CondaHTTPError +# The /usr base env does not have last_modified +# tests/cli/test_main_info.py::test_info_json - AssertionError: assert False +# tests/cli/test_main_install.py::test_build_version_shows_as_changed - conda.exceptions.CondaHTTPError +# tests/cli/test_main_list.py::test_fields_all - conda.exceptions.DirectoryNotACondaEnvironmentError: The target directory exists, but it is not a conda environment. +# tests/cli/test_main_list.py::test_fields_invalid - conda.exceptions.DirectoryNotACondaEnvironmentError: The target directory exists, but it is not a conda environment. +# tests/cli/test_main_list.py::test_exit_codes - conda.exceptions.DirectoryNotACondaEnvironmentError: The target directory exists, but it is not a conda environment. +# tests/cli/test_main_update.py::test_update - conda.exceptions.CondaHTTPError +# tests/cli/test_main_update.py::test_dont_update_packages_with_version_constraints - conda.exceptions.NoBaseEnvironmentError: This conda installation has no default base environment. Use +# tests/core/test_prefix_data.py::test_get_packages_behavior_with_interoperability - conda.exceptions.CondaHTTPError +# tests/core/test_prefix_data.py::test_empty_environment_package_methods - conda.exceptions.CondaHTTPError +# tests/core/test_prefix_data.py::test_pinned_specs_conda_meta_pinned - conda.exceptions.CondaHTTPError +# tests/core/test_solve.py::test_pinned_specs_conda_meta_pinned[libmamba] - conda.exceptions.CondaHTTPError +# tests/core/test_solve.py::test_pinned_specs_condarc[libmamba] - conda.exceptions.CondaHTTPError +# tests/core/test_solve.py::test_pinned_specs_all[libmamba] - conda.exceptions.CondaHTTPError +# These are HTTP errors +# tests/env/installers/test_conda_installer_explicit.py::test_installer_installs_explicit - conda.CondaMultiError +# tests/env/specs/test_explicit.py::test_environment - conda.CondaMultiError +# tests/env/test_create.py::test_create_env_from_non_existent_plugin - conda.exceptions.CondaHTTPError +# tests/models/test_environment.py::test_extrapolate - conda.exceptions.CondaHTTPError +# tests/models/test_environment.py::test_explicit_packages - conda.CondaMultiError +# tests/plugins/subcommands/doctor/test_health_checks.py::test_pinned_will_formatted_check[-\u2705] - conda.exceptions.CondaHTTPError +# tests/plugins/subcommands/doctor/test_health_checks.py::test_pinned_will_formatted_check[conda 1.11-\u2705] - conda.exceptions.CondaHTTPError +# tests/plugins/subcommands/doctor/test_health_checks.py::test_pinned_will_formatted_check[conda 1.11, otherpackages==1-\u274c] - conda.exceptions.CondaHTTPError +# tests/plugins/subcommands/doctor/test_health_checks.py::test_pinned_will_formatted_check["conda"-\u274c] - conda.exceptions.CondaHTTPError +# tests/plugins/subcommands/doctor/test_health_checks.py::test_pinned_will_formatted_check[imnotinstalledyet-\u274c] - conda.exceptions.CondaHTTPError +# tests/plugins/subcommands/doctor/test_health_checks.py::test_file_locking_supported[True] - conda.exceptions.DirectoryNotACondaEnvironmentError: The target directory exists, but it is not a conda environment. +# tests/plugins/subcommands/doctor/test_health_checks.py::test_file_locking_supported[False] - conda.exceptions.DirectoryNotACondaEnvironmentError: The target directory exists, but it is not a conda environment. +# tests/plugins/subcommands/doctor/test_health_checks.py::test_file_locking_not_supported - conda.exceptions.DirectoryNotACondaEnvironmentError: The target directory exists, but it is not a conda environment. +# tests/plugins/test_transaction_hooks.py::test_transaction_hooks_invoked - conda.exceptions.CondaHTTPError +# These are network errors +# tests/plugins/test_transaction_hooks.py::test_pre_transaction_raises_exception - AssertionError: Regex pattern did not match. +# tests/plugins/test_transaction_hooks.py::test_post_transaction_raises_exception - AssertionError: Regex pattern did not match. # tests/cli/test_conda_argparse.py::test_list_through_python_api does not recognize /usr as a conda environment # tests/cli/test_main_{clean,info,install,list,list_reverse,rename}.py tests require network access # tests/cli/test_main_notices.py::test_notices_appear_once_when_running_decorated_commands needs a conda_build fixture that we remove @@ -214,13 +263,15 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} conda info # tests/testing/test_fixtures.py::test_env - requires network tests to succeed # tests/testing/test_fixtures.py::test_tmp_channel - requires network access # tests/trust/test_signature_verification.py requires conda_content_trust - not yet packaged -py.test-%{python3_version} -vv -m "not integration" \ +py.test-%{python3_version} -vv -rfs -m "not integration" \ --deselect=tests/test_activate.py::test_activate_same_environment \ --deselect=tests/test_activate.py::test_build_activate_dont_activate_unset_var \ + --deselect=tests/test_activate.py::test_build_activate_dont_use_PATH \ --deselect=tests/test_activate.py::test_build_activate_restore_unset_env_vars \ --deselect=tests/test_activate.py::test_build_activate_shlvl_warn_clobber_vars \ --deselect=tests/test_activate.py::test_build_activate_shlvl_0 \ --deselect=tests/test_activate.py::test_build_activate_shlvl_1 \ + --deselect=tests/test_activate.py::test_build_deactivate_dont_use_PATH \ --deselect=tests/test_activate.py::test_build_deactivate_shlvl_2_from_stack \ --deselect=tests/test_activate.py::test_build_deactivate_shlvl_2_from_activate \ --deselect=tests/test_activate.py::test_build_deactivate_shlvl_1 \ @@ -239,6 +290,52 @@ py.test-%{python3_version} -vv -m "not integration" \ --deselect=tests/test_install.py::test_install_mkdir \ --deselect=tests/test_misc.py::test_explicit_missing_cache_entries \ --ignore=tests/env/specs/test_binstar.py \ + --deselect=tests/base/test_context.py::test_default_activation_prefix \ + --deselect=tests/cli/test_cli_install.py::test_frozen_env_cep22[libmamba] \ + --deselect=tests/cli/test_cli_install.py::test_frozen_env_cep22[classic] \ + --deselect=tests/cli/test_common.py::test_validate_subdir_config \ + --deselect=tests/cli/test_common.py::test_validate_subdir_config_invalid_subdir \ + --deselect=tests/cli/test_main.py::test_main_sourced_unix_shells_no_line_ending_fix[bash-expected_patterns0] \ + --deselect=tests/cli/test_main.py::test_main_sourced_unix_shells_no_line_ending_fix[zsh-expected_patterns1] \ + --deselect=tests/cli/test_main.py::test_main_sourced_unix_shells_no_line_ending_fix[fish-expected_patterns2] \ + --deselect=tests/cli/test_main.py::test_main_sourced_unix_shells_no_line_ending_fix[xonsh-expected_patterns5] \ + --deselect=tests/cli/test_main_export.py::test_export_preserves_channels_from_installed_packages \ + --deselect=tests/cli/test_main_export.py::test_export_package_alphabetical_ordering \ + --deselect=tests/cli/test_main_export.py::test_export_no_builds_format \ + --deselect=tests/cli/test_main_export.py::test_export_regular_format_consistency \ + --deselect=tests/cli/test_main_export.py::test_export_pip_dependencies_handling[environment-yaml-yaml_safe_load] \ + --deselect=tests/cli/test_main_export.py::test_export_pip_dependencies_handling[environment-json-loads] \ + --deselect=tests/cli/test_main_export.py::test_export_with_pip_dependencies_integration[YAML--yaml_safe_load] \ + --deselect=tests/cli/test_main_export.py::test_export_with_pip_dependencies_integration[JSON---format=json-loads] \ + --deselect=tests/cli/test_main_export.py::test_export_explicit_format_validation_errors \ + --deselect=tests/cli/test_main_export.py::test_export_multiple_platforms \ + --deselect=tests/cli/test_main_export.py::test_export_single_platform_different_platform \ + --deselect=tests/cli/test_main_install.py::test_build_version_shows_as_changed \ + --deselect=tests/cli/test_main_list.py::test_fields_all \ + --deselect=tests/cli/test_main_list.py::test_fields_invalid \ + --deselect=tests/cli/test_main_list.py::test_exit_codes \ + --deselect=tests/cli/test_main_update.py::test_update \ + --deselect=tests/cli/test_main_update.py::test_dont_update_packages_with_version_constraints \ + --deselect=tests/core/test_prefix_data.py::test_get_packages_behavior_with_interoperability \ + --deselect=tests/core/test_prefix_data.py::test_empty_environment_package_methods \ + --deselect=tests/core/test_prefix_data.py::test_pinned_specs_conda_meta_pinned \ + --deselect=tests/core/test_prefix_data.py::test_unset_reserved_env_vars \ + --deselect=tests/core/test_prefix_data.py::test_warn_setting_reserved_env_vars \ + --deselect=tests/core/test_solve.py::test_pinned_specs_conda_meta_pinned[libmamba] \ + --deselect=tests/core/test_solve.py::test_pinned_specs_condarc[libmamba] \ + --deselect=tests/core/test_solve.py::test_pinned_specs_all[libmamba] \ + --deselect=tests/env/installers/test_conda_installer_explicit.py::test_installer_installs_explicit \ + --deselect=tests/env/specs/test_explicit.py::test_environment \ + --deselect=tests/env/test_create.py::test_create_env_from_non_existent_plugin \ + --deselect=tests/models/test_environment.py::test_extrapolate \ + --deselect=tests/models/test_environment.py::test_explicit_packages \ + --deselect=tests/plugins/subcommands/doctor/test_health_checks.py::test_pinned_will_formatted_check \ + --deselect=tests/plugins/subcommands/doctor/test_health_checks.py::test_file_locking_supported[True] \ + --deselect=tests/plugins/subcommands/doctor/test_health_checks.py::test_file_locking_supported[False] \ + --deselect=tests/plugins/subcommands/doctor/test_health_checks.py::test_file_locking_not_supported \ + --deselect=tests/plugins/test_transaction_hooks.py::test_transaction_hooks_invoked \ + --deselect=tests/plugins/test_transaction_hooks.py::test_pre_transaction_raises_exception \ + --deselect=tests/plugins/test_transaction_hooks.py::test_post_transaction_raises_exception \ --deselect=tests/cli/test_all_commands.py::test_denylist_channels \ --deselect='tests/cli/test_common.py::test_is_active_prefix[active_prefix-True]' \ --deselect=tests/cli/test_config.py::test_conda_config_describe \ @@ -248,6 +345,7 @@ py.test-%{python3_version} -vv -m "not integration" \ --deselect=tests/cli/test_main_clean.py \ --deselect=tests/cli/test_main_info.py::test_info_python_output \ --deselect=tests/cli/test_main_info.py::test_info_conda_json \ + --deselect=tests/cli/test_main_info.py::test_info_json \ --deselect=tests/cli/test_main_install.py::test_conda_pip_interop_dependency_satisfied_by_pip \ --deselect=tests/cli/test_main_install.py::test_install_from_extracted_package \ --deselect=tests/cli/test_main_install.py::test_install_mkdir \ diff --git a/sources b/sources index a2aa5f8..d1a78dd 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (conda-24.11.3.tar.gz) = e6bf3a18aa44894243e44140ab2f9911f405d9fc8c518cbdb8eccf5cf4051df7326748e7b03649c3941a854b09b87bbb176632310bb92e5303308fc07d4a4cc6 +SHA512 (conda-25.11.0.tar.gz) = 3ff1534d082fb9d67e1781f6ab04b5b29625cb6e2c38076417ed902c22cc150f1cb689e422be0978e43a750fbcb01c02b5264c9a95fe303ac73a34894059a5d9 From 3d686dc69a69579f03388503e0a91c2aba78dcc7 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Thu, 27 Nov 2025 12:01:55 -0700 Subject: [PATCH 30/32] Fix dependencies and bundled versions --- conda.spec | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/conda.spec b/conda.spec index fcd60a6..775e136 100644 --- a/conda.spec +++ b/conda.spec @@ -77,10 +77,8 @@ BuildRequires: python%{python3_pkgversion}-pytest-timeout BuildRequires: python%{python3_pkgversion}-pytest-xprocess BuildRequires: python%{python3_pkgversion}-responses -# Some versions in conda/_vendor/vendor.txt -Provides: bundled(python%{python3_pkgversion}-appdirs) = 1.2.0 +# conda uses a modified version of auxlib Provides: bundled(python%{python3_pkgversion}-auxlib) = 0.0.43 -Provides: bundled(python%{python3_pkgversion}-boltons) = 21.0.0 %description -n python%{python3_pkgversion}-conda %_description @@ -93,9 +91,6 @@ sed -i -e '/ruamel.yaml/s/,<[0-9.]*//' pyproject.toml # pytest-split/xdoctest not packaged, store-duration not needed sed -i -e '/splitting-algorithm/d' -e '/store-durations/d' -e '/xdoctest/d' pyproject.toml -# Unpackaged - use vendored version -sed -i -e '/"boltons *>/d' pyproject.toml - # Unpackaged - really only applicable for macOS/Windows? sed -i -e '/"truststore *>/d' pyproject.toml From c81db4c15e643d79e0f62772f8b6ddc88e1a3886 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Sun, 7 Dec 2025 10:51:37 -0700 Subject: [PATCH 31/32] Re-enable dep on conda-libmamba-solver --- conda.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conda.spec b/conda.spec index 775e136..601bfef 100644 --- a/conda.spec +++ b/conda.spec @@ -85,6 +85,9 @@ Provides: bundled(python%{python3_pkgversion}-auxlib) = 0.0.43 %prep %autosetup -p1 +# Re-enable dep on conda-libmamba-solver +sed -i -e '/"conda-libmamba-solver/s/# *//' pyproject.toml + # Do not restrict upper bound of ruamel-yaml sed -i -e '/ruamel.yaml/s/,<[0-9.]*//' pyproject.toml From 5867b044fe200c247503a029ff388f457669283f Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Fri, 12 Dec 2025 07:54:53 -0700 Subject: [PATCH 32/32] Update to 25.11.1 --- conda.spec | 2 +- sources | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conda.spec b/conda.spec index 601bfef..5e7e2c3 100644 --- a/conda.spec +++ b/conda.spec @@ -1,7 +1,7 @@ %bcond_without tests Name: conda -Version: 25.11.0 +Version: 25.11.1 Release: %autorelease Summary: Cross-platform, Python-agnostic binary package manager diff --git a/sources b/sources index d1a78dd..28be694 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (conda-25.11.0.tar.gz) = 3ff1534d082fb9d67e1781f6ab04b5b29625cb6e2c38076417ed902c22cc150f1cb689e422be0978e43a750fbcb01c02b5264c9a95fe303ac73a34894059a5d9 +SHA512 (conda-25.11.1.tar.gz) = ce04c8805ca51047cf1e1ebb945fcce1fbb559fe472d4f5fb4217d49b93b67c8e38baf735c6a9244b31d559247ec10d46e1e33caf8ac7fedc105ce3645121609