Commit Graph

26 Commits

Author SHA1 Message Date
Ayaz Salikhov f67914ef8a
maint: Add pyupgrade pre-commit hook (#3671) 2024-12-09 17:05:54 +01: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
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
Johan Mabille 4f2d1ebd43
Added mamba as dynamic build of micromamba (#3060) 2023-12-14 14:22:31 +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
Casper van Elteren f4cea9b732
Add Nushell activation support (#2693) 2023-09-14 12:14:09 +02:00
Antoine Prouvost 8cb0985cd1
Refactor tests (#2829)
* Make test Python 3.8 compatible

* Speed up test_activation.py

* Refactor test_list.py
2023-09-13 19:26:38 +02:00
Antoine Prouvost 0c5154188c
Remove warnings from test_activation (#2727)
Remove warnings
2023-08-03 10:48:43 +02:00
Jonas Haag 48d595ae45
Update pre-commit hooks (#2586) 2023-06-13 22:39:50 +02:00
Antoine Prouvost ecb5a7edc5
Micromamba tests improvements (#2517)
* Automatically restore os.environ in umamba tests

* Cleanup test_info

* Refactor conftest.py

* Eagerly clean micromamba test dir

* Refactor micromamba test_info with new fixtures

* Fix test self_update on Win
2023-05-26 18:27:54 +02:00
Antoine Prouvost 17232ca90e
Honor envs_dirs (#2538)
* Improve `is_writable` on non-existing sub-folders

Co-authored-by: Katrin Muck <katrin.muck@tuwien.ac.at>

* Add contains test case

* Include envs_dirs in target_prefix computation

* Use target_prefix and root_prefix in micromamba shell cmds

* Add umamba envs_dirs activation test

* Add envs_dirs create test

* Mantain umamba shell cmds backward compat

* Improve activate error message

* Fix activation on windows

---------

Co-authored-by: Katrin Muck <katrin.muck@tuwien.ac.at>
2023-05-25 10:16:56 +02:00
Wolf Vollprecht c889fa6855
add micromamba self-update functionality (#2023) 2022-11-01 17:24:46 +01:00
Wolf Vollprecht 23ea2fb1ff try to fix powershell tests 2022-10-14 14:53:32 +02:00
AntoinePrv c3051a3723 Dynamic windows lookup profile 2022-10-14 11:03:53 +02:00
AntoinePrv 2c10965041 Add winreg fixture on windows 2022-10-14 11:03:51 +02:00
AntoinePrv bbf1980c7e Add missing home folder isolation 2022-10-14 10:45:54 +02:00
AntoinePrv 241c5f4f0e Refactor micromamba test_actiavation to use isolated fixtures 2022-10-14 10:45:52 +02:00
Wolf Vollprecht 0434a27f4e add tcsh testing 2022-10-13 16:24:20 +02:00
Wolf Vollprecht eae95e3797 add csh tests and fix other tests 2022-10-13 16:24:20 +02:00
Wolf Vollprecht 537eb44c78 add some tests to check for env vars when activating 2022-10-13 16:24:20 +02:00
Pavel Zwerschke e1bf7b9901 Add micromamba deinit shell command
Fix xonsh + fish micromamba shell init
2022-07-20 17:29:45 +02:00
Jonas Haag 3719781cdf Update pre-commit versions 2022-01-29 12:56:15 +01:00
Wolf Vollprecht 7ef46956f6 debug and fix tests 2021-12-07 09:38:55 +01:00
Wolf Vollprecht d97ac17570 fix unicode on win 2021-11-30 16:22:52 +01:00
Adrien Delsalle bbd4ca31bd
Fix shell activation regression (#1289) 2021-11-23 23:45:10 +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