This commit partially reverts changes from 4da3e7da. While the consolidation of reStructuredText support into a single module is retained, it needs to be available as a plugin since some IDEs do not include it by default but can still benefit from its capabilities.
Merge-request: IJ-MR-139650
Merged-by: Andrey Lisin <andrey.lisin@jetbrains.com>
GitOrigin-RevId: bc5cde2970a0760e32ceaee61ceef8427e8f8fe5
We now have machinery to find python environments created by
a Gradle script.
This patch adds JUnit5 extension along with an annotation to use it.
See `com.jetbrains.python.junit5.env.showCase`
GitOrigin-RevId: 287608104ec3f2c43c44906f15a06aa86a6f1bd4
1. Delete `intellij.python.community.impl.xml` (move content to `PythonCore` plugin). It is necessary to fix incorrect dependencies: `PythonCore`, `Pythonid` include the same module.
2. Fixed dependencies: if some plugin/module needs Python core functionality, then it should depend on `PythonCore`.
Co-authored-by: Vladimir Koshelev <Vladimir.Koshelev@jetbrains.com>
Merge-request: IJ-MR-136158
Merged-by: Egor Eliseev <Egor.Eliseev@jetbrains.com>
GitOrigin-RevId: ce9ed4c17f601ee1ca2b6cf608f4e30fdac1d879
This module needs to be added to the frontend variant of PyCharm (JetBrains Client) for RDCT-1034, and dependencies on modules which aren't included to JetBrains Client will cause problems. So they are removed from the module, and missing dependencies are added to intellij.pycharm.community.main and intellij.python.community.tests modules instead.
GitOrigin-RevId: 8818588e7f6a55ace63ce48edd63bb88938d4a16
See ``TargetedCommandLineBuilder.addEnvVars`` doc for the main issue.
We also add fix to patch path in PythonScripts
GitOrigin-RevId: f42044338f91d5b444c5e1431957272392ab5f1c
What was wrong:
For SDK creation we execute python to get python path for homePath (see ``PyAddCondaTools``).
So, we execute python on conda before homePath set.
On each execution we read vars from ``activate.bat`` to workaround conda SSL in path problem and activate terminal (since cmd in terminal still uses old API).
``PySdkUtil`` can't read vars when homePath not set, hence caches empty vars for SDK and both terminal and conda workaround stop working until IDE restart.
We now stopped caching empty vars if homePath is empty.
GitOrigin-RevId: de3e37bbbc5281775e3fca79840089561ceed189
Each sdk has additional data with flavor and flavor-specific data. For target-based SDK there is also target information. ``PySdkExt`` has extension method that uses this data to execute code on some SDK. For Conda we store path to conda binary and env name.
GitOrigin-RevId: c63b57aac9b5a267b3a6710902670bfe7d10c722
These modules are regular testing modules so they shouldn't specify custom language level and JDK.
GitOrigin-RevId: 4776f01bf7c2f14fa4fceef1fc02502d97afe92a
Allowing to test them (e.g. editing of string literals with injected languages
or ReST/Python interop) directly in existing test classes, such as PyEditingTest,
instead of introducing new ones among ultimate-specific tests.
GitOrigin-RevId: 12f5da97e6785e5e26b06938f6624ebec5afa0bb
- move PyResolveTest to common tests
- support common test fixture for both platform and analysis tool
GitOrigin-RevId: dafe7a942b1c9d4d927dc5e2f412a0941e0b0dd1
Module intellij.python.tools depends explicitly on PyCharm Community which leads to errors when
you try to run Python Community tests in the context of any other IDE. This commit introduces
a testFramework module for Python that now contains code from intellij.python.tools necessary
for running tests.
GitOrigin-RevId: 9789469edc396a8b0f7408d453017a5b4e1eebc2
There were a version conflict between objenesis for easymock and kryo. Now they're using the same version
GitOrigin-RevId: 06de2ccaeed2026303319f87a95f0680ef153131
Dependencies aggregated in intellij.python.community.plugin.main correspond to distribution of IDEA Community with Python plugin installed so it includes all plugins from IDEA Community. It's not always necessary to include these plugins to classpath when running python tests. python plugin is included to dependencies via intellij.python.tools module anyway.
GitOrigin-RevId: be07dff9fbce8ce55a2c31855b6fd79f81b61444