Commit Graph

19 Commits

Author SHA1 Message Date
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
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 a8464367c4
Make some fixture local (#2919)
* Make xdg fixtures local

* Make create fixtures local
2023-10-17 16:27:47 +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
Jonas Haag 0319eaf97f
Support $var syntax in .condarc (#2833) 2023-09-15 09:00:52 +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
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
Hind-M 1b28840016
Channels refactoring/cleaning (#2537)
* Remove unused functions

* Have make_channel and parsing in different lines

* Remove m_canonical_name setting in getter

* Set canonical_name in make_simple_channel and make it mandatory

* Fix canonical_name setting

* Remove make_cached_channel

* Remove channel_context from channel

* Cleaning and moving functions around and add some tests

* Add forgotten mamba namespace in tests

* Move utility functions to url files and remove util_url
2023-06-28 11:22:40 +02:00
Jonas Haag 0a7490c940
Remove banner (#2298) 2023-06-20 16:53:19 +02:00
Jonas Haag 48d595ae45
Update pre-commit hooks (#2586) 2023-06-13 22:39:50 +02:00
AntoinePrv 6893ceaa33 Properly capture stderr in test exceptions 2022-10-14 10:45:54 +02:00
AntoinePrv 613328af41 Rename and parametrize micromamba test env name 2022-10-14 10:04:01 +02:00
AntoinePrv 5c8672ebd1 Fix test using wrong path separator on Windows 2022-07-21 10:38:42 +02:00
AntoinePrv 771ea3cebc Isolate micromamba config tests 2022-07-21 10:38:42 +02:00
Jonas Haag bb69cbd7de
Do not modify string during sregex_iterator iteration (#1768) 2022-07-02 10:27:24 +02:00
Jonas Haag 9e5f8fd966
Micromamba: Substitute env vars in .condarc (#1423) 2022-02-02 08:16:08 +01:00
Jonas Haag 3719781cdf Update pre-commit versions 2022-01-29 12:56:15 +01:00
Adrien Delsalle fa765e8e97
Fix tests (#1259)
* fix tests
fix c++ by setting show_banner default value to false
fix python tests by masking additional show_banner API value

* Remove debug prints
2021-11-05 20:55:00 +01:00
Adrien Delsalle bff16c2bdc
Split projects (#1219)
* make a clear split between CMake targets
* split versions between libmamba and mamba
* add libmambapy target for python bindings and make mamba depend on it
* rename CMake options to make them homogeneous, simplify CMake
* remove termcolor from thirdparties, use it as a dependency
* remove unnecessary version global vars and convert to functions
* update CI workflows
2021-10-26 16:01:53 +02:00