[python, ds, jupyter]: Migrate Python support to V2

Layout:

  JPS modules
  `intellij.python.community`
  `intellij.python.community.impl`
  `intellij.python.parser`
  `intellij.python.psi`
  `intellij.python.psi.impl`
  `intellij.python.ast`
  use package `com.jetbrains.python`
  and go to `intellij.python.community.impl` v2 module

  JPS module
  `intellij.python`
  uses package `com.intellij.python.pro`
  and goes to `intellij.python/pro` v2 module

  Both v2 modules (along with lots of others) come with
  `PythonId` (prof) or `PythonCore` (community) plugins

  DS bundles  `intellij.python.community.impl`

  Idea and other Mini IDEs get `PythonCore` or `PythonId` plugin that bundle modules for Idea and mini IDEs

GitOrigin-RevId: 98f418c52d90d51b9adf3250c561f2c36c767e2d
This commit is contained in:
Ilya.Kazakevich
2024-01-18 05:52:28 +01:00
committed by intellij-monorepo-bot
parent 692d1338ed
commit 9d4751f238
47 changed files with 260 additions and 137 deletions

View File

@@ -1,4 +1,11 @@
<idea-plugin>
<idea-plugin package="com.intellij.python.community.plugin.impl">
<!--Plugin for other (not PyCharm) IDEs, including IU-->
<dependencies>
<!--Any IDE but NOT PyCharm-->
<plugin id="com.intellij.modules.python-in-non-pycharm-ide-capable"/>
<module name="intellij.python.community.impl"/>
</dependencies>
<extensions defaultExtensionNs="com.intellij">
<applicationService serviceInterface="com.jetbrains.python.run.PyCommonOptionsFormFactory"

View File

@@ -1,6 +1,7 @@
<idea-plugin xmlns:xi="http://www.w3.org/2001/XInclude" url="https://confluence.jetbrains.com/display/PYH/">
<!-- Components and extensions declared in this file work ONLY in Python plugin, not in standalone PyCharm.
Anything related to Python/Java integration must go in this file. -->
<idea-plugin xmlns:xi="http://www.w3.org/2001/XInclude" url="https://confluence.jetbrains.com/display/PYH/"
package="PythonCore">
<!--Python community support for Pycharm, DS and IC. Package is fake, plugin doesn't contain any classes directly-->
<id>PythonCore</id>
<name>Python Community Edition</name>
@@ -16,25 +17,17 @@ The Python plug-in provides smart editing for Python scripts. The feature set of
<vendor url="https://www.jetbrains.com/pycharm/">JetBrains</vendor>
<depends>com.intellij.modules.python-core-capable</depends>
<dependencies>
<plugin id="com.intellij.modules.python-core-capable"/>
</dependencies>
<xi:include href="/META-INF/python-core-common.xml" xpointer="xpointer(/idea-plugin/*)"/>
<xi:include href="/META-INF/python-core-community.xml" xpointer="xpointer(/idea-plugin/*)"/>
<depends optional="true" config-file="python-community-plugin-java.xml">com.intellij.java</depends>
<depends optional="true" config-file="python-community-plugin-minor.xml">com.intellij.modules.clion</depends>
<depends optional="true" config-file="python-plugin-rider.xml">com.intellij.modules.rider</depends>
<depends optional="true" config-file="python-plugin-datagrip.xml">com.intellij.modules.datagrip</depends>
<depends optional="true" config-file="python-plugin-goland.xml">com.intellij.modules.go</depends>
<depends optional="true" config-file="python-plugin-rustrover.xml">com.intellij.modules.rustrover</depends>
<!-- Python bundled modules for content -->
<xi:include href="/META-INF/python-v2-core-plugin-include.xml" xpointer="xpointer(/idea-plugin/*)"/>
<content>
<module name="intellij.python.terminal"/>
<module name="intellij.python.featuresTrainer"/>
<module name="intellij.python.markdown"/>
<module name="intellij.python.grazie"/>
<module name="intellij.python.langInjection"/>
<module name="intellij.python.copyright"/>
<module name="intellij.python.reStructuredText"/>
<!--Mini-IDes support community python only-->
<module name="intellij.python.community.plugin.minor"/> <!-- Python for Mini-IDEs-->
<module name="intellij.python.community.plugin.minor.rider"/> <!-- Python special support for Rider -->
<module name="intellij.python.community.impl.community_only"/> <!-- Community-specific code-->
</content>
</idea-plugin>