Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bind ChannelContext #3034

Merged
merged 3 commits into from
Dec 5, 2023
Merged

Bind ChannelContext #3034

merged 3 commits into from
Dec 5, 2023

Conversation

AntoinePrv
Copy link
Member

  • Bind ChannelContext
  • Deprecate Context() in Python

@@ -696,10 +696,42 @@ bind_submodule_impl(pybind11::module_ m)
.value("CRITICAL", mamba::log_level::critical)
.value("OFF", mamba::log_level::off);

py::class_<ChannelContext>(m, "ChannelContext")
.def_static(
// Still need a singleton as long as mambatest::singleton::channel_context is used
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering whether to leave this, or to take the opportunity to get rid of the ChannelContext singleton altogether.

There aren't that many breakage. The most annoying one is MatchSpec which now requires an explicit ChannelContext while this is something I wanted to get rid of (but we have so many things to do).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can keep it for now, but it would be nice to remove it before releasing 2.0

@AntoinePrv AntoinePrv merged commit ecd6de0 into mamba-org:main Dec 5, 2023
21 checks passed
@AntoinePrv AntoinePrv deleted the bind branch December 5, 2023 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants