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
Antoine Prouvost
7942d3feaf
Handle regex in build string ( #3239 )
2024-03-20 18:52:22 +01:00
Hind-M
cad6793e21
[mamba-content-trust] Add integration test ( #3234 )
...
* -Fix trusted_channels in ctx not working with more than one item
-Add test for mamba-content-trust (mamba client side) using conda-content-trust (server side)
-Add missing install with pip (to fix)
* Remove repo_signed (supposed to be generated with testserver_pkg_signing.sh)
* Add MAMBA_ROOT_PREFIX to Taskfile.dist.yml
2024-03-20 10:58:29 +01:00
Antoine Prouvost
4270dd400d
Release libsolv memory before installation ( #3238 )
2024-03-19 19:59:42 +01:00
Antoine Prouvost
43e38efb18
Custom resolve complex MatchSpec in Solver ( #3233 )
...
* Add ObjPool::current_error
* Support reference_wrapper in MatchSpec::contains
* Rename subdir > platform in solv-cpp
* Add Matcher as namespace callback
* Add MatcherFlags
* Redefine MatchSpec::is_simple
* Add VersionSpec::from_predicate
* Refactor reinstall jobs
* Fix MatchSpec::is_simple
* Handle complex MatchSpec in solver
* Add version cache in Matcher
* Add more pool namespace tests
* Handle exception in ObjPool callback
* Try removing SOLVABLE_PROVIDES
* Add unsolvable complex spec test
* Fix Database callback exceptions
* Add channel in Matcher
* Adapt channel_specific tests
* Fix updates
2024-03-19 19:52:56 +01:00
Antoine Prouvost
02b36ba5a2
Mamba 2.0 name fixes ( #3225 )
...
* Change default mamba root prefix
* Name generic rc_file_content
* Refactor other rc content executable names
* Allow mamba name in sh shells
* Adapt test_activate.py to use mamba/micromamba name
* Allow mamba name in tcsh shells
* Fix micromamba names
* Rename extrac_subroc_mode::micromamba ? mamba_exe
* Rename is_micromamba > is_mamba_exe
* Change more micromamba names
* Fix test_shell.py
* Adapt mamba name in Win shell wrappers
* Adapt mamba name in Win powershell wrappers
* Remove an occurence of micromamba
* Fix wrap_call on Windows
* Deactivate failing test
2024-03-14 16:01:05 +01:00
s22chan
089095fb82
fix(micromamba): anaconda private channels not working ( #3220 )
...
Similar to https://github.com/mamba-org/boa/pull/81 , the search key and db is slightly out of sync.
In this case, the key are the (weakened) urls without the scheme.
The anaconda tokens are stored with the scheme, so they are ignored.
2024-03-13 18:02:30 +01:00
Antoine Prouvost
7125518164
Add MatchSpec::contains_except_channel" ( #3231 )
...
* Add MatchSpec::contains_except_channel
* Add MatchSpec::contains_except_channel overload
* Bind MatchSpec::contains_except_channel
* Add documentation for MatchSpec::contains
2024-03-13 16:37:25 +01:00
Hind-M
ce840bbf8c
[mamba content trust] Enable verifying packages signatures ( #3192 )
...
* Enable verifying packages signatures
* Remove post hook and use LOG_DEBUG instead of LOG_INFO
* Move getting "signatures" from `pkg_signatures` to `verify_package`
* Add tests for solvable and PackageInfo
Remove signatures from field in PackageInfo
* Add const and reorganize repo_checker
Add text in description for verify-package flag
* Add bindings and make `trusted_channels` configurable
* Define MAX_CONDA_TIMESTAMP
* Code review
* Add tests for add_repo_from_repodata_json in test_database
* Remove fake_signatures in favor of optional
2024-03-08 20:37:18 +01:00
Antoine Prouvost
c54ab6ce7b
Refactor MatchSpec::str ( #3215 )
...
* Add split_once_on_any
* Split MatchSpec::track_features
* Add VersionSpec::expression_size
* Add UnresolvedChannel::is_package
* Refactor MatchSpec::str to use fmt
* Forbid version of in MatchSpec in attributes
* Document more Conda discrepencies
2024-03-08 17:09:22 +01:00
Antoine Prouvost
fd42d8dd8e
Subdir renaming ( #3214 )
...
* Rename PackageInfo::depends > dependencies
* Change BuildNumberSpec nuild number type
* Rename MatchSpec::subdirs > platforms
* Rename Platform > KnownPlatform
* Add DynamicPlatform alias
* Rename PackageInfo::subdir > platform
* Fix build platform
* Fix PackageInfo::platform on OSX
2024-03-05 16:31:54 +01:00
Antoine Prouvost
9965527410
Fully bind MatchSpec ( #3213 )
...
* Fix MatchSpec name_space bounds
* Bind MatchSpec to Python
* Add specs binding negative tests
2024-03-04 21:35:58 +01:00
Antoine Prouvost
daccab0c0e
Add more MatchSpec tests ( #3211 )
...
* Refactor test_matchspec
* Add more MatchSpec tests
2024-03-04 16:55:41 +01:00
Antoine Prouvost
1f7b9de94f
Expected in specs parse API ( #3207 )
...
* Expected in CondaURL::parse
* Expected in Channel::resolve
* Expected in MatchSpec::parse
* Expected in MatchSpec::parse_url
* Return errors in exepcted in MatchSpec::parse
* Expected in PackageInfo::from_url
2024-03-04 14:27:04 +01:00
Antoine Prouvost
9141381ca3
Refactor MatchSpec::parse ( #3205 )
...
* Add find_not_in_parentheses with multiple parens
* Refactor MatchSpec URL with md5
* Refactor find_not_in_parentheses
* Refactor find_not_in_parentheses for genericity
* Use npos ins find_not_in_parentheses
* Add rfind_not_in_parentheses
* Use rfind_not_in_parentheses in MatchSpec
* Refactor chan ns spec split
* Allocation guard
* Refactor MatchSpec filename handling
* Remove MatchSpec::url
* Refactor MatchSpec::subdirs
* Refactor MatchSpec attribute parsing
* Flexible build and version setting
* Refactor find_matching_parenthesis
* Refactor find_matching_parenthesis
* Simplify parsers
* Add find_matching_parentheses with multiple parenthesese
* Add rfind_matching_parentheses
* Refactor MatchSpec section parsing
* Refacator MatchSpec name parsing
* Simplify version and build parsing
2024-02-29 09:42:25 +01:00
Johan Mabille
7da42636df
release libmamba 2.0.0alpha3, libmambapy 2.0.0alpha3, micromamba 2.0.0alpha3
2024-02-28 06:09:54 +01:00
Johan Mabille
8f276cbefa
Added HTTP Mirrors ( #3178 )
...
* Added HTTP Mirrors
* Mirror mirror on the wall...
* True hope lies beyond the coast
* You're a damned kind can't you see
* That the winds will change
* Mirror mirror on the wall
* True hope lies beyond the coast
* You're a damned kind can't you see
* That tomorrow bears insanity
2024-02-27 18:47:30 +01:00
Antoine Prouvost
88748be956
Use expected for specs parsing ( #3201 )
...
* Expected in Version::parse
* Use boolean check in expr trees
* Expected in VersionSpec::parse
* Add assert caster safeguard
* Expected in BuildNumberSpec::parse
* Minor improvement in GlobSpec
* Expected in UnresolvedChannel::parse
* Expected in URL::parse
2024-02-27 09:35:27 +01:00
Antoine Prouvost
86b2b8c121
Refactor ObjPool to use views in callbacks ( #3199 )
...
* Refactor ObjPool to allow ObjPoolView
* Use ObjPoolView in callbacks
* Add extra solver test
* Private ObjPoolView inheritance
2024-02-23 16:38:44 +01:00
Antoine Prouvost
e276fa3d2e
Add more solver tests and other small features ( #3198 )
...
* Add clean_dependencies to Request::Update
* Allow pins without installed repo
* Add more solver tests
* Filename repodata fallback
* Fix repodata test
* Add channel specific solver test
* Add solver conflict test
2024-02-22 17:33:54 +01:00
Antoine Prouvost
6d535ea5ff
Finalized Solver bindings and add solver doc ( #3195 )
...
* Fix cross reference in docs
* Rename Request::Item > Job
* Add missing Request python test
* Add Solver usage documentation
* Add tests for ProblemsGraph
* Adjust 2.0 changes
* use mambatest directories
* Remove channel from test repodata.json
* Add simple solver tests
2024-02-21 17:27:35 +01:00
Antoine Prouvost
00219a578e
Add libsolv.Database Bindings and tests ( #3186 )
2024-02-12 08:47:53 -05:00
Antoine Prouvost
4db0c06cfa
Add (some) solver Database tests ( #3185 )
...
* Add test_request.cpp
* Add test_solution.cpp
* Fix wrong forward declaration
* Add libsolv database test
2024-02-09 10:32:20 -05:00
Antoine Prouvost
afdb5a185d
Simple logging fix ( #3184 )
2024-02-08 23:02:22 -05:00
Antoine Prouvost
daeb96cb08
Make libsolv wrappers into standalone library ( #3181 )
...
* Move solv-cpp into standalone library
* Remove mamba namespace from solv-cpp
* Switch solv-cpp to object library
* Install solv-cpp object library
* Fix doctest
* Fix windows path
2024-02-08 10:49:53 -05:00
Antoine Prouvost
d20d176b86
Rename MPool into solver::libsolv::Database ( #3180 )
...
* Move only MPool
* Rename MPool > Database
* Move Database to solver::libsolv
* Add missing explicit
* Rename pool in function names
* Rename core/pool.hpp package_database_loader
2024-02-08 16:41:11 +01:00
Antoine Prouvost
a2a2d26445
Simplify MPool Interface ( #3177 )
...
* Remove some use to MPool::ChannelContext
* Explicit palette in UnSolvable
* Explicit option for use_only_tar_bz2 in Pool
* Remove context from Pool
* Remove Context capture in Pool
* Remove ChannelContext capture in Pool
* Silence warnings
* Chane Unsolvable to use solv::ObjPool
* Fine grain control of MPoll raw access
* Remove MPool::id2pkginfo
* Remove MPool::matchspec2id and select_solvables
* Remove MPool::dep2str
* Auto create_whatprovides in repoquery
* Remove MPool::create_whatprovides
* Change MPool::remove_repo API
* Private libsolv
2024-02-07 09:25:37 -05:00
Antoine Prouvost
b3cb456764
Clean libsolv use in Transaction ( #3171 )
...
* Take by value and move in TransactionContext
* Refactor Transaction from Lockfile
* Refactor remove/install Transaction ctor
* Add MPool::for_each_package_in_repo
* Attempt fix forced remove
* Move Python search in MPool not ObjPool
* Use solver functions
* Move Solution post-processing to solver
* Remove Pool, Context, ChannelContext captrure from Transaction
2024-02-05 13:40:47 -05:00
Antoine Prouvost
23b90a9b73
Rewrite Query with Pool functions (wrapping libsolv) ( #3168 )
...
* Add MPool::for_each_package_matching
* Use MPool::for_each_package_matching in self-update
* Add test for pool.select_solvables
* Add MPool::for_each_package_depending_on
* Implement some queries with MPool
* Reorganize query.cpp
* Refactor Query Graph walk to not use libsolv
* Rewrite Query::whoneeds in PkgInfo space
* Remove unused functions
* Improve string param
2024-02-05 11:45:48 -05:00
Hind Montassif
6618349cba
release libmamba 2.0.0alpha2, libmambapy 2.0.0alpha2, micromamba 2.0.0alpha2
2024-02-02 17:37:25 +01:00
Bela Stoyan
4075f0b58d
add manually given .tar.bz2 / .conda packages to solver pool ( #3164 )
...
* add packages to solver pool
* lint
2024-02-01 13:51:06 -05:00
Antoine Prouvost
551540ba0a
Improve Query API ( #3167 )
...
* Clean Query
* Bind Query alike to C++
2024-02-01 10:21:41 -05:00
Antoine Prouvost
a182b1d453
Bind solver::libsolv::UnSolvable ( #3166 )
2024-01-31 16:34:55 -05:00
Antoine Prouvost
9f1b5b7e06
Solver sort deps ( #3163 )
...
* Improve Solver::solve
* Add Solver request ordering
* Refactor context solver flags
* Add config option order_solver_request
* Fix config
* Change pin test expected solution
* Refactor custom variant comparison
* Add 2.0 order_solver_request doc
2024-01-31 16:21:29 -05:00
Antoine Prouvost
d4c9f96dea
Proper sorting of display actions ( #3165 )
...
* Add variant compare
* Sort actions not strings
2024-01-31 14:27:22 -05:00
Antoine Prouvost
dedf072874
Split Solver and Unsolvable ( #3156 )
...
* No capture MPool in Solver
* Solution in MSolver
* Change MTransaction solver ctor
* Split UnSolvable from MSolver
* Implement MSolver Outcome
* Private SolverProblem
* Move UnSolvable to solve::libsolv
* Move sat* solver::problems_graph
* Clean test_problems_graph
* Move MSolver to solver::libsolv
* Rename MSolver > Solver
* Add minimal 2.0 doc
* Bind solver::Solution
* Move problems_graph bindings to libmambapy.solver
* Change Solver namespace
* Move Solver bindings to libmambapy.solver.libsolv
2024-01-30 22:20:36 +01:00
Johan Mabille
f7c763082d
Implemented support for mirrors ( #3157 )
...
* Implemented support for mirrors
* Changes according to reviews
2024-01-30 18:31:07 +01:00
Julien Jerphanion
b8ceffeab0
Remove outdated commented code snippet ( #3160 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-01-30 13:23:54 +01:00
Johan Mabille
a63587da2e
Moved download related files to dedicated folder ( #3155 )
2024-01-25 20:45:54 +01:00
Antoine Prouvost
b270d9f6b3
Refactor solver flags ( #3153 )
...
* Rename Solver keep_specs > keep_user_specs
* Refactor hide libsolv solver flags
* Move Solver flags in Request
2024-01-25 17:07:54 +01:00
Antoine Prouvost
a310d31da9
Improve Solution usage ( #3148 )
...
* Rename Solution > solver::Solution
* Try noarch relink in solution space
* Remove dead code
* Move relink computation to helpers
* Refactor find_installed_python
* Add Loop control break to Solution
* Refactor find_new_python_in_solution
* Add solution_needs_python_relink
* Change Py relink decision
* Remove dead relink_noarch
* Delete TransationContext copy ctor in favor of default move ctor.
* Refactor transaction_to_solution
* Refactor MSolver::add_request
* Free MSolver::add_reinstall_job
* Refactor Solution filter
* Refactor is_any_of
* Add solver Request for_each_of
* Remove MSolcer remove/installed_specs
* Refactor add_job_impl
* Use expected_t in add_job_impl
* Remove MSolver::m_jobs
* Refactor request_to_decision_queue
2024-01-25 15:23:15 +01:00
Antoine Prouvost
a190d9394c
Solver Request ( #3141 )
...
* Change type for MSolver::add_pin
* Add Solver Request 1
* Add Solver Request 2
* Add Solver Request 3
* Cleanup retry flags
* Remove constant parameter
* Add Solver Request 4
* Add Request::Freeze
* Add Request::Keep
* Add Request::UpdateAll
* Remove MSolver::add_global_job
* Use MSolver::add_request for remove
* Remove MSolver::add_jobs
* Remove MSolver::add_pins
* Add api/install pins in request
* Add api/update pins in request
* Remove MSolver::add_pin
* Remove dead MSovler neuter_specs & pinned_specs
* Move Request to solver::Request
* Bind solver::Request
* Apply review comments
2024-01-23 13:38:11 +01:00
Antoine Prouvost
75b0dc48c0
Sort transaction table entries ( #3146 )
2024-01-23 09:29:39 +01:00
Antoine Prouvost
e8793e59e6
Solver improvements ( #3140 )
...
* Change serializing of pin
* Change pin names
* Rename MSolverProblem > SolverProblem
* Move pool_add_matchspec to helpers
* Move transaction_to_solution to helpers
* Remove MSolver::add_constraints
* Move pool_add_pin to helpers
* Remove MSolver pointer convertion
* Remove MSolver macro flags
2024-01-19 10:04:45 +01:00
Antoine Prouvost
81504b5614
Explcit transaction duplicate code ( #3138 )
...
* Add channel and subdir to PackageInfo::from_url
* Remove duplicate code
2024-01-18 11:03:38 +01:00
Antoine Prouvost
0324bd74b0
No M ( #3137 )
2024-01-18 08:44:23 +01:00
Antoine Prouvost
7d6856e9b5
MRepo refactor ( #3118 )
...
* Rename Enum members in MRepo
* use solv::Pool in MRepo
* Free MRepo add_pip_as_python_dependency
* Free MRepo repodata reading
* Free MRepo read_solv
* Free MRepo write_solv
* Remove MRepo constructor
* Remove MPool capture from MRepo
* Add missing pip dependency
* Refactor solv file serialization
* No lock on non-existant files
* Cleanup dead code
* write_solve create-directories
* Clean MRepo member functions
* Decouple MRepo and Pool
* Finetune Clang-format
* Add filename location to error
* Do not fail on solv file write
* Load new pool loader for repodata and .solv files
* Remove repo name in favor of URL
* Refactor MRepo index loading
* Fix SubDirData.writable_solv_cache
* Fix solv file loading
* Lock repodata.json while reading metadata
* Refactor expected in load_subdir_in_pool
* use expected in solver helpers
* Refactor helpers functions and error messages in Repo
* Add MPool::create_repo_from_packages
* Use load_installed_packages_in_pool
* Remove MRepo ctor
* Fix rebase
* Refactor MRepo::priority
* Update Taskfile realpath to work on MacOS
* Fix virtual packages being removed
* Move MRepo::priority to MPool
* Rename MRepo > solver::libsolv::RepoInfo
* Move RepoInfo parameters for its own library
* Move make_package_info to helpers
* Add libmambapy.solver.libsolv
* Add solver::libsolv::Priorities op
* Bind libsolv parameters
* Bind RepodataOrigin
* Merge libsolv/serialization and libsolv/parameters
* Bind new MPool methods
* Add RepoInfo op
* Add RepoInfo changes to log
* Rename attribute
* Remove RepoInfo::repo
2024-01-17 16:44:47 +01:00
Josh Chorlton
7c70ca7fed
handle other deps in multiple env files ( #3096 )
2024-01-17 15:28:48 +01:00
pwnfan
43567a768c
Fix verbose and strange prefix in Powershell ( #3116 )
2024-01-17 13:52:48 +01:00
Antoine Prouvost
a534d49fea
Revert "Fix info and debug logging" ( #3133 )
2024-01-16 15:52:14 +01:00
Ben Moss
1e7c369128
Fix info and debug logging ( #3127 )
...
* Fix info and debug logging in libmamba
Fixes #3112
* Don't use compile-time loggers
---------
Co-authored-by: Ben Moss <bmoss40@bloomberg.com>
2024-01-16 15:38:44 +01:00
Antoine Prouvost
8e9b376161
Move util_random.hpp > util/random.hpp ( #3129 )
...
* Move util_random.hpp > util/random.hpp
* Use new random in libmamba
* Use template instanciation instead
2024-01-16 10:14:45 +01:00
Johan Mabille
67f36d4a48
Added mirrored channels ( #3125 )
2024-01-15 14:57:43 +01:00
Antoine Prouvost
8ab10efa07
Pool channel match ( #3122 )
...
* Add Match return type to Channel::contains_package
* Simplify channel specific matchspec in Pool
* (Dirty) fix force reinstall
2024-01-11 15:07:54 +01:00
Antoine Prouvost
43e24a864d
Add Channel::contains_package ( #3121 )
...
* Add CondaURL literals
* Add Channel::contains_package
* Fix test case name
* Bind Channel::contains_package
2024-01-11 10:10:36 +01:00
Antoine Prouvost
13d034147f
Rename ChannelSpec > UndefinedChannel ( #3117 )
...
* Rename ChannelSpec > UndefinedChannel
* Rename UndefinedChannel > UnresolvedChannel
2024-01-09 13:52:23 +01:00
Antoine Prouvost
328457276a
Add some PackageInfo tests" ( #3115 )
...
* Add PackageInfo::from_url
* Add PakcageInfo tests
* Bind PackageInfo::from_url
2024-01-09 09:38:01 +01:00
Antoine Prouvost
6bf43a6d4f
Change PackageInfo types ( #3113 )
...
Use NoArchType in PackageInfo
2024-01-08 17:52:17 +01:00
Antoine Prouvost
717456890a
Move PackageInfo in specs:: ( #3109 )
...
* Move PackageInfo in specs::
* Move PackageInfo in specs::
* Rename PackageInfo::url > PackageInfo::package_url
* Add changelog entry
* Add MatchSpec migration help
2024-01-08 16:06:22 +01:00
Antoine Prouvost
dae5e0e378
NoArchType as standalone enum ( #3108 )
...
* NoArch as standalone enum
* Bind NoArchType
2024-01-08 14:26:42 +01:00
Antoine Prouvost
53a5171360
Clean PackageInfo interface ( #3103 )
...
* Refactor PackageInfo operator==
* Remove unused headers
* Simplify PackageInfo interface
* Move PackageInfo signature order
* Change type for PackageInfo::defaulted_keys
* Use nlohman::from_json for PackageInfo
* Use nlohman::to_json for PackageInfo
* Fallback in PackageInfo::str
* Rename PackageInfo::fn > filename
2024-01-05 18:26:51 +01:00
Antoine Prouvost
f99c4288c6
Remove micromamba shell init -p ( #3092 )
...
* Remove micromamba shell init -p
* Fix rc content
2024-01-05 14:07:11 +01:00
Antoine Prouvost
1633630e68
Refactor MatchSpec unlikey data ( #3099 )
...
* Fix test names
* Hide MatchSpec implementation detail
* Add heap_optional
* Refactor MatchSpec unlikely members
* Make private use of MatchSpec bracket
* Refactor MatchSpec switch
* Remove map from MatchSpec
2024-01-04 18:14:21 +01:00
Antoine Prouvost
276321427e
Add BuildNumberSpec ( #3098 )
...
* Add BuildNumberSpec
* Fix test case name
* use BuildNumberSpec in MatchSpec
* Fix BuildNumberSpec
* Simplify BuildNumberPredicate
2024-01-04 11:57:58 +01:00
Antoine Prouvost
18b77d62be
GlobSpec ( #3094 )
...
* Fix include guard
* Add GlobSpec
* Use GlobSpec for MatchSpec build_string
* Make MatchSpec::name a GlobSpec
2024-01-03 09:17:17 +01:00
Antoine Prouvost
b9706dce32
MatchSpec use VersionSpec ( #3089 )
...
* Don't use members as wip vars
* Make conda-build compatible VersionSpec str
* Add VersionSpec::is_explicitly_free
* Strenghten sat attrs ref
* Try pluging VersionSpec in MatchSpec
* Change type of MatchSpec::version
* Fix MatchSpec::conda_build_str
* Adjust MatchSpec tests
2024-01-02 12:55:42 +01:00
Antoine Prouvost
108bc9f5a4
Bump MAMBA libsolv file ABI ( #3093 )
2024-01-02 12:53:14 +01:00
Antoine Prouvost
1b56e38001
Add parsing utilities ( #3090 )
...
* Add util/parsers skeletton
* Add find_matching_parentheses
* conditional refactor
* Add find_not_in_parentheses
* Add some doc
* Add find_not_in_parentheses substr overload
* Add glob_match
* Remove warning
2024-01-02 10:52:44 +01:00
Antoine Prouvost
3f6484c23c
Fix VersionSpec free ranges ( #3088 )
2023-12-28 13:33:48 +01:00
Antoine Prouvost
4ee7531fd6
Clean up url_manip ( #3086 )
2023-12-27 14:15:31 +01:00
Josh Chorlton
bcf8141e9e
gracefully handle conflicting names in yaml specs ( #3083 )
...
* Revert "Remove hard coded mamba (#3069 )"
This reverts commit 212d1e9ad2
.
* gracefully handle conflicting names in yaml specs
* Revert "Revert "Remove hard coded mamba (#3069 )""
This reverts commit b5717e6871
.
2023-12-27 10:08:43 +01:00
Antoine Prouvost
773e6a5cf2
Reformat string ( #3085 )
2023-12-26 21:32:07 +01:00
Antoine Prouvost
15e8056029
Some future proofing MatchSpec ( #3082 )
...
* Private MatchSpec::name
* Private MatchSpec::filename
* Private MatchSpec::url
* Make MatchSpec::is_file a function
* Private MatchSpec::namespace
* Private MatchSpec::build_number
* Remove dead affectation
* Private MatchSpec::optional
* Remove dead code
* Clean MatchSpec dist parsing
* Fix MatchSpec dist parse
* Private MatchSpec::version
* Private MatchSpec::build_string
* Private MatchSpec::channel
* Add missing MatchSpec setters
* Put MatchSpec in specs::
2023-12-26 17:23:33 +01:00
Antoine Prouvost
152857f059
Add VersionSpec::str ( #3081 )
...
* Add flat_bool_expr_tree:infix_for_each
* Add level to Version repr
* Add VersionSpec::str
2023-12-22 14:19:33 +01:00
Antoine Prouvost
2d85759c13
More specs bindings ( #3080 )
...
* Bind archive
* Minor specs::Version improvements
* Bind specs::Version
* Bind VersionSpec
* Use alias
2023-12-22 08:54:02 +01:00
Antoine Prouvost
77484f5a63
Fix URL enconding in repodata.json ( #3076 )
...
* Fix filename URL encoding
* Remove dead code
* Fix Channel URL encoding
* Improve test_create caching
2023-12-21 13:54:34 +01:00
Jonas Haag
443c3e35d5
Update shell hook comments ( #3051 )
2023-12-19 15:08:00 +01:00
Josh Chorlton
57a6a691be
Support multiple env yaml specs ( #2993 )
...
* tested and working
* docs update
* disallow multiple spec types
* add test for only one yaml specifies channel
* fix install yaml test
* Update micromamba/tests/test_create.py
Co-authored-by: Jonas Haag <jonas@lophus.org>
* Update micromamba/tests/test_create.py
Co-authored-by: Jonas Haag <jonas@lophus.org>
* suggestions
* separate loop
* appease the linter
* another test
---------
Co-authored-by: Jonas Haag <jonas@lophus.org>
2023-12-19 08:56:59 +01:00
Johan Mabille
29a19e1ef5
release libmamba 2.0.0alpha1, libmambapy 2.0.0alpha1, micromamba 2.0.0alpha1
2023-12-18 11:50:36 +01:00
Johan Mabille
c54c4b530e
release libmamba 2.0.0alpha0, libmambapy 2.0.0alpha0, micromamba 2.0.0alpha0
2023-12-14 16:42:44 +01:00
Johan Mabille
4f2d1ebd43
Added mamba as dynamic build of micromamba ( #3060 )
2023-12-14 14:22:31 +01:00
Orion Poplawski
72d5eb1895
Fix libmamba cmake version file ( #3013 )
2023-12-07 23:33:39 +01:00
Daniel Holth
d12d77056c
restore use_default_signal_handler flag for libmambapy ( #3028 )
2023-12-07 23:33:23 +01:00
Antoine Prouvost
21675b6517
Enforce space between definitions ( #3049 )
2023-12-07 23:00:25 +01:00
Antoine Prouvost
f36c3f222e
Change MatchSpec::parse to named constructor ( #3048 )
2023-12-07 16:06:02 +01:00
Orion Poplawski
96e9be052b
Drop unneeded dependencies ( #3016 )
2023-12-07 16:02:01 +01:00
Antoine Prouvost
d3b72c44fb
Plug ChannelSpec in MatchSpec ( #3046 )
...
* Plug ChannelSpec in MatchSpec
* Remove unused split_platform
* Fix channel specific error messages
* Fix MatchSpec tests
* Remove ChannelSpec Context and ChannelContext dep
2023-12-07 13:45:56 +01:00
Antoine Prouvost
dfcb8c249e
MatchSpec small improvements ( #3043 )
...
* Small CQA
* Add ChannelSpec::str
* Add ChannelContext::make_channel for ChannelSpec
* Split MatchSpec tests
2023-12-07 09:20:58 +01:00
Antoine Prouvost
df4aeaca4c
Remove duplicate function ( #3042 )
2023-12-06 21:27:10 +01:00
Antoine Prouvost
c529199eef
Split validate.[ch]pp ( #3041 )
...
* Split validation errors
* Split validation keys
* Fix header include
* Split validation versioned namespaces
* Trailing return types
* Split update framework implementation
* Finish validation split
* Fix missing header
2023-12-06 19:34:19 +01:00
Antoine Prouvost
edb7565462
Default to conda-forge channel ( #3035 )
...
* Default to conda-forge channel
* Fix test
* Refactor umamba repoquery to drop --use-local=int
* Fix tests
2023-12-06 09:32:20 +01:00
Antoine Prouvost
4d709016fb
Use std::array<std::byte, ...> ( #3037 )
...
* Use std::byte
* Use std::array
2023-12-05 16:58:10 +01:00
Antoine Prouvost
9c68ee239b
Refactor (some) OpenSSL functions ( #3024 )
...
* Add sha256 to cryptography
* Refactor cryptographic hasher
* Use new hasher in validation
* Split util::encoding
* Improve hash tests
* Move and refactor cache_name_from_url
* Fix conversion
* Fix namespace
* Fix conversion
* Refactor Base64 encoding
* Move URL percent encoding
* Document encoding.hpp
* Move EVPContextDeleter
* Add doc to DigestHasher
* Remove util::hex_string
* Add UTF8 source file encoding on Windows
* Add hex_to_bytes
* Use util::hex_to_bytes
* Private Digest inheritance
* Make thread_local hasher
* Use digester in validation
* Fix Win
2023-12-04 16:11:35 +01:00
Antoine Prouvost
0a0df09481
Validation QA ( #3022 )
...
* RAII EVP_MD_CTX
* Remove wrong noexcept
* constexpr constants
* Forward nlohman
* No using namespace in public validation.hpp
* Remove wrong noexcept
* Prefer std::array
* Restore noexcept
* Fix nlohman namespace
* Split test_validate.cpp
* Cleanup after test
2023-11-29 17:19:25 +01:00
Antoine Prouvost
32ffc54249
Default to hide credentials ( #3017 )
...
* Default to hide credentials in util::URL
* Default to hide credentials in CondaURL::pretty_str
* Default to hide credentials in CondaURL::str
2023-11-29 12:47:30 +01:00
Antoine Prouvost
5509ed3044
Bind Channel ( #3001 )
...
* Rename binding functions
* Minimal specs bindings
* Add ChannelSpec setters
* Fix flat_set caster
* Bind ChannelSpecs
* Bind Platform
* Rename CondaURL::base > CondaURL::generic
* Automatically convert enums from strings
* Fix CondaURL encoding bug
* Bind CondaURL
* Add comparison for AuthenticationInfo
* Bind AuthenticationInfo
* Rename libmambapy tests
* Bind AuthenticationDataBase
* Fix binding size
* Add weakening_map comparison
* Refactor AuthenticationDataBase bindings
* Bind ChannelResolveParams
* Separate binding utility functions
* Bind CondaURL / subpath
* Fix Channel
* Bind Channel
* Modify specs import
* Remove ChannelSpec setters
* Simplify channel tests
2023-11-28 20:50:51 +01:00
Antoine Prouvost
abd21ccc8c
Remove ChanelContext context capture ( #3015 )
...
* Remove some ChannelContext::context
* Explicit Context capture in SubdirData
* Explicit Context param in MatchSpec
* Move URL hardening to Transaction
* Remove Context capture in ChannelContext
2023-11-28 18:32:09 +01:00
Antoine Prouvost
1230b92094
Move to Ruff ( #3011 )
...
* Use Ruff LSP
* Remove unused imports
* More Ruff fixes
* Remove unused test vars
* Explicit import
* Explicit import
* Explicit import
* Explicit import
* Explicit import
* Warning fixes
* Import fixtures
* Add ruff pre-commit
* Remove pre-commits checks superceded by ruff
* Fix imports
* Fix ruff warning
* Fix test_linking fixtures
* Fix typo
* Fix test_update fixture import
* Python line-length to 100
* Reformat Python code line length
* Fix typo
2023-11-27 19:10:34 +01:00
Bela Stoyan
7f325df6ad
fix config precedence for base env ( #3009 )
...
Co-authored-by: Daniel Elsner <daniel.elsner@quantco.com>
2023-11-27 14:40:47 +02:00
Antoine Prouvost
1340d712eb
Improve ChannelContext and Channel ( #3003 )
2023-11-23 19:14:35 +01:00
Antoine Prouvost
acd357df95
Remove ChannelContext ctor ( #3002 )
2023-11-22 18:45:43 +01:00
Antoine Prouvost
1ee4893eeb
Move core/channel > specs/channel ( #3000 )
...
* Move core/channel > specs/channel
* Remove unnecessary [[nodiscard]]
* Minor specs::Channel improvements
* Add value based ChannelResolveParams
* Add specs::Channel tests
* Add more Channel tests
* ChannelContext::context const only
* Remove unnecessary ChannelContext functions
* Rename core/channel.hpp > core/channel_context.hpp
* Sort (some) CMake files
* Refactor ChannelContext constructor
* Review comments
* Const reference
* Use ChannelContext::make_conda_compatible
2023-11-22 15:29:34 +01:00
Antoine Prouvost
e874e7ea71
Migrate Channel::make_channel to resolve multi channels ( #2986 )
...
* Add one to many get_channels
* Refactor ChannelContext params
* ChannelContext::make_channel migration 1
* ChannelContext::make_channel migration 2
* ChannelContext::make_channel migration 3
* ChannelContext::make_channel migration 4
* ChannelContext::make_channel migration 5
* ChannelContext::make_channel migration 6
* ChannelContext::make_channel migration 7
* Remove Channel bindings
* Remove ChannelContext::make_channel
* ChannelContext::get_channels migration 1
* ChannelContext::get_channels migration 2
* ChannelContext::get_channels migration 3
* Remove get_channels bindings
* Remove ChannelContext::get_channels
* Channel::resolve return a list
* Resolve multi_channel in Channel::resolve
* Use weakening map for multi_channels
* Split Channel resolve_name
* Cleanup signatures
* Add Channel::clear_xxx
* Force removal of trailing '/' in Channel
* Add weak channel comparison
* Use better channel comparisons
* Remove Channel::base_url
* Rename Channel::make_chan > make_channel
* Add doc
* Resolve Channel paths from params
* Review from JohanMabille
* Fix absolute path
2023-11-21 12:07:19 +01:00
Antoine Prouvost
139b7ef020
Refactor env::which ( #2997 )
...
* Clenup env::which
* RAII C calls
* Refactor which functions
* Remove second param from which
* Change which namespace
* Fix which extension
* Add missing OSX headers
* Add util::which tests
2023-11-20 15:13:22 +01:00
Antoine Prouvost
7c5f0562c4
Migrate expand/shrink_home ( #2990 )
2023-11-17 19:45:30 +01:00
Antoine Prouvost
2c8ec3c10f
Add Python-like set operations to flat_set ( #2557 )
...
* Add flat-set doctest printer
* Add Python-like set operations to flat_set
* Fix merge error
* Remove Self
* Refactor operator and member fuctions
2023-11-17 15:36:01 +01:00
Casper van Elteren
1fda52928a
Nu 0.87.0 ( #2984 )
...
Update to nu shell 0.87
2023-11-17 15:33:25 +01:00
Isuru Fernando
49e03b2948
Allow overriding archspec ( #2966 )
...
* Allow overriding archspec
* Fix lint
2023-11-17 10:06:36 +01:00
Antoine Prouvost
be3d531750
Enable new repodata parser by default ( #2989 )
2023-11-17 04:49:51 +01:00
Antoine Prouvost
a0f81393dd
Refactor env directories ( #2983 )
...
* Refactor env directories
* util::split char sep
* Refactor pathsep
* Add path_concat
* user_home_dir as string
* get_windows_known_user_folder return as string
* xdg location as string
2023-11-16 18:26:03 +01:00
Antoine Prouvost
2210f7db06
Add weakening_map ( #2981 )
...
* Add weakening_map
* Use weakening_map in Channel
2023-11-16 11:27:37 +01:00
Antoine Prouvost
cd744e765c
Channel initialization ( #2953 )
...
* Set default_channels at config level
* Resolve default multi channel at the config level
* Fix Yaml source printers
* Resolve local multi channel at the config level
* Remove ChannelContext::make_simple_channel
* Remove Channel::name usage
* Factorize split_once functions
* Try looking for name match in URL path
* Refactor ending_splits_in
* Code improvement
* Replace get_common_parts with concat_dedup
* Remove Channel::name
* Remove Channel::location
* Use URL for priority in channel loader
* Make Channel value-based
* Add range hashing
* Add Channel comparison and hash
* Make channel map/list return by value
* Resolve 1
* Resolve 2
* Resolve 3
* Remove unknown channels
* Hide get_known_platforms
* Add unknown ChannelSpec
* Remove unused function
* Rename Channel::canonical_name > display_name
* Remove Channel friend class
* Add Channel::resolve
* Remove ChannelContext::from_value
2023-11-15 15:52:59 +01:00
Antoine Prouvost
ddea95e16c
Add install from source instructions ( #2977 )
...
* Update static environment files
* Refactor installation pages
* Add install from source instructions
2023-11-15 08:47:53 +01:00
Antoine Prouvost
4fe976d871
Add envrionment cleaner test fixtures ( #2973 )
2023-11-14 08:50:28 +01:00
Antoine Prouvost
b7b87f7513
Environment map ( #2967 )
...
* Move env::copy yo utility and fix encoding
* Add set_env_map / update_env_map
* Fixup: `environ` is a define in msvc's stdlib.h
* Remove get_env_map use of to_upper
---------
Co-authored-by: Joël Lamotte (Klaim) <mjklaim@gmail.com>
2023-11-13 09:11:24 +01:00
Antoine Prouvost
0d42e81667
Modularize libmambapy ( #2960 )
...
* Modularize libmambapy
* Add test-libmambapy to Taskfile
* Fix libmamba installation
* Fix standalone libmambapy configuration
* Change libmambapy layout
* Add scikit-build
* Fix libmambapy extension name
* Add submodules shims
* Fix libmambaoy tests
* Fix stubgen
* Adapt libmambapy tests to scikit-build
* Read version from Python
* Replace confusing names
2023-11-10 18:29:16 +01:00
Johan Mabille
ed27c7112c
Fixed move semantics of DownloadAttempt ( #2963 )
2023-11-09 17:26:27 +01:00
Antoine Prouvost
d116ff8917
Add cmake-format ( #2962 )
...
* Add cmake-format
* Apply cmake-format
2023-11-07 11:08:26 +01:00
Hind-M
2b948ce1cc
Add mirrors ( #2795 )
...
* Add mirrors
* Add test for split_path_tag
* Return string instead of vector when getting auth header
* Simplify data callback
* Update comment
2023-11-07 05:29:36 +01:00
Antoine Prouvost
5564887b97
Rename env functions ( #2954 )
2023-10-31 16:08:49 +01:00
Antoine Prouvost
80e3475e06
Explicit and smart CMake target ( #2935 )
...
* Explicit and smart CMake target
* Only expose explicit CMake targets
2023-10-31 12:07:03 +01:00
Antoine Prouvost
33649d1005
Add refactor getenv setenv unsetenv ( #2944 )
...
* Add refactor getenv setenv unsetenv
* Move to refactored env functions
2023-10-31 10:56:33 +01:00
Julien Jerphanion
cab1bbfdbb
fix: Parse `remote_connect_timeout_secs` as a double ( #2949 )
...
* fix: Parse `remote_connect_timeout_secs` as a double
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* test: Test parsing of `.condarc`
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* fixup! test: Test parsing of `.condarc`
* lint: Format .condarc
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
---------
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2023-10-30 13:46:35 +01:00
Antoine Prouvost
bca398a5dc
Refactor win encoding conversion ( #2939 )
2023-10-26 19:00:17 +02:00
Antoine Prouvost
6592c84084
Combine dev environments ( #2937 )
2023-10-26 12:48:50 +02:00
Antoine Prouvost
08cbcb70c9
Factorize Win user folder function between files ( #2925 )
...
* Cleanup headers in environment.hpp
* Add os_win.hpp
* Use factorized win_os.hpp
* Fix WindowsKnownUSerFolder enum mapping
2023-10-26 11:18:29 +02:00
Antoine Prouvost
c7aba975b5
Resolve ChannelSpec into a Channel ( #2899 )
...
* Change URL custom_channel matcher
* Cannot change location at once
* Simpler channel_alias_location
* Change URL channel_alias matcher
* Refactor ChannelContext::from_url
* Add Windows URL path encoding test
* Simplify URL::set_path
* Fix URL encoding parsing
* Refactor platforms urls
* Fix missing forward declaration
* Fix Win file URL encoding
* Split Channel url functions
* Remove no-URL ctor from ChannelContext::from_name
* Remove no-URL ctor from ChannelContext::make_simple_channel
* Remove old Channel ctor
* Remove channel_alias_location
* Refactor Channel::base_url
* Try not to use location mamba.py
* Remove Channel comparison
* Try Channel::platform_url
* Refactor Channel::platform_urls to use platform_url
* Remove build_url
* Remove concat_scheme_url
* Use spec in from_name
* Tuple equality for URL
* Add tuple_hash
* Add std::hash<mamba::util::URL>
* Make CondaURL hashable
* Refactor make_channel
* New algorithm for authetification map
* Add specs::AutheticationDataBase
* Fix typo authentification > authentication
* Use AuthenticationDataBase
* Fix AuthenticationDataBase
* use AuthenticationDataBase::find_compatible
* Use canonical_name
* Add Credential check to URL
* Simplify crendential check in channel
* Refactor AuthDB credential setters
* No Channel::location in tests
* Remove Channel user scheme password
* Document AuthenticationInfo
* Remove Channel token
* Remove Channel::auth
* Remove Channel::package_name
* More replacement name > canonical_name
* Remove unused function
* No credential from URLs
* Remove unneeded header
* Disable Channel::repo_checker
This is disbled as TUF implementation is not well defined and this
function is not used except in experimental conditions.
* Apply auth info as needed
* Simplify custom_channels instanciation
* Simplify custom_multi_channels instanciation
* Review improvements
2023-10-25 19:06:46 +02:00
Isuru Fernando
f23e078f2c
Fix channels with slashes regression ( #2926 )
...
* Fix channels with slashes regression
* fix formatting
* make the test isolated
Co-authored-by: Antoine Prouvost <AntoinePrv@users.noreply.github.com>
* Add more tests
* Use pytest utilities for negative testing
* Add extra test doc
---------
Co-authored-by: Antoine Prouvost <AntoinePrv@users.noreply.github.com>
2023-10-24 18:35:31 +02:00
bruchim-cisco
9e3e1c4cdd
Fix broken tcsh aliases ( #2929 )
...
Fix broken csh and tcsh multiline aliases
2023-10-24 09:41:22 +02:00
Isuru Fernando
99278ffe17
return architecture levels for micromamba ( #2921 )
...
* return architecture levels for micromamba
* fix formatting
* use function multiversioning only on x86
* fix formatting
* update test
* use __builtin_cpu_supports and check for more features
Co-authored-by: Marcel Bargull <mbargull@users.noreply.github.com>
---------
Co-authored-by: Marcel Bargull <mbargull@users.noreply.github.com>
2023-10-23 21:37:59 +02:00
Isuru Fernando
24f26a0175
Allow defaults::* spec ( #2927 )
2023-10-23 20:03:58 +03:00
Johan Mabille
00dd002fe6
Added PackageFetcher ( #2917 )
...
* Added PackageFetcher
* slight refactoring
* Additional cleanup and first pass according to review
* Last pass according to review
2023-10-19 15:26:57 +02:00
Jonas Haag
e63fe80d61
Print error code if `run` fails ( #2848 )
2023-10-18 10:59:41 +02:00
Johan Mabille
8100f0e6ef
Added missing dependency in libmambaConfig.cmake.in ( #2916 )
2023-10-17 15:41:09 +02:00
Casper van Elteren
a395cab812
Nushell hotfix ( #2841 )
...
* Fixed ordering issue
* Added comment to try catch
* spelling
* Changed path order to prevent conflicting with system python
* Extension prompt command for starship conflict
2023-10-17 12:46:51 +02:00
Antoine Prouvost
4e93b7967a
Add ChannelSpec ( #2870 )
...
* Make find_slash_and_platform private-lib
* Add ChannelSpec
* Add ChannelSpec::Type
* Add abs_path_or_url_to_url
* Add ChannelSpec path normalization and type detection
* Add ChannelSpec::location
* Allow any platform string in ChannelSpec
* Channel::platforms is a flat_set
* Move flat_set_caster to own file
* More flat_set in Channel
* Regenerate Python stubs
* Plug ChannelSpec into Channel
* Resolve path in ChannelSpec
* Fix env export channels
* No resolve symlink in ChannelSpec
* Fix tests on Windows
* Add ChannelSpec attribute extractors
* Add raw domain ChannelSpec test
* Use URL in read_channel_configuration
* Fix local channel name
* Improve path_to_url
* Construct from Channel from URL
* Properly parse channel alias
* Fix wrong move
* Channel alias is a CondaURL
* Add defaulted scheme to URL
* Add defaulted host to URL
* CondaURL tokens can only be at the begining
* Add CondaURL::path_without_token
* Add option to remove credentials in URLs
* Add empty cretendial URL tests
* Add str Credential options
* Add credential option to CondaURL::str
* Add split_prefix/suffix
* Add ChannelContext::from_package_path
* URL::pretty_path only on Windows
* Add ChannelContext::from_path
* Do not resolve paths in ChannelSpec
* Change mapping order in path resolving
* Compute URL canonical_name in read_channel_configurations
* Add URL::authority credentials
* Rename private URL::authentification > URL::authentifaction_elems
* Refactor URL::authority
* Refactor some read_channel_configurations
* Remove empty path URL case
* Add path_is_prefix
* Fix url_match
* Add flat_set doctest printer
* Add CondaURL doctest printer
* Alias dynamic_platform_set in ChannelSpec
* Use util:concat
* Restore subdir in matchspecs
* Make find_slash_and_platform private
2023-10-12 15:56:49 +02:00
Antoine Prouvost
5d515fa043
Add multiple queries to repoquery search ( #2897 )
...
* Remove kENUM
* Fix Hide URL confidential
* Refactor repoquery initialization
* Hide implementation headers
* Add enum_name(QueryType)
* Add QueryType_from_name
* Mulitple queries in repoquery search
* Stubgen
* No mathspec in Json query
* Remove unused ChannelContext
2023-10-09 21:40:50 +02:00
Hind-M
620ae9500c
Add CI test for local channels ( #2854 )
...
* Add CI test for local channels
* Replace conda_prefix with mamba_root_prefix
* Add note for `-c local` in channels long description
* Throw exception if no `conda-bld` dir exists and `-c local` is given
* Add umamba local channel tests to windows CI
* Fix test_config
2023-10-06 11:11:49 +02:00
Antoine Prouvost
b9837f21e2
Header cleanup filesystem follow-up ( #2894 )
...
* Header cleanup
* Header guard rename
2023-10-06 10:19:33 +02:00
Antoine Prouvost
5a302fc4cb
Filesystem library ( #2879 )
...
* move mamba_fs.hpp
* Header cleanup
* No util:: dependency in filesystem
* Change header names
* Use std::replace in filesystem
2023-10-05 20:52:41 +02:00
Antoine Prouvost
91b6c44a51
Read repodata.json using nl::json (rerun) ( #2753 )
...
* Add simdjson dependency
* Add experimental_repodata_parsing option
* Add simdjson repodata parser
* Add missing dependency
* Deactivate simdjson by default
2023-10-04 22:06:46 +02:00
Antoine Prouvost
050278c738
Add FindLibsolv.cmake ( #2886 )
...
* Add FindLibsolv.cmake
* Add OSX dynamic lib names
2023-10-04 09:59:20 +02:00
Antoine Prouvost
0fbb0e4fab
Use CMake targets for reproc ( #2883 )
...
* Use CMake targets for reproc
* Use reproc-cpp-static on Windows
* Upper pin on Mamba
2023-10-02 18:01:14 +02:00
Johan Mabille
474be8b9b0
Download ( #2844 )
...
* Refactored Subdir Metadata
* Plugged downloader into subdirdata
* Simplified Donwloader APIs
* Added DownloadMonitor and plugged it into channel_loader
* Simplified subdir API
* Fixed python bindings
* Changes according to review (on going)
* Added json parsers to subdirmetadata
2023-09-29 16:19:14 +02:00
Antoine Prouvost
146827c0eb
Change libsolv static lib name ( #2876 )
2023-09-27 13:19:10 +02:00
Antoine Prouvost
be30af600a
Build micromamba win with feedstock ( #2859 )
...
* Try CI
* Remove useless header
* Try mixing static windows build with Conda
* More packages from conda-forge
* Move to yaml-cpp>=0.8.0
* Ensure proper yaml-cpp target
* Use yaml-cpp-static on Windows
* Fix versions
* Use libsolv-static from Conda-Forge
2023-09-27 10:32:47 +02:00
Antoine Prouvost
f720e2d7fa
path_to_url percent encoding ( #2867 )
2023-09-26 14:59:02 +02:00
Antoine Prouvost
1151ff3662
Minor Channel refactoring ( #2852 )
...
* Allow setting new token in CondaURL
* Use user and password in Channel
* Remove empty user in auth tests
* Mark URL::str const
* Store channel url in CondaURL
* Respect proper percent encoding in Channel
* Add zos-z to specs::Platform
* Replace channel.cpp known_platforms
* Remove optional from Channel ctor
* No need for const in return by value
2023-09-26 14:19:11 +02:00
Daniel Elsner
a2b0f9c3b8
Further improve `micromamba search` output ( #2823 )
2023-09-26 08:09:22 +02:00
Antoine Prouvost
a8d595b6ff
Fix Posix shell on Windows ( #2803 )
...
Fix path spearator on Win Posix shells
2023-09-25 14:04:22 +02:00
Antoine Prouvost
60962b9d82
Build micromamba with /MD ( #2862 )
...
* Build micromamba with /MD
* Factor same dependencies
* Factor header only libraries
2023-09-22 13:44:17 +02:00
Antoine Prouvost
3c200f9e8e
Don't force MSVC_RUNTIME ( #2861 )
...
* Don't force MSVC_RUNTIME
* Run micromamba-feedstock fork
* Explicit MSVC runtime in CI
* Fix typo
2023-09-21 20:02:02 +02:00
Hind-M
044824b6b2
Add local channels test ( #2853 )
2023-09-21 11:41:39 +02:00
Johan Mabille
bb08805c7e
Fixed libmamba tests static build ( #2855 )
2023-09-20 14:12:31 +02:00
Antoine Prouvost
8b26f8e92c
Fix local channels location ( #2851 )
2023-09-19 17:11:32 +02:00
Johan Mabille
6723eedc74
Improved static build error message ( #2850 )
2023-09-19 15:26:14 +02:00
Antoine Prouvost
b265c900dc
Authenfitication split user and password ( #2849 )
...
* Store user and password in AuthentificationInfo
* Add scope for AuthentificationInfo
* Remove useless include
2023-09-19 12:07:00 +02:00
Antoine Prouvost
7cf41652cf
Channel cleanup ( #2832 )
...
* Compress channel alias creation
* Remove split_scheme_auth_token from query
* Remove split_scheme_auth_token from output.cpp
* Remove split_scheme_auth_token from channel.cpp
* Delete split_scheme_auth_token
* Channel no string copy
* channel.hpp include sanitazing
* Remove split_anaconda_token
* Remove split_conda_url
* Remove is_package_file
* Remove needless include
* Move secret regex to util.cpp
2023-09-19 09:43:54 +02:00
Antoine Prouvost
ddbeb533e3
Add CondaURL::pretty_str ( #2830 )
2023-09-15 17:03:09 +02:00
Gabriel Simões
756007399b
Handle null and false noarch values ( #2835 )
...
* Handle null and false noarch values
* Fix formatting
---------
Co-authored-by: Johan Mabille <johan.mabille@gmail.com>
2023-09-15 14:21:03 +02:00
Jonas Haag
0319eaf97f
Support $var syntax in .condarc ( #2833 )
2023-09-15 09:00:52 +02:00
Casper van Elteren
f4cea9b732
Add Nushell activation support ( #2693 )
2023-09-14 12:14:09 +02:00
Antoine Prouvost
9b757c24a8
No ugly kenum ( #2831 )
2023-09-14 10:56:29 +02:00
rmittal87
a5c51980ba
Adding locks for cache directories in case multiple processes are try…. ( #2811 )
...
Adding locks for cache directories in case multiple processes are trying to create an environment at the same time
2023-09-13 15:04:29 +02:00
Hind-M
806287599c
[Micromamba] Add `env update` ( #2827 )
...
* Remove weird piece of code
* Add micromamba env update
* Add env update test
* Add xtl check in tests
2023-09-13 13:15:37 +02:00
rmittal87
e064563ee4
added support for empty lines in dependency file in txt format. micro… ( #2812 )
...
added support for empty lines in dependency file in txt format. micromamba was crashing earlier
2023-09-13 09:13:43 +02:00
Lisandro Dalcin
0289050d17
Fix linking on Windows when Scripts folder is missing ( #2825 )
...
* Add reproducer for issue #2808
* Ensure parent directory exists when creating Python entry points (#2808 )
2023-09-11 18:02:24 +02:00
Antoine Prouvost
a527511c14
Add CondaURL ( #2805 )
...
* No build pattern in util::URL
* URL move string for already encoded operations
* Add exclusion characters to util::url_encode
* Add encoding of URL path
* Simplify URL file empty host handling
* Add raw URL::str
* Add path_get_drive_letter
* Url encode with char exclude
* Handle Windows drive encoding
* Add URL::clear_xxx
* Add CondaURL
* Add specs::known_platforms
* Fix CondaURL::token
* Add CondaURL::platform
* Fix pybind tests
* Add CondaURL::package
* Rename specs/url.hpp > specs/conda_url.hpp
2023-09-07 16:59:46 +02:00
Klaim (Joël Lamotte)
bbac096a04
Context: not a singleton ( #2615 )
...
Context is not a singleton anymore.
---------
Co-authored-by: Johan Mabille <johan.mabille@gmail.com>
2023-09-05 10:55:43 +02:00
Johan Mabille
0a5ed8d71f
release libmamba 1.5.1, libmambapy 1.5.1, mamba 1.5.1, micromamba 1.5.1
2023-09-05 10:23:43 +02:00
Jonas Haag
e11fe5a1d4
Bring back repodata_use_zst ( #2790 )
2023-09-01 14:56:55 +02:00
Jonas Haag
c51ce62af7
Parse subdirs in CLI match specs ( #2799 )
...
Fixes #2792
For example, the channel in `install conda-forge/noarch::tzdata` would
previously be parsed as `conda-forge/noarch` while it should be parsed
as `conda-forge` with `noarch` subdir.
2023-08-31 22:52:58 +02:00
Antoine Prouvost
3fcff3904b
Windows path manipulation and other cleanups ( #2801 )
...
* Add path_win_to_posix
* Move path_has_drive_letter and is_path
* Refactor on_[plat]
* Add util::path_to_posix
* Fix static builds
2023-08-31 22:10:18 +02:00
jaimergp
cf3e20e8eb
add `context.register_envs` to control whether environments are registered to `environments.txt` or not ( #2802 )
...
add context.register_envs
2023-08-31 21:59:27 +02:00
Daniel Elsner
7dfbf2cf0d
Clearer output from `micromamba search` ( #2782 )
...
* [feat] Show other versions with --pretty printing
* [feat] Refine version/build table in search pretty print
* [feat] Change table view to contain further aligned build information
* [feat] Redirect non-wildcard search to single package view
* Fix repoquery test for empty single package view
* Cleanup + add string marker for alignment
* Fix string marker for libmambapy
* Add changes suggested by JH
* Move to unordered_map where it makes sense
* Move to string_view and switch-case constexpr alignment mapping
* Fail lookup for non-existing alignments
* Remove unnecessary reference in constructor
2023-08-31 16:10:03 +02:00
Antoine Prouvost
7b23f51c75
Various fixes ( #2800 )
2023-08-31 15:31:00 +02:00
Antoine Prouvost
319f0553f5
Add libsolv namespace callback ( #2796 )
...
* Add pool namespace rel test
* Add whatprovides management to ObjPool
* Add ObjPool::add_namespace_callback
* Try fix MacOS builds
2023-08-29 16:35:10 +02:00
Antoine Prouvost
e5abd4249f
Fix pins ( #2786 )
...
* Add libsolv test scenarios
* Fix pins
* Add test for python pinning
* Fix test
* Deactivate test on Windows
2023-08-29 03:32:09 +02:00
Antoine Prouvost
65c061f75c
Use generic_string for path on Windows unix shells ( #2685 )
2023-08-28 15:21:23 +02:00
Antoine Prouvost
da70542cbe
Enable Link Time Optimization ( #2742 )
...
* Add MAMBA_LTO option to CMake
* Handle no CMAKE_BUILD_TYPE in LTO
2023-08-25 09:50:35 +02:00
Antoine Prouvost
d87924b8ff
Add scope in util tests ( #2775 )
2023-08-24 13:14:15 +02:00
Antoine Prouvost
770a07d4d3
fix install pin ( #2773 )
...
* Add artificial flag to ObjSolvable
* Filter pins out of solver output
2023-08-24 12:44:02 +02:00
Johan Mabille
795734fb7f
release libmamba 1.5.0, libmambapy 1.5.0, mamba 1.5.0, micromamba 1.5.0
2023-08-24 09:24:26 +02:00
Chawye Hsu
32ba355941
fix: only reactivate current environment ( #2763 )
2023-08-23 16:13:04 +02:00
Jonas Haag
2cd1bd0d38
Fix __linux virtual package default version ( #2749 )
...
Co-authored-by: AntoinePrv <AntoinePrv@users.noreply.github.com>
2023-08-23 13:26:12 +02:00
Tin Lai
0624d3cb27
Fix fish completion ( #2769 )
...
Co-authored-by: Jonas Haag <jonas@lophus.org>
2023-08-23 13:02:45 +02:00
Johan Mabille
6e4d91e2ec
New apis for downloading ( #2695 )
...
* New apis for downloading
* Changes according to review
* Added minimal test and fixed issues
* Python backward compatibility
2023-08-23 09:07:20 +02:00
Hind-M
378c4db57e
[micromamba] Fix config list sources ( #2756 )
...
* Fix config list sources in micromamba
* Add test
* Handle case of source as map
2023-08-22 09:10:39 +02:00
Hind-M
427771c4b4
Fix warnings ( #2760 )
2023-08-21 15:16:48 +02:00
Chawye Hsu
33fa5a10c8
fix: added missing `hook_preamble()` for powershell hook ( #2761 )
...
Signed-off-by: Chawye Hsu <su+git@chawyehsu.com>
2023-08-21 13:36:47 +02:00
Antoine Prouvost
df918ccf06
Isolate URL object ( #2744 )
...
* Add remove_(prefix|suffix)
* Refactor and document unc_url
* Remove unused functions
* Add CURLUrl wrapper
* Hide CURL from URLHandler
* Rename URLHandler > URL
* Simplify test_url
* Fix path setter
* Add URL builder tests
* Rename URL::url > URL::str
* Rename URL ctor URL::parse
* Refactor has_scheme
* Add get_scheme
* Add scheme option to URL::parse
* Add scheme option to URL::str
* Fix build
* Add has_drive_letter
* Rename and document scheme functions
* Stronger URL invariant
* Rename URL::auth > URL::authentication
* Add URL::authority
* Add URL IP tests
* Document URL
* Fxi rebase util/string
* Fix channel tests
* Allow password without user in URL
* Scope util::URL
* No context in test_url_manip
* Remove unused CURLEasyHandle
* remove declaration
* Add case handling to URL
* Add URL::operator==
* Add URL::operator/
* Test url encoding
* Reimplement URL encoding without CURL
* Fix MSVC
* Add URL::user encoding
* Add URL::password encoding
* Add URL::host encoding
* Add URL::str options
* Small URL imrovement in channel.cpp
* Fix URL auth encoding
* Added review suggestions from @Hind-M
2023-08-21 11:43:09 +02:00
Jonas Haag
3c74e601bf
Remove get_clean_dirs() ( #2748 )
2023-08-14 18:25:23 +02:00
Antoine Prouvost
03e34174dc
Move util_string to utility library ( #2739 )
2023-08-11 13:32:15 +02:00
Isuru Fernando
3e4b1dab0c
Add win-arm64 support ( #2745 )
2023-08-11 09:07:40 +02:00
jaimergp
a3ea550997
Add missing newline in legacy errors ( #2743 )
2023-08-10 10:58:25 +02:00
Antoine Prouvost
be105ee79d
Safe Curl opt in url.cpp ( #2734 )
...
* Safe Curl opt in url.cpp
* Delete Curl wrappers copy/move ctor/assign
* Simplify CurlStr free
* Improve CURLEasyHandle doc
2023-08-09 20:16:11 +02:00
Hind-M
beebd7ee47
Remove created prefix if aborted with `--platform` ( #2738 )
...
* Remove created prefix if aborted
* Add bool to remove created dir
* Rename flag to be more explicit
2023-08-08 13:49:54 +02:00
Antoine Prouvost
3c3fa084e2
specs platform ( #2729 )
...
* Add platform enum
* Use specs::Platform in context
* Use specs::Platform in RepoData
* Fix MSVC builds
* Fix msvc build
2023-08-08 11:45:36 +02:00
Daniel Farrell
00fb86c726
Use xdg schemas for config saving/reading (minified) ( #2714 )
...
Co-authored-by: Danny Farrell <dan@cyrusbio.com>
2023-08-01 00:08:02 +02:00
Johan Mabille
17b2cf5083
Fixed move constructor in CURLHandle ( #2710 )
2023-07-26 11:18:54 +02:00
ThomasBlauthQC
a7cd3b6292
Respect subdir in match spec ( #2300 )
2023-07-26 10:33:55 +02:00