Skip to content

[chore] create conda context instance#210

Merged
AlbertDeFusco merged 2 commits into
mainfrom
chore/conda-context
Jan 12, 2026
Merged

[chore] create conda context instance#210
AlbertDeFusco merged 2 commits into
mainfrom
chore/conda-context

Conversation

@AlbertDeFusco

Copy link
Copy Markdown
Collaborator

Importing the conda.base.context.context does not read condarc configuration files.

Here a new context object is created for the purpose of acquiring the the full conda context so that the anaconda_auth.client.BaseClient HTTP client can be configured with important things like proxy servers or certs without having to duplicate those elements in ~/.anaconda/config.toml.

@travishathaway travishathaway left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hi @AlbertDeFusco,

Nothing jumps out as immediately being wrong with this approach, and by all means, this is how I would expect this to run if I were consuming conda as a public API.

If you run into issues using Context in this way, please let us know!

@AlbertDeFusco AlbertDeFusco added this pull request to the merge queue Jan 12, 2026
Merged via the queue into main with commit 53d7b64 Jan 12, 2026
46 of 49 checks passed
@AlbertDeFusco AlbertDeFusco deleted the chore/conda-context branch January 12, 2026 17:18
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.

3 participants