mamba/docs/source/developer_zone
Klaim (Joël Lamotte) ab088e5d8a
libmambapy: use `Context` explicitly (#3309)
* All python singletons lifetime are bound to a unique `Context` instance lifetime

In `libmambapy`:
- bound singletons lifetime to the first `Context` instance created
- throw an error if more than one `Context` instance are created at any time
(this only applies to python and will be changed at another time)
- therefore the python user must create a `Context` before using any other functions

This specific change does not (yet) changes the other functions APIs to take
explicitly the `Context` object.

* simplify python expressions

* python API change, added requirement for a `Context` instance

affected functions:
- MultiPackageCache (constructor)
- SubdirData.create_repo
- SubdirIndex.create
- SubdirIndex.download
- clean
- transmute
- get_virtual_packages
- cancel_json_output

* libmamba loggers are now unregistered when Context instance is destroyed

* fixed: dont use `default` as a name

* remove quick-test file

* linter fixes

* Updated documentation

* temptative fix for potential data race in libmamba tests

* libmamba tests: added an assertion to be sure

* linter pass

* fixup libmambatests

* added log for helping understanding ci failure

* review fixes
2024-06-14 09:50:58 +02:00
..
changes-2.0.rst libmambapy: use `Context` explicitly (#3309) 2024-06-14 09:50:58 +02:00
contributing.rst Simplify and correct development documention (#2975) 2023-11-14 11:59:44 +01:00
dev_environment.rst [OCI - Mirrors] Add tests and doc (#3307) 2024-06-12 16:36:31 +02:00
internals.rst Add checking typos to pre-commit (#3278) 2024-05-27 09:16:14 +02:00
whatprovides.svg Document libsolv internals (#1071) 2021-07-09 23:00:48 +02:00