<!-- Generated by community/.ai/render-guides.mjs; edit community/.agents/skills/conda-env-tests/SKILL.md -->
Conda env tests
Where the pin lives
One file holds every conda pin:
community/python/python-test-env/common/src/com/intellij/python/test/env/common/PredefinedPyEnvironments.kt
CONDA is the default. @PyEnvTestCaseWithConda and LocalCondaRule use it. A bump moves CONDA
only. No test uses CONDA_24 or CONDA_25.
The provider builds the download URL from the pin. It verifies no checksum, and it accepts the
terms of service of the Anaconda channels:
community/python/python-test-env/conda/src/com/intellij/python/test/env/conda/CondaPyEnvironmentProvider.kt
ShortenPathTest holds the literal Miniconda3-py312_24.9.2-0-MacOSX-arm64 as sample text. Do not
change it.
The version token
A pin is the installer version token, not a plain conda version. The shape is
py<python>_<conda>-<build>, for example py312_26.7.1-1.
The provider expands the token into one of these names:
Miniconda3-<token>-Windows-x86_64.exeMiniconda3-<token>-Windows-arm64.exeMiniconda3-<token>-Linux-x86_64.shMiniconda3-<token>-Linux-aarch64.shMiniconda3-<token>-MacOSX-arm64.sh
How to pick a new pin
- Open
https://repo.anaconda.com/miniconda/. - Take the highest version. Do not use
Miniconda3-latest-*. The cache key holds the token, so a
floating name breaks reproducibility.
- Check that each name above exists for that token. Anaconda drops a platform from time to time.
- Keep the
py<python>prefix of the entry unless you have a reason to change it. The prefix only
sets the Python of the base install. Each test environment gets its own Python from the spec.
The download cache
The tests cache in ~/.cache/intellij-python-test-env/:
downloads/holds the installer.conda/Miniconda3-<token>-<os>-<arch>/holds the install.
A bump downloads the installer again. It leaves the old installer and the old directory on disk.
Delete them by hand when you need the space.
Tests to run
The tests need the network.
| Module | Class |
| --- | --- |
| intellij.python.test.env.junit5 | com.intellij.python.test.env.junit5.conda.showcase.PyEnvWithCondaShowCaseTest |
| intellij.python.community.impl.conda.tests | com.intellij.python.junit5Tests.env.tests.conda.CondaSdkCreatorTest |
Not this skill
community/python/python-sdk/backend/resources/sdks.json lists the Miniconda builds that the
product offers to a user. The run configuration PyCharm Update Sdks generates it. The provider
does not read it.