Commit Graph

34 Commits

Author SHA1 Message Date
Hind-M 3dcbf76a04
Fix display of env activation message and co (#3715) 2025-01-06 09:56:21 +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
Hind-M 47e962968d
Fix test on windows (#3555) 2024-10-28 09:43:29 +01: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 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
Sylvain Corlay 6db44c8a64
Support CONDA_DEFAULT_ENV (#3445)
* Support CONDA_DEFAULT_ENV

* Fix test
2024-09-19 16:40:00 +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
Hind-M 7f70ac900a
Fix `test_no_python_pinning` (#3321)
* Enable test_no_python_pinning

* Fix test_no_python_pinning
2024-07-02 11:14:57 +02:00
Johan Mabille b277685bb5
Temporarily disabled no_python_pinning test on Windows (#3322) 2024-06-14 11:42:35 +02:00
Hind-M 4604d390e9
Fix test_no_python_pinning (#3319) 2024-06-12 14:29:16 +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 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
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
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 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 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
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
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 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 b1c4950261
[Micromamba] Add mamba tests (#2877)
* Add mamba `test_api` tests to umamba

* Add more tests
2023-10-03 10:51:16 +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 16c3da8e4d
Allow --force-reinstall on uninstalled specs (#2636) 2023-06-29 14:27:18 +02:00
Antoine Prouvost be99482471
Fix --force-reinstall (#2601) 2023-06-16 17:50:54 +02:00
Jonas Haag 48d595ae45
Update pre-commit hooks (#2586) 2023-06-13 22:39:50 +02:00
Antoine Prouvost 0739da245f
cleanup: fix pytest warnings (#2490) 2023-04-25 14:22:31 +02:00
timostrunk c80493a22c
Fix segmentation fault in case of an invalid package name (#2287)
Co-authored-by: Timo Strunk <Timo.Strunk@nanomatch.com>
2023-02-13 22:39:23 +02:00
Jonas Haag ad46971fab
Update test_install.py 2022-08-31 11:00:22 +02:00
Jonas Haag d443b7c26b
Update test_install.py 2022-08-31 10:24:03 +02:00
Jonas Haag ded99da75c
Update test_install.py 2022-08-31 09:24:05 +02:00
Jonas Haag fa9f450ca2
Fix test_python_pinning 2022-08-30 23:06:54 +02:00
Adrien Delsalle 88c6b7c0e9
Improve pyc compilation (#1249)
* fix pyc compilation when using explicit spec
* add target prefix as installed repo in explicit specs installation
* detect missing Python, warn and skip compilation
* also catch wrong Python version conversion from string
* add test
* add a compile_pyc configurable
* make it rc, env var and CLI configurable
2021-11-02 18:09:23 +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