Commit Graph

10 Commits

Author SHA1 Message Date
Ayaz Salikhov d0c7458839
maint: Add prettier pre-commit hook (#3663) 2025-01-13 09:09:07 +01: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 21675b6517
Enforce space between definitions (#3049) 2023-12-07 23:00:25 +01:00
Antoine Prouvost a527511c14
Add CondaURL (#2805)
* No build pattern in util::URL

* URL move string for already encoded operations

* Add exclusion characters to util::url_encode

* Add encoding of URL path

* Simplify URL file empty host handling

* Add raw URL::str

* Add path_get_drive_letter

* Url encode with char exclude

* Handle Windows drive encoding

* Add URL::clear_xxx

* Add CondaURL

* Add specs::known_platforms

* Fix CondaURL::token

* Add CondaURL::platform

* Fix pybind tests

* Add CondaURL::package

* Rename specs/url.hpp > specs/conda_url.hpp
2023-09-07 16:59:46 +02:00
Antoine Prouvost 50a627e002
Attempt to fix CI (#2637)
* Revert "Change brace space in clang-format (#2627)"

This reverts commit 3dce990111.

* Revert "Improvement: Support ZST in mamba and enable ZST by default (#2404)"

This reverts commit 60cd358c39.
2023-06-29 08:29:37 +02:00
Antoine Prouvost 3dce990111
Change brace space in clang-format (#2627)
Change braced init spaces
2023-06-28 11:38:33 +02:00
Antoine Prouvost 156edfd89f
Arrange header sorting (#2375)
* Change headers sorting in Clang-format

* Reorder headers
2023-03-14 17:15:21 +01:00
Antoine Prouvost 365342cc04
Fine tune clang-format proposal (#2290)
* Fine-tune .clang-format

* Fix missing header and right const

* Fix header order on Windows

* Apply pre-commit
2023-02-20 16:01:43 +01:00
Wolf Vollprecht 7f9c5adb77 bump clang-format to 13.0.1 and make it work again 2022-02-22 15:58:47 +01:00
Marcelo Trevisani 98f2530d23 Add cpp linter and fix warnings 2020-08-03 20:04:50 +01:00