Commit Graph

3187 Commits

Author SHA1 Message Date
Hind Montassif 45e4b7c8ba release libmamba 2.0.0beta2, libmambapy 2.0.0beta2, micromamba 2.0.0beta2 2024-06-07 10:21:19 +02:00
Hind-M 9300a6530c
[OCI Registry] Handle compressed repodata (#3300)
* Handle fetching zstd encoded repodata from OCI registry

* Rename AuthenticationData and corresponding func to be more relevant
2024-05-28 09:50:58 +02:00
Hind-M 36d2035764
[CEP-15] Support `base_url` with `repodata_version: 2` using `mamba` parser (#3282)
* Support repodata_version:2/cep-15 with mamba parser

* Fix behavior when base_url is missing with repodata_version 2
2024-05-28 09:48:33 +02:00
Hind-M 93d565e75f
Fix OCIMirror use (#3296)
* Modifications for a first test (forcing params/not cleaned up yet)

* Handle specs checksums

* Remove cout and unnecessary code

* Handle zst extension of repodata

* Add missing invoke_on_failure
Add back curl config

* Organize comments and remove useless leftovers

* Correctly use hide_secrets

* Handle "oci" scheme
2024-05-27 14:11:41 +02: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
Johan Mabille 9006fb963b release libmamba 2.0.0beta1, libmambapy 2.0.0beta1, micromamba 2.0.0beta1 2024-05-04 17:16:21 +02:00
Johan Mabille a0d2333a03 release libmamba 2.0.0beta0, libmambapy 2.0.0beta0, micromamba 2.0.0beta0 2024-05-03 23:06:07 +02:00
Klaim (Joël Lamotte) 69ef891ea9
Hotfix to allow Ctrl+C in python scipts (#3285)
* Ignore _skbuild dirs

* Fixed `Context::use_default_signal_handler(bool)` not having any effect

* formatting
2024-05-03 21:33:49 +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
Ryan Carsten Schmidt 46036e1917
Fix typos in comments (#3272) 2024-04-17 14:17:14 +02:00
Antoine Prouvost 453c9667a5
Fix VersionSpec equal and glob (#3269) 2024-04-10 10:22:02 +02:00
Antoine Prouvost a425e4b487
Fix pin repr in solver error messages (#3268)
* Add solver pin test

* Improve pin repr in SAT error messages
2024-04-09 17:15:37 +02:00
Antoine Prouvost 80f1e84d49
Bind text_style and graphic params (#3266)
* Rename binding utils.hpp > bind_utils.hpp

* Bind fmt::text_style

* Change format type in Unsolvable explain message

* Bind attributes

* Bind GraphicsParams
2024-04-08 16:39:38 +02:00
Johan Mabille b5195d96b0 release libmamba 2.0.0beta0, libmambapy 2.0.0beta0, micromamba 2.0.0beta0 2024-04-04 09:29:13 +02:00
Antoine Prouvost 43be9b51d2
Add missing pybind header (#3256) 2024-03-29 18:19:28 +01:00
Antoine Prouvost 9ad283aa46
Bind VersionPredicate (#3255) 2024-03-29 18:00:02 +01:00
Antoine Prouvost 25a253b255
Small changelog additions (#3254) 2024-03-29 14:54:55 +01:00
Antoine Prouvost 08d7b4e9cb
Don't add duplicate .conda and .tar.bz2 packages (#3253)
* Refactor signatures arg

* Remove set_solvables_with_sigs

* Fix optional signature type

* Change Database package type interface

* Change PackageType for libsolv parser

* Change PackageType for mamba parser

* Don't duplicate .conda and .tar.bz2 in mamba exe

* Fix error message disconnected graph
2024-03-29 12:07:35 +01:00
Antoine Prouvost 245de2009e
Update pre-commit hooks" (#3252)
* Update Pre-commit hooks

* Apply updated hook
2024-03-28 16:18:19 +01:00
Antoine Prouvost 327534724a
Refactor os utilities (#3248)
* Refactor make_virtual_package

* Refactor macos_version

* Add new windows_version

* Add __win virtual package version

* Use new util::windows_version

* Add virtual packages version test

* Add Plaform os detection

* Refactor linux_version

* Fix linux_version on mac with unix_name_version
2024-03-28 14:08:35 +01:00
Johan Mabille 3a31b8390a release libmamba 2.0.0alpha4, libmambapy 2.0.0alpha4, micromamba 2.0.0alpha4 2024-03-26 06:34:09 +01:00
Johan Mabille bf378ddfb4
Implemented OCI mirrors (#3246) 2024-03-26 06:20:49 +01:00
Antoine Prouvost 901f29d9b3
Use conda-forge feedstock for static builds (#3249) 2024-03-25 20:42:02 +01:00
Johan Mabille 2925054891
Passed url_path to request_generators (#3245) 2024-03-25 10:59:02 +01:00
Antoine Prouvost 7942d3feaf
Handle regex in build string (#3239) 2024-03-20 18:52:22 +01:00
Hind-M cad6793e21
[mamba-content-trust] Add integration test (#3234)
* -Fix trusted_channels in ctx not working with more than one item
-Add test for mamba-content-trust (mamba client side) using conda-content-trust (server side)
-Add missing install with pip (to fix)

* Remove repo_signed (supposed to be generated with testserver_pkg_signing.sh)

* Add MAMBA_ROOT_PREFIX to Taskfile.dist.yml
2024-03-20 10:58:29 +01:00
Antoine Prouvost 4270dd400d
Release libsolv memory before installation (#3238) 2024-03-19 19:59:42 +01:00
Antoine Prouvost 43e38efb18
Custom resolve complex MatchSpec in Solver (#3233)
* Add ObjPool::current_error

* Support reference_wrapper in MatchSpec::contains

* Rename subdir > platform in solv-cpp

* Add Matcher as namespace callback

* Add MatcherFlags

* Redefine MatchSpec::is_simple

* Add VersionSpec::from_predicate

* Refactor reinstall jobs

* Fix MatchSpec::is_simple

* Handle complex MatchSpec in solver

* Add version cache in Matcher

* Add more pool namespace tests

* Handle exception in ObjPool callback

* Try removing SOLVABLE_PROVIDES

* Add unsolvable complex spec test

* Fix Database callback exceptions

* Add channel in Matcher

* Adapt channel_specific tests

* Fix updates
2024-03-19 19:52:56 +01:00
Yash Malik 25431a6d38
Fixed a spelling mistake in micromamba-installation.rst (#3236) 2024-03-18 11:15:56 +01:00
James Foster e472362943
Typos in dev_environment.rst (#3235) 2024-03-15 12:37:04 +01: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
carschandler 36dd8fe100
Make Taskfile.dist.yml Windows-compatible (#3219)
* Make Taskfile.dist.yml Windows-compatible

* Add comment clarifying Windows-compatible Taskfile
2024-03-14 12:01:43 +01:00
s22chan 089095fb82
fix(micromamba): anaconda private channels not working (#3220)
Similar to https://github.com/mamba-org/boa/pull/81, the search key and db is slightly out of sync.

In this case, the key are the (weakened) urls without the scheme.

The anaconda tokens are stored with the scheme, so they are ignored.
2024-03-13 18:02:30 +01:00
Antoine Prouvost 7125518164
Add MatchSpec::contains_except_channel" (#3231)
* Add MatchSpec::contains_except_channel

* Add MatchSpec::contains_except_channel overload

* Bind MatchSpec::contains_except_channel

* Add documentation for MatchSpec::contains
2024-03-13 16:37:25 +01:00
Hind-M ce840bbf8c
[mamba content trust] Enable verifying packages signatures (#3192)
* Enable verifying packages signatures

* Remove post hook and use LOG_DEBUG instead of LOG_INFO

* Move getting "signatures" from `pkg_signatures` to `verify_package`

* Add tests for solvable and PackageInfo
Remove signatures from field in PackageInfo

* Add const and reorganize repo_checker
Add text in description for verify-package flag

* Add bindings and make `trusted_channels` configurable

* Define MAX_CONDA_TIMESTAMP

* Code review

* Add tests for add_repo_from_repodata_json in test_database

* Remove fake_signatures in favor of optional
2024-03-08 20:37:18 +01:00
Antoine Prouvost c54ab6ce7b
Refactor MatchSpec::str (#3215)
* Add split_once_on_any

* Split MatchSpec::track_features

* Add VersionSpec::expression_size

* Add UnresolvedChannel::is_package

* Refactor MatchSpec::str to use fmt

* Forbid version of in MatchSpec in attributes

* Document more Conda discrepencies
2024-03-08 17:09:22 +01:00
Antoine Prouvost a00ef35675
Add MatchSpec doc and fix errors (#3224)
* Add missing spec doc

* Add 2.0 changes to doc

* Cleanup spec usage doc

* Remove outdated documentation page

* Fix doc link

* Fix backticks in docs

* Add rst pre-commit checks
2024-03-08 14:44:52 +01:00
Antoine Prouvost fd42d8dd8e
Subdir renaming (#3214)
* Rename PackageInfo::depends > dependencies

* Change BuildNumberSpec nuild number type

* Rename MatchSpec::subdirs > platforms

* Rename Platform > KnownPlatform

* Add DynamicPlatform alias

* Rename PackageInfo::subdir > platform

* Fix build platform

* Fix PackageInfo::platform on OSX
2024-03-05 16:31:54 +01:00
Antoine Prouvost 9965527410
Fully bind MatchSpec (#3213)
* Fix MatchSpec name_space bounds

* Bind MatchSpec to Python

* Add specs binding negative tests
2024-03-04 21:35:58 +01:00
Antoine Prouvost daccab0c0e
Add more MatchSpec tests (#3211)
* Refactor test_matchspec

* Add more MatchSpec tests
2024-03-04 16:55:41 +01: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
Antoine Prouvost 9141381ca3
Refactor MatchSpec::parse (#3205)
* Add find_not_in_parentheses with multiple parens

* Refactor MatchSpec URL with md5

* Refactor find_not_in_parentheses

* Refactor find_not_in_parentheses for genericity

* Use npos ins find_not_in_parentheses

* Add rfind_not_in_parentheses

* Use rfind_not_in_parentheses in MatchSpec

* Refactor chan ns spec split

* Allocation guard

* Refactor MatchSpec filename handling

* Remove MatchSpec::url

* Refactor MatchSpec::subdirs

* Refactor MatchSpec attribute parsing

* Flexible build and version setting

* Refactor find_matching_parenthesis

* Refactor find_matching_parenthesis

* Simplify parsers

* Add find_matching_parentheses with multiple parenthesese

* Add rfind_matching_parentheses

* Refactor MatchSpec section parsing

* Refacator MatchSpec name parsing

* Simplify version and build parsing
2024-02-29 09:42:25 +01:00
Johan Mabille 7da42636df release libmamba 2.0.0alpha3, libmambapy 2.0.0alpha3, micromamba 2.0.0alpha3 2024-02-28 06:09:54 +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
Antoine Prouvost 88748be956
Use expected for specs parsing (#3201)
* Expected in Version::parse

* Use boolean check in expr trees

* Expected in VersionSpec::parse

* Add assert caster safeguard

* Expected in BuildNumberSpec::parse

* Minor improvement in GlobSpec

* Expected in UnresolvedChannel::parse

* Expected in URL::parse
2024-02-27 09:35:27 +01:00
Antoine Prouvost 86b2b8c121
Refactor ObjPool to use views in callbacks (#3199)
* Refactor ObjPool to allow ObjPoolView

* Use ObjPoolView in callbacks

* Add extra solver test

* Private ObjPoolView inheritance
2024-02-23 16:38:44 +01:00
Antoine Prouvost e276fa3d2e
Add more solver tests and other small features (#3198)
* Add clean_dependencies to Request::Update

* Allow pins without installed repo

* Add more solver tests

* Filename repodata fallback

* Fix repodata test

* Add channel specific solver test

* Add solver conflict test
2024-02-22 17:33:54 +01:00
Antoine Prouvost 6d535ea5ff
Finalized Solver bindings and add solver doc (#3195)
* Fix cross reference in docs

* Rename Request::Item > Job

* Add missing Request python test

* Add Solver usage documentation

* Add tests for ProblemsGraph

* Adjust 2.0 changes

* use mambatest directories

* Remove channel from test repodata.json

* Add simple solver tests
2024-02-21 17:27:35 +01:00
Antoine Prouvost 3a6d010e38
Remove unmaintained and broken pytest-lazy-fixture (#3193)
Remove pytest-lazy-fixtures
2024-02-19 13:31:52 -05:00
Antoine Prouvost 00219a578e
Add libsolv.Database Bindings and tests (#3186) 2024-02-12 08:47:53 -05:00