Hind-M
617be25ef1
Handle `git+https` pip urls ( #3764 )
2025-01-23 15:42:27 +01:00
Sandrine Pataut
9c856fd4a5
feat: add explicit flag to list command ( #3760 )
2025-01-21 17:35:52 +01:00
Hind-M
4a69e30d29
Fix dependency and `subdir` in repoquery `whoneeds` ( #3743 )
2025-01-20 17:05:12 +01:00
Julien Jerphanion
503f0aa9b0
fix: Use `LOG_DEBUG` for CUDA version detection ( #3757 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2025-01-17 15:42:18 +01:00
Ayaz Salikhov
c59969ab05
maint: Add missing thread and undefined sanitizers CMake options ( #3753 )
2025-01-16 14:05:35 +01:00
Ayaz Salikhov
9087a976be
maint: Don't exclude Changelog files from typos-conda ( #3748 )
2025-01-16 09:36:48 +01:00
Ayaz Salikhov
95eb248ee8
maint: Update pre-commit hooks ( #3746 )
2025-01-15 18:38:36 +01:00
Ayaz Salikhov
8591bbe4fd
maint: Correctly exclude json files in clang-format ( #3749 )
2025-01-15 18:38:03 +01:00
Sandrine Pataut
630b62fa83
feat: add reverse flag to list command ( #3705 )
2025-01-15 11:46:24 +01:00
Julien Jerphanion
0023a3b13a
release libmamba 2.0.6.rc0, micromamba 2.0.6.rc0, libmambapy 2.0.6.rc0
2025-01-14 11:14:17 +01:00
Ayaz Salikhov
d0c7458839
maint: Add prettier pre-commit hook ( #3663 )
2025-01-13 09:09:07 +01:00
Sandrine Pataut
30546a3957
add more condarc paths ( #3695 )
2025-01-10 11:45:59 +01:00
Julien Jerphanion
f3c7c7797e
fix: Add a hint on cache corruption ( #3736 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Klaim <Klaim@users.noreply.github.com>
2025-01-09 18:01:58 +01:00
Julien Jerphanion
0abd7d54e7
fix: Correctly populate lists of `MatchSpec` in `MTransaction`'s history ( #3724 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2025-01-06 17:25:17 +01:00
Julien Jerphanion
bb132c9bff
fix: Honour `CONDA_ENVS_PATH` again ( #3725 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2025-01-06 17:23:42 +01:00
Julien Jerphanion
4f97739aed
fix: Improve CUDA version detection ( #3700 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Klaim <Klaim@users.noreply.github.com>
2025-01-06 15:14:06 +01:00
Hind-M
9dd3999b8d
Fix install using explicit url ( #3710 )
2025-01-06 12:35:55 +01:00
Hind-M
3dcbf76a04
Fix display of env activation message and co ( #3715 )
2025-01-06 09:56:21 +01:00
Julien Jerphanion
c9c45806e2
fix: Adapt warnings shown when several channels are used ( #3720 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2025-01-02 13:49:00 +01:00
Hind-M
9c61b5f71c
Always add `root_prefix/envs` in `envs_dirs` ( #3692 )
2024-12-18 12:25:10 +01:00
Hind-M
7f3f481b47
Add `no-pip` flag to `list` command ( #3696 )
2024-12-18 10:57:32 +01:00
Johan Mabille
4cbb3f7de0
release libmamba 2.0.5, libmambapy 2.0.5, micromamba 2.0.5
2024-12-12 17:22:41 +01:00
Hind-M
a25cde7914
Fix channel in `PackageInfo` ( #3681 )
2024-12-12 17:12:05 +01:00
Julien Jerphanion
a37aa2fdfd
fix: Clarify shell init dry runs outputs ( #3674 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-12-10 17:23:57 +01:00
Julien Jerphanion
8c80ae90b1
test: Add two tests on MatchSpec's version comparison ( #3679 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-12-10 16:09:44 +01:00
dann frazier
bb38a698cf
build: Remove another uninitialized variable in curl handler ( #3678 )
...
Signed-off-by: dann frazier <dann.frazier@chainguard.dev>
2024-12-10 11:01:45 +01:00
Johan Mabille
0b43dbcce2
release libmamba 2.0.5.rc0, libmambapy 2.0.5.rc0, micromamba 2.0.5.rc0
2024-12-09 20:50:18 +01:00
Ayaz Salikhov
76d06a7f5a
maint: Cleanup CMake files and delete not compiled files ( #3667 )
2024-12-09 20:27:12 +01:00
Lucio Queiroz
ddc3d40b35
fix: Wrap `MAMBA_EXE` around double quotes in run shell script ( #3673 )
2024-12-09 17:23:43 +01:00
Julien Jerphanion
53ba5c0326
fix: Activated environment name ( #3670 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-12-09 12:44:50 +01:00
Johan Mabille
4c5c1d7430
Fixed uninitialized variable in curl handler ( #3669 )
2024-12-09 10:58:56 +01:00
Julien Jerphanion
178593351b
fix: Skip empty lines in environment spec files ( #3662 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Klaim <Klaim@users.noreply.github.com>
2024-12-09 08:55:39 +01:00
Ayaz Salikhov
c3a2c1c66e
maint: Use Catch2 instead of doctest ( #3618 )
2024-12-06 08:57:33 +01:00
Klaim (Joël Lamotte)
633d8d005a
`micromamba/mamba --version` displays pre-release version names + establishes pre-release versions name scheme ( #3639 )
2024-12-06 08:56:26 +01:00
Hind-M
6141540b94
Handle `.tar.gz` in pkg url ( #3640 )
2024-12-06 08:55:03 +01:00
Julien Jerphanion
8ea3103d3c
fix: Effectively apply dry-run on installation from PyPI ( #3644 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-12-05 15:01:47 +01:00
Julien Jerphanion
e67178ce8a
fix: Handle environment with empty or absent `dependencies` ( #3657 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-12-05 15:00:15 +01:00
Hind-M
a85eb16149
Allow repoquery on non env prefix ( #3649 )
2024-12-04 10:55:01 +01:00
Hind Montassif
c809abcba6
release libmamba 2.0.4, libmambapy 2.0.4, micromamba 2.0.4
2024-11-22 16:43:30 +01:00
Julien Jerphanion
b163ce9027
fix: Return JSON on environment creation dry run ( #3627 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-11-22 15:23:27 +01:00
Henry Schreiner
020b1163c6
fix: support homebrew/linuxbrew (AppleClang, GCC 11) ( #3613 )
...
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
2024-11-21 16:39:07 +01:00
Ayaz Salikhov
0a8128d23e
maint: Enable `-Werror` compiler flag for GCC, Clang and AppleClang ( #3611 )
2024-11-21 13:50:09 +01:00
Hind Montassif
feafaf0e96
release libmamba 2.0.4alpha3, libmambapy 2.0.4alpha3, micromamba 2.0.4alpha3
2024-11-21 13:02:28 +01:00
Hind-M
ebe0d4f89c
Fix build trailing `*` display ( #3619 )
2024-11-21 11:38:40 +01:00
Klaim (Joël Lamotte)
d4de99bfef
fixed: incorrect erasing of env vars ( #3622 )
2024-11-20 18:09:27 +01:00
Klaim (Joël Lamotte)
e1e0f8c88d
Prevent pip "rich" ouput ( #3607 )
...
Co-authored-by: Johan Mabille <johan.mabille@gmail.com>
Co-authored-by: Hind-M <70631848+Hind-M@users.noreply.github.com>
2024-11-20 11:27:55 +01:00
Ayaz Salikhov
ad9b2d6b88
maint: Update clang-format to v19 ( #3600 )
2024-11-18 17:29:18 +01:00
Ayaz Salikhov
6654e15633
maint: Address compiler warnings ( #3605 )
...
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2024-11-18 13:21:35 +01:00
Hind Montassif
333abd0eea
release libmamba 2.0.4alpha2, libmambapy 2.0.4alpha2, micromamba 2.0.4alpha2
2024-11-14 18:00:59 +01:00
Klaim (Joël Lamotte)
20d51bb0c5
More details in error message when failing to parse json from a python command's output ( #3604 )
2024-11-14 16:06:02 +01:00
Ayaz Salikhov
6467000748
Fix some warnings ( #3595 )
2024-11-14 13:27:08 +01:00
Ayaz Salikhov
0f4ad44c2e
Update pre-commit hooks except clang-format ( #3599 )
2024-11-14 10:27:18 +01:00
Hind Montassif
538ab0b476
release libmamba 2.0.4alpha1, libmambapy 2.0.4alpha1, micromamba 2.0.4alpha1
2024-11-12 15:24:25 +01:00
Hind Montassif
e1bdc942af
release libmamba 2.0.4alpha0, libmambapy 2.0.4alpha0, micromamba 2.0.4alpha0
2024-11-12 11:56:23 +01:00
Klaim (Joël Lamotte)
48df20618f
Fix: json parsing error due to wrong encoding of Python output ( #3584 )
2024-11-12 10:27:10 +01:00
ChaonengQuan
554d9264da
fix: Skip misformatted configuration files ( #3580 )
...
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Chaoneng Quan <chaonengquan@Chaonengs-MacBook-Pro.local>
2024-11-12 10:16:22 +01:00
Klaim (Joël Lamotte)
a638f702e2
Adds logs clarifying the source of the error "could not load prefix data ( #3581 )
2024-11-07 17:32:48 +01:00
Johan Mabille
c511d5c9f7
release libmamba 2.0.3, libmambapy 2.0.3, micromamba 2.0.3
2024-11-05 21:41:04 +01:00
Hind-M
94bb087acb
Fix locking error ( #3572 )
2024-10-30 14:50:16 +01:00
Hind-M
0075a24e4c
pip packages support with `list` ( #3565 )
2024-10-30 10:20:25 +01:00
Henry Schreiner
5bfdd90adf
chore: some CMake cleanup ( #3564 )
...
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
2024-10-28 11:58:57 +01:00
Hind-M
47e962968d
Fix test on windows ( #3555 )
2024-10-28 09:43:29 +01:00
Julien Jerphanion
bd8c1d2e4d
fix: Only register channels in the context once ( #3521 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-10-23 11:09:48 +02:00
Klaim (Joël Lamotte)
651622b72d
windows shell init files use executable name ( #3546 )
...
* shell-init: Windows bat paths are factorized and depend on exe name (micromamba or mamba) except for mamba_hook.bat which for now needs to keep that name whatever the exe name;
* Fixed windows version detection: When more than one line of output appears at the start of cmd (because of AUTORUN), we parsed only the first line which failed the version detection. This version simply search every line instead of just the first one.
It also clarifies through more precise logs the exact reason why enabling long-paths actually failed.
* Improved error output for clarity on failure to create shell-init files (.bat) or directories.
---------
Co-authored-by: Johan Mabille <johan.mabille@gmail.com>
2024-10-21 17:31:18 +02:00
Hind-M
3d9486fea5
Fix relative path in local channel ( #3540 )
...
Fix relative path in local channels
2024-10-21 15:09:57 +02:00
Hind-M
607c39035c
Correctly rename test to be run ( #3545 )
...
* Correctly rename test to be run
* Fix test
* Skip oci test
* Real fix hopefully
* Skip test on windows
* Adjust comment
2024-10-21 09:18:57 +02:00
Hind-M
3d71f57517
Create empty base prefix with `env update` ( #3519 )
2024-10-16 10:53:51 +02:00
Julien Jerphanion
c329ca0401
fix: Use POSIX-compliant scripts ( #3522 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-10-15 18:30:46 +02:00
Julien Jerphanion
764f85f881
maint: Clarify `env` subcommand documentation in help menu (cont'd) ( #3539 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-10-15 18:30:24 +02:00
NewUserHa
9eb24012fc
fix: Handle space in `mamba` and `micromamba` executable absolute paths ( #3525 )
2024-10-15 18:06:57 +02:00
Julien Jerphanion
5e30f9f777
maint: Clarify `env` subcommand documentation in help menu ( #3502 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Hind-M <70631848+Hind-M@users.noreply.github.com>
2024-10-15 17:07:20 +02:00
Hind-M
215e5e522a
Add recommendation if error with root prefix ( #3513 )
...
Add recommendation if error
2024-10-07 19:43:03 +02:00
Julien Jerphanion
c4068d3117
fix: Ignore inline comment in environment specification ( #3512 )
...
Fix https://github.com/mamba-org/mamba/issues/3509
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-10-07 19:18:31 +02:00
mleistner-bgr
1e8694e1fc
Replace `[System.IO.Path]::GetFileNameWithoutExtension` with `-replace` ( #3510 )
2024-10-07 18:25:02 +02:00
Johan Mabille
553eace9d7
Replaced rstrip reimplementation with call to remove_suffix ( #3508 )
2024-10-04 16:46:37 +02:00
Hind-M
80c8b184d0
Fix warnings and co ( #3507 )
2024-10-04 14:41:50 +02:00
Johan Mabille
31b23473e0
release libmamba 2.0.2, libmambapy 2.0.2, micromamba 2.0.2
2024-10-02 18:03:58 +02:00
Julien Jerphanion
b7367417f7
fix: Handle `MatchSpec` with brackets when parsing environments' history ( #3490 )
...
* fix: Adapt `parse_comment_line` to handle more `MatchSpec`
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* test: Add non-regression python test
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* test: Add non-regression C++ test
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* Apply review comments
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Johan Mabille <johan.mabille@gmail.com>
* test: Skip test on Windows
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
---------
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Johan Mabille <johan.mabille@gmail.com>
2024-10-02 17:21:57 +02:00
Johan Mabille
d162759107
Win activate ( #3489 )
...
* Fixed activation scripts for cmd.exe
* Fixed get_PATH on Windows
* linter
2024-10-02 15:06:53 +02:00
Hind-M
45c437a3c8
Fix `channel` and `base_url` in `list` cmd ( #3488 )
...
* Fix channel and base_url in list cmd
* Add func
* Fix oci tests
2024-10-02 14:01:07 +02:00
Johan Mabille
9fc7b99ea3
release libmamba 2.0.1, libmambapy 2.0.1, micromamba 2.0.1
2024-09-30 22:05:50 +02:00
Johan Mabille
f8bfd115df
Fixed channel output in umamba list ( #3486 )
...
Fixed channel output in umamba list
2024-09-30 21:49:44 +02:00
Johan Mabille
b23a07956a
--full-name option for list ( #3485 )
...
Added --full-name option to the list command
2024-09-30 19:28:04 +02:00
Julien Jerphanion
0b824fe252
fix: Support for PEP 440 "Compatible Releases" (operator `~=` for `MatchSpec`) ( #3483 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Johan Mabille <johan.mabille@gmail.com>
2024-09-30 16:41:49 +02:00
Johan Mabille
2e8b3ee7bc
Fix micromamba activate on Windows ( #3484 )
...
Fixed mamba_hook.bat
2024-09-30 16:06:13 +02:00
Johan Mabille
a656fe9524
release libmamba 2.0.0, libmambapy 2.0.0, micromamba 2.0.0
2024-09-25 11:31:42 +02:00
Hind Montassif
d3cb2f8a0c
release libmamba 2.0.0rc6, libmambapy 2.0.0rc6, micromamba 2.0.0rc6
2024-09-20 15:58:06 +02:00
Julien Jerphanion
860ae0ea04
test: `MatchSpec` edges cases ( #3458 )
...
Add edge case test
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-09-20 14:49:54 +02:00
Hind-M
ad8ca3cf02
Compute `root prefix` as mamba install path ( #3447 )
...
* Compute root prefix as mamba install path
* Run test only on linux
* Test conflict between conda and mamba with same base env in CI
* Change strategy
* Use target_compile_definitions instead of add_definitions
* Add test logs
* Add ENABLE_MAMBA_ROOT_PREFIX_FALLBACK OPTION
2024-09-20 14:36:17 +02:00
Julien Jerphanion
1c755675bf
fix: Handle extra white-space in `MatchSpec` ( #3456 )
...
* test: Add non-regression test for #3453
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* Minimal suboptimal fix
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* Add edge cases to the env specification
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* test: Add `MatchSpec` parsing subcases
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* test: Complete `test_env_create_whitespace`
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* Add kytea test case
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* Merge replacement of binary operators
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* Lint with pre-commit
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* Adapt MatchSpec
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Hind Montassif <hind.montassif@gmail.com>
* Remove redundant test
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Hind Montassif <hind.montassif@gmail.com>
* Rename subcase
Co-authored-by: Hind-M <70631848+Hind-M@users.noreply.github.com>
* Adapt comparison on versions
Co-authored-by: Hind-M <70631848+Hind-M@users.noreply.github.com>
* Adapt test case
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* Remove pytorch-cpu as it is not available on windows
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
---------
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Hind Montassif <hind.montassif@gmail.com>
Co-authored-by: Hind-M <70631848+Hind-M@users.noreply.github.com>
2024-09-19 16:54:58 +02:00
Sylvain Corlay
6db44c8a64
Support CONDA_DEFAULT_ENV ( #3445 )
...
* Support CONDA_DEFAULT_ENV
* Fix test
2024-09-19 16:40:00 +02:00
Julien Jerphanion
81c099c3a1
fix: Environment removal confirmation ( #3450 )
...
* fix: Environment removal confirmation
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* Handle empty environment deletion
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* Handle 'n'
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* Reoder logic
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* Use enum class for `RemoveResult`
Co-authored-by: Hind-M <70631848+Hind-M@users.noreply.github.com>
---------
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Hind-M <70631848+Hind-M@users.noreply.github.com>
2024-09-17 17:38:06 +02:00
Hind Montassif
f1f0827e08
release libmamba 2.0.0rc5, libmambapy 2.0.0rc5, micromamba 2.0.0rc5
2024-09-13 10:55:58 +02:00
Wolf Vollprecht
a261cd461d
fix: add warning when using defaults ( #3434 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Hind Montassif <hind.montassif@gmail.com>
Co-authored-by: Johan Mabille <johan.mabille@gmail.com>
Co-authored-by: Sylvain Corlay <sylvain.corlay@gmail.com>
2024-09-12 19:28:40 +02:00
Hind-M
12fef58c37
Add fallback to root prefix ( #3435 )
...
* Add fallback to root prefix
* Fix test_not_env
* Fix tests
* Add tests with no env var
2024-09-10 15:10:21 +02:00
Silvio Traversaro
841b272cef
Fix x86_64 to use underscore instead of dash ( #3433 )
...
See https://github.com/mamba-org/mamba/issues/3222#issuecomment-2284324975 .
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2024-09-10 10:39:25 +02:00
Johan Mabille
f8bb11c853
Fixed micromamba static build after cctools and ld64 upgrade on conda… ( #3436 )
...
Fixed micromamba static build after cctools and ld64 upgrade on conda-forge
2024-09-09 16:53:28 +02:00
Julien Jerphanion
c4a6e78a78
fix: PyPI support for `env update` ( #3419 )
...
* Simple fix
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* Factor elements in `pip_utils.{hpp,cpp}`
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* docs: Add TODO
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* test: Creation and update of env with pip sections
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* Use quiet mode for pip
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* Address review comments
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Johan Mabille <johan.mabille@gmail.com>
* Invert headers' inclusion
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* Address review comments
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Hind Montassif <hind.montassif@gmail.com>
* Add more tests
* Use enum instead of bool
* Adapt tests
* Add warning
* Clean up
---------
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Johan Mabille <johan.mabille@gmail.com>
Co-authored-by: Hind Montassif <hind.montassif@gmail.com>
2024-09-05 15:41:39 +02:00
Hind-M
1bdf6f1748
Fix output ( #3428 )
...
Only print activation message when target prefix is not active
2024-09-02 14:25:20 +02:00
Sylvain Corlay
d51cd0e451
Execute remove action before install actions ( #3424 )
2024-08-31 00:30:24 +02:00
Hind Montassif
3bc31adbf0
release libmamba 2.0.0rc4, libmambapy 2.0.0rc4, micromamba 2.0.0rc4
2024-08-29 15:35:30 +02:00
Julien Jerphanion
0a01ecfc9d
fix: Reduce logging system overhead ( #3416 )
...
* test: Non-regression test
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* fix: Use penultimate libsolv's log level
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* Only run `test_env_spdlog_overhead_regression` on Linux
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Johan Mabille <johan.mabille@gmail.com>
* Add time-out on test and rename conda env
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Hind Montassif <hind.montassif@gmail.com>
* Decrease timout to 15 seconds and use dry-run
A dry run takes slightly less than 10 seconds.
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* Use bounded value of `output_params.verbosity` as in 1.x
See: https://github.com/mamba-org/mamba/blob/1.x/libmamba/src/core/pool.cpp#L72
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* Instead define and use and alternative `set_level`
I was hesitating between the previous solution and
this one (which is not really ideal either) but
which at least does not leak the `Context`.
Friend function could be used but we get this kind of
issue, but I am currently meeting this problem:
https://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#2174
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* Revert "Instead define and use and alternative `set_level`"
This reverts commit f1f41b71d0
.
* Simply hardcode the verbosity level to 3
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Hind Montassif <hind.montassif@gmail.com>
* Increase timeout from 15 to 30 seconds
15 seconds is not sufficient as shown on the CI.
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* From 30 sec to 60 sec
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* DEBUG No timeout
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* test: Remove edge-case for unlinks
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* test: Adapt number of unlinks on Linux
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* Assert success
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Hind Montassif <hind.montassif@gmail.com>
* docs: Update comments
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* `const`-qualify `level`
* Use 100 seconds for the timeout
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Hind Montassif <hind.montassif@gmail.com>
* Use 200 seconds for the timeout
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* Adapt according to `1.x`'s behavior
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* fixup! Adapt according to `1.x`'s behavior
* Revert changes to handle CI failures
This is handled by another PR.
See: https://github.com/mamba-org/mamba/pull/3417
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
---------
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Johan Mabille <johan.mabille@gmail.com>
Co-authored-by: Hind Montassif <hind.montassif@gmail.com>
2024-08-29 14:03:18 +02:00
Hind Montassif
aaf8d206ae
release libmamba 2.0.0rc3, libmambapy 2.0.0rc3, micromamba 2.0.0rc3
2024-08-26 15:44:46 +02:00
Hind Montassif
f4ab0b2377
release libmamba 2.0.0rc2, libmambapy 2.0.0rc2, micromamba 2.0.0rc2
2024-08-19 09:16:57 +02:00
Hind-M
d17ebc52cc
[micromamba] Fix behavior of `env update` (to mimick conda) ( #3396 )
...
* Fix behavior of env update (to mimick conda)
* Code review:
Use struct and enum class for update parameters
2024-08-08 12:00:45 +02:00
Casper van Elteren
c7563b8617
Reset the prompt back to default ( #3392 )
2024-08-06 10:54:34 +02:00
Hind-M
9663cbfdac
Add missing header ( #3389 )
2024-08-02 14:52:17 +02:00
Julien Jerphanion
ca8cee50fe
test: Comparability and hashability of `PackageInfo` and `MatchSpec` ( #3369 )
...
test: Add test for comparability and hashability
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-07-30 17:35:50 +02:00
Julien Jerphanion
d0d7eea49a
build: Support fmt 11 (follow-up) ( #3371 )
...
* build: Support fmt 11
A few other elements were required, as observed in:
https://github.com/mamba-org/mamba/pull/3352
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* Unpin python on 3.9
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* ci: use libcxx<18 for macOS
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* Add TODO comment
Co-authored-by: Hind-M <Hind-M@users.noreply.github.com>
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
---------
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-07-30 15:57:15 +02:00
Hind-M
de040eb225
Restore previous behavior of `MAMBA_ROOT_PREFIX` ( #3365 )
...
Restore previous behavior
2024-07-30 10:57:23 +02:00
Julien Jerphanion
4fbd22a9c0
build: Support fmt 11 ( #3368 )
...
* build: Support fmt 11
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* fixup! build: Support fmt 11
Required for Windows.
See: https://github.com/mamba-org/mamba/actions/runs/10144210776/job/28047211432?pr=3368#step:8:955
---------
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-07-29 16:28:56 +02:00
Julien Jerphanion
b09f1d162f
Make more classes hashable and comparable ( #3363 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Klaim <Klaim@users.noreply.github.com>
2024-07-29 11:06:45 +02:00
Julien Jerphanion
154012f256
Replace `Context` with `Context::platform` where possible ( #3364 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-07-29 10:59:27 +02:00
Johan Mabille
bdae0a1405
release libmamba 2.0.0rc1, libmambapy 2.0.0rc1, micromamba 2.0.0rc1
2024-07-27 01:08:20 +02:00
Andy Kipp
4cc78c87ac
Update mamba.xsh: support xonsh >= 0.18.0 ( #3355 )
...
Update mamba.xsh
2024-07-25 10:44:52 +02:00
Hind-M
ce1c4f22bd
Allow leading lowercase letter in version ( #3361 )
2024-07-25 09:23:39 +02:00
Hind-M
a10a532fd8
Remove logs for every package ( #3335 )
2024-07-23 13:32:55 +02:00
Hind-M
c6f2f24d5a
Allow spaces in version after operator ( #3358 )
...
Allow spaces in version after operator
2024-07-23 13:28:12 +02:00
Paul Brit
413285c7b7
fix: micromamba run when cwd does not exist ( #3336 )
...
fail micromamba run if cwd does not exist
Co-authored-by: Hind-M <70631848+Hind-M@users.noreply.github.com>
2024-07-15 17:30:32 +02:00
Hind-M
43da6b02a2
Fix repo usage after removal ( #3340 )
...
not use repo after removal
2024-07-15 15:20:42 +02:00
Johan Mabille
5c954c75c8
release libmamba 2.0.0rc0, libmambapy 2.0.0rc0, micromamba 2.0.0rc0
2024-07-08 09:32:53 +02:00
Klaim (Joël Lamotte)
855b533dd1
Fixed restoring the previous signal handler for example in python case (Windows only for now) ( #3297 )
...
* Fixed restoring the previous signal handler for example in python case
* formatting
* Fix formatting
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Klaim <Klaim@users.noreply.github.com>
---------
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Klaim <Klaim@users.noreply.github.com>
2024-07-01 16:54:15 +02:00
Klaim (Joël Lamotte)
76570f83b8
Splitt `ContextOptions::enable_logging_and_signal_handling` into 2 different options ( #3329 )
...
Splitt `ContextOptions::enable_logging_and_signal_handling` into 2 different options.
2024-06-19 16:29:47 +02:00
Julien Jerphanion
123d521521
maint: Remove declaration of `PrefixData::load` ( #3325 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-06-14 15:09:22 +02:00
Johan Mabille
f5abb6e1c7
release libmamba 2.0.0beta3, libmambapy 2.0.0beta3, micromamba 2.0.0beta3
2024-06-14 11:34:27 +02:00
Klaim (Joël Lamotte)
ab088e5d8a
libmambapy: use `Context` explicitly ( #3309 )
...
* All python singletons lifetime are bound to a unique `Context` instance lifetime
In `libmambapy`:
- bound singletons lifetime to the first `Context` instance created
- throw an error if more than one `Context` instance are created at any time
(this only applies to python and will be changed at another time)
- therefore the python user must create a `Context` before using any other functions
This specific change does not (yet) changes the other functions APIs to take
explicitly the `Context` object.
* simplify python expressions
* python API change, added requirement for a `Context` instance
affected functions:
- MultiPackageCache (constructor)
- SubdirData.create_repo
- SubdirIndex.create
- SubdirIndex.download
- clean
- transmute
- get_virtual_packages
- cancel_json_output
* libmamba loggers are now unregistered when Context instance is destroyed
* fixed: dont use `default` as a name
* remove quick-test file
* linter fixes
* Updated documentation
* temptative fix for potential data race in libmamba tests
* libmamba tests: added an assertion to be sure
* linter pass
* fixup libmambatests
* added log for helping understanding ci failure
* review fixes
2024-06-14 09:50:58 +02:00
Julien Jerphanion
d12f3711e6
maint: Remove some warnings ( #3320 )
...
* maint: Remove some warnings
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* Lint
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
---------
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-06-13 16:56:17 +02:00
Julien Jerphanion
0793fad741
maint: Remove `PrefixData::load` ( #3318 )
...
Merge its content within `PrefixData::PrefixData`.
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-06-13 16:16:52 +02:00
Hind-M
287bf22de2
OCI/Conda mapping ( #3310 )
...
* Map packages names starting with '_' to match OCI registries rules (and CEP 70)
* Use _go_select instead of _libgcc_mutex in tests
Remove dry-run and check result with umamba_list
2024-06-13 09:38:24 +02:00
Hind-M
7f8d5649c0
[OCI - Mirrors] Add tests and doc ( #3307 )
...
* Add doc and micromamba python test
* Add some tests for mirrors
* Use another channel name to avoid interfering with conda-forge
* Add test parameter to use libsolv parser
* Remove dry-run from tests
2024-06-12 16:36:31 +02:00
Hind-M
56c0a8397c
Fix osx version test ( #3308 )
2024-06-07 10:27:55 +02:00
Hind Montassif
45e4b7c8ba
release libmamba 2.0.0beta2, libmambapy 2.0.0beta2, micromamba 2.0.0beta2
2024-06-07 10:21:19 +02:00
Hind-M
9300a6530c
[OCI Registry] Handle compressed repodata ( #3300 )
...
* Handle fetching zstd encoded repodata from OCI registry
* Rename AuthenticationData and corresponding func to be more relevant
2024-05-28 09:50:58 +02:00
Hind-M
36d2035764
[CEP-15] Support `base_url` with `repodata_version: 2` using `mamba` parser ( #3282 )
...
* Support repodata_version:2/cep-15 with mamba parser
* Fix behavior when base_url is missing with repodata_version 2
2024-05-28 09:48:33 +02:00
Hind-M
93d565e75f
Fix OCIMirror use ( #3296 )
...
* Modifications for a first test (forcing params/not cleaned up yet)
* Handle specs checksums
* Remove cout and unnecessary code
* Handle zst extension of repodata
* Add missing invoke_on_failure
Add back curl config
* Organize comments and remove useless leftovers
* Correctly use hide_secrets
* Handle "oci" scheme
2024-05-27 14:11:41 +02:00
Hind-M
3e1e97b0e6
Add checking typos to pre-commit ( #3278 )
...
* Add checking typos to pre-commit
* Add missed corrections
* Add more corrections to doc
2024-05-27 09:16:14 +02:00
Johan Mabille
9006fb963b
release libmamba 2.0.0beta1, libmambapy 2.0.0beta1, micromamba 2.0.0beta1
2024-05-04 17:16:21 +02:00
Johan Mabille
a0d2333a03
release libmamba 2.0.0beta0, libmambapy 2.0.0beta0, micromamba 2.0.0beta0
2024-05-03 23:06:07 +02:00
Klaim (Joël Lamotte)
69ef891ea9
Hotfix to allow Ctrl+C in python scipts ( #3285 )
...
* Ignore _skbuild dirs
* Fixed `Context::use_default_signal_handler(bool)` not having any effect
* formatting
2024-05-03 21:33:49 +02:00
Ryan Carsten Schmidt
46036e1917
Fix typos in comments ( #3272 )
2024-04-17 14:17:14 +02:00
Antoine Prouvost
453c9667a5
Fix VersionSpec equal and glob ( #3269 )
2024-04-10 10:22:02 +02:00
Antoine Prouvost
a425e4b487
Fix pin repr in solver error messages ( #3268 )
...
* Add solver pin test
* Improve pin repr in SAT error messages
2024-04-09 17:15:37 +02:00
Antoine Prouvost
80f1e84d49
Bind text_style and graphic params ( #3266 )
...
* Rename binding utils.hpp > bind_utils.hpp
* Bind fmt::text_style
* Change format type in Unsolvable explain message
* Bind attributes
* Bind GraphicsParams
2024-04-08 16:39:38 +02:00
Johan Mabille
b5195d96b0
release libmamba 2.0.0beta0, libmambapy 2.0.0beta0, micromamba 2.0.0beta0
2024-04-04 09:29:13 +02:00
Antoine Prouvost
08d7b4e9cb
Don't add duplicate .conda and .tar.bz2 packages ( #3253 )
...
* Refactor signatures arg
* Remove set_solvables_with_sigs
* Fix optional signature type
* Change Database package type interface
* Change PackageType for libsolv parser
* Change PackageType for mamba parser
* Don't duplicate .conda and .tar.bz2 in mamba exe
* Fix error message disconnected graph
2024-03-29 12:07:35 +01:00
Antoine Prouvost
245de2009e
Update pre-commit hooks" ( #3252 )
...
* Update Pre-commit hooks
* Apply updated hook
2024-03-28 16:18:19 +01:00
Antoine Prouvost
327534724a
Refactor os utilities ( #3248 )
...
* Refactor make_virtual_package
* Refactor macos_version
* Add new windows_version
* Add __win virtual package version
* Use new util::windows_version
* Add virtual packages version test
* Add Plaform os detection
* Refactor linux_version
* Fix linux_version on mac with unix_name_version
2024-03-28 14:08:35 +01:00
Johan Mabille
3a31b8390a
release libmamba 2.0.0alpha4, libmambapy 2.0.0alpha4, micromamba 2.0.0alpha4
2024-03-26 06:34:09 +01:00
Johan Mabille
bf378ddfb4
Implemented OCI mirrors ( #3246 )
2024-03-26 06:20:49 +01:00
Johan Mabille
2925054891
Passed url_path to request_generators ( #3245 )
2024-03-25 10:59:02 +01:00