Ayaz Salikhov
f67914ef8a
maint: Add pyupgrade pre-commit hook ( #3671 )
2024-12-09 17:05:54 +01:00
Julien Jerphanion
575809fbc3
fix: Reintroduce the `uninstall` command ( #3650 )
...
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-12-04 18:02:42 +01: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
Julien Jerphanion
5251abaad0
test: Adapt `test_remove_orphaned` unlinks ( #3417 )
...
* test: Adapt `test_remove_orphaned` unlinks
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
* Relax test by only checking for at least two unlinks' presence.
Co-authored-by: Hind-M <70631848+Hind-M@users.noreply.github.com>
* Revert to the commented and previously used value
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Hind Montassif <hind.montassif@gmail.com>
* Revert "Revert to the commented and previously used value"
This reverts commit 009f982c54
.
---------
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Hind-M <70631848+Hind-M@users.noreply.github.com>
Co-authored-by: Hind Montassif <hind.montassif@gmail.com>
2024-08-29 14:22:35 +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
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
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
Antoine Prouvost
0b5e2d013b
Refactor test_remove.py to use fixture ( #3131 )
...
* test_depends_local
* Fix test yaml_env
* Refactor TestRemove to use fixtures
* Refactor TestRemoveConfig to use fixtures
2024-01-16 17:51:36 +01:00
Johan Mabille
7709425155
Disabled failing test ( #3062 )
2023-12-14 10:54:59 +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
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
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
Joël Lamotte (Klaim)
3625231fd3
Added test detecting failure when cleaning removed packages.
2022-10-03 19:19:51 +02:00
Wolf Vollprecht
792e2e5853
make tests pass for now
2021-12-08 14:26:47 +01:00
Wolf Vollprecht
c82233dd4b
wait for python to start
2021-12-07 23:55:23 +01:00
Wolf Vollprecht
34c2383465
store relative link, add tests
2021-12-07 22:05:12 +01:00
Wolf Vollprecht
6241df934d
use remove_or_rename to fix deleting files in use on Windows
2021-12-07 22:05:03 +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