Hind-M
3dcbf76a04
Fix display of env activation message and co ( #3715 )
2025-01-06 09:56:21 +01:00
Ayaz Salikhov
f67914ef8a
maint: Add pyupgrade pre-commit hook ( #3671 )
2024-12-09 17:05:54 +01:00
Julien Jerphanion
7b0a957dc0
feat: List PyPI packages in environment export ( #3623 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Johan Mabille <johan.mabille@gmail.com>
Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
2024-11-21 11:27:52 +01:00
Ayaz Salikhov
ccbf795281
fix: Export `'channels'` as part of environments' export ( #3587 )
2024-11-18 11:20:55 +01:00
Ayaz Salikhov
0f4ad44c2e
Update pre-commit hooks except clang-format ( #3599 )
2024-11-14 10:27:18 +01:00
Ayaz Salikhov
4535562cb8
fix: Correct `mamba env export --json --from-history` ( #3590 )
2024-11-12 14:06:58 +01:00
Julien Jerphanion
d2d16517ed
fix: JSON output for environment export ( #3559 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Johan Mabille <johan.mabille@gmail.com>
2024-10-22 17:31:33 +02:00
Julien Jerphanion
d26c7f5632
fix: Support `conda env export` `no-builds` flag ( #3563 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-10-22 16:32:41 +02:00
Julien Jerphanion
dfcc7c0bf1
fix: Export the environment prefix in specification ( #3562 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-10-22 15:20:21 +02:00
Hind-M
3d71f57517
Create empty base prefix with `env update` ( #3519 )
2024-10-16 10:53:51 +02:00
Julien Jerphanion
91a2a2b868
fix: Adapt `test_env_update_pypi_with_conda_forge` ( #3537 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-10-15 17:06:07 +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
Hind-M
fc06ae8bbc
Fix `test_env_update_pypi_with_conda_forge` ( #3459 )
...
Fix test
2024-09-19 11:43:05 +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
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
Julien Jerphanion
16fec215e9
test: Adapt test_explicit_export_topologically_sorted ( #3377 )
...
As of pip 24.1.2 distribution on conda-forge,
pip does not depend on wheel anymore:
https://github.com/conda-forge/pip-feedstock/pull/121/files#diff-f3725a55bf339595bf865fec73bda8ac99f283b0810c205442021f29c06eea9aR21-R25
Hence wheel index being 0 causing the bug.
Let's omit it entirely.
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-07-31 18:39:50 +02:00
Johan Mabille
dcd777fbd1
Test with xtensor-python instead of unmaintained xframe ( #3286 )
...
Upgraded tests to use packages available on osx-arm64
2024-05-03 18:02:33 +02: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
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
Jonas Haag
07ce0c4bdb
Implement --md5 and --channel-subdir for non-explicit env export ( #2672 )
...
Co-authored-by: Johan Mabille <johan.mabille@gmail.com>
2023-09-02 00:20:33 +02:00
Antoine Prouvost
f4bb43676b
Add topological sort explict export tests ( #2618 )
2023-06-23 17:59:47 +02:00
Antoine Prouvost
05f1b9b6b3
Refactor test_create, test_proxy, and test_env for test isolation ( #2416 )
...
* Deactivate PyCQA line-length warnings
* Proper os.environ restore in pytest
* Add --mamba-pkgs-dir for cache reuse in Pytest
* Set pytest tmp retention policy
* Allow Path in test helpers
* Refactor test_create for isolation
* Improve pytest fixtures
* Refactor test_env.py for test isolation
* Refactor test_proxy for isolating tests
2023-03-29 19:30:38 +02:00
Hind-M
f279b484f2
Fix `micromamba env export` to get channel name instead of full url ( #2260 )
...
* Fix `micromamba env export` to get channel name instead of full url
* Use pkgs/main instead of defaults as channel name
2023-02-22 16:53:11 +01:00
Jonas Haag
3f716332f9
Fix #1783 : Add `micromamba env create` ( #1790 )
...
Fixes https://github.com/mamba-org/mamba/issues/1783
2023-01-10 17:40:25 +01:00
Hind Montassif
980f3f92a3
Add utf-8 encoding when opening file
2022-10-17 09:40:47 +02:00
Hind Montassif
0d052d2685
Read line by line
2022-10-14 17:41:37 +02:00
Hind Montassif
3c199a0358
Use readlines instead of read in test_env
2022-10-14 17:01:53 +02:00
Hind Montassif
5e00ffb139
Fix linter error
2022-10-14 16:01:02 +02:00
Hind Montassif
ed13a07532
Add conda environments file check in test_env
2022-10-14 15:54:26 +02:00
Hind Montassif
aeb4f86a43
Remove double spaces causing linter error
2022-10-14 12:07:40 +02:00
Hind Montassif
d8a549dbcf
Add unregistering/remove envs at the end of env tests
2022-10-14 11:13:44 +02:00
Hind Montassif
293503cad8
Remove bkup conda env file in env tests
...
(will hopefully fix CI failure on windows)
2022-10-13 18:34:29 +02:00
Hind Montassif
41e91e5906
Add test env remove
2022-10-11 10:42:40 +02:00
Nicolas Stinus
7d607e70b2
Add a test for `micromamba env export`
2022-06-10 11:01:25 -04:00
Jonas Haag
3719781cdf
Update pre-commit versions
2022-01-29 12:56:15 +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