[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,3 +0,0 @@
<idea-plugin xmlns:xi="http://www.w3.org/2001/XInclude" url="https://confluence.jetbrains.com/display/PYH/">
<xi:include href="/META-INF/python-community-plugin-minor.xml" xpointer="xpointer(/idea-plugin/*)"/>
</idea-plugin>

View File

@@ -1,4 +0,0 @@
<idea-plugin xmlns:xi="http://www.w3.org/2001/XInclude" url="https://confluence.jetbrains.com/display/PYH/">
<xi:include href="/META-INF/python-community-plugin-minor.xml" xpointer="xpointer(/idea-plugin/*)"/>
</idea-plugin>

View File

@@ -1,8 +0,0 @@
<idea-plugin xmlns:xi="http://www.w3.org/2001/XInclude" url="https://confluence.jetbrains.com/display/PYH/">
<xi:include href="/META-INF/python-community-plugin-minor.xml" xpointer="xpointer(/idea-plugin/*)"/>
<extensions defaultExtensionNs="com.intellij">
<completion.contributor language="Python" implementationClass="com.intellij.codeInsight.completion.LegacyCompletionContributor" id="legacy"
order="last"/>
</extensions>
</idea-plugin>

View File

@@ -1,3 +0,0 @@
<idea-plugin xmlns:xi="http://www.w3.org/2001/XInclude" url="https://confluence.jetbrains.com/display/PYH/">
<xi:include href="/META-INF/python-community-plugin-minor.xml" xpointer="xpointer(/idea-plugin/*)"/>
</idea-plugin>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View File

@@ -0,0 +1,21 @@
<idea-plugin url="https://confluence.jetbrains.com/display/PYH/" package="com.intellij.python.community.plugin.minor.rider">
<dependencies>
<!--Any IDE but NOT PyCharm-->
<plugin id="com.intellij.modules.python-in-non-pycharm-ide-capable"/>
<!-- That is Mini-ide -->
<plugin id="com.intellij.modules.python-in-mini-ide-capable"/>
<!-- and compatible with Python Core -->
<plugin id="com.intellij.modules.python-core-capable"/>
<!-- and is Rider -->
<plugin id="com.intellij.modules.rider"/>
<module name="intellij.python.community.impl"/>
<!-- for library facet etc -->
<module name="intellij.python.community.plugin.impl"/>
</dependencies>
<extensions defaultExtensionNs="com.intellij">
<completion.contributor language="Python" implementationClass="com.intellij.codeInsight.completion.LegacyCompletionContributor"
id="legacy"
order="last"/>
</extensions>
</idea-plugin>

View File

@@ -1,7 +1,16 @@
<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 the Python plugin for minor IDEs -->
<idea-plugin package="com.intellij.python.community.plugin.minor" url="https://confluence.jetbrains.com/display/PYH/">
<dependencies>
<module name="intellij.python.community.impl"/>
<!--Any IDE but NOT PyCharm-->
<plugin id="com.intellij.modules.python-in-non-pycharm-ide-capable"/>
<!-- That is Mini-ide -->
<plugin id="com.intellij.modules.python-in-mini-ide-capable"/>
<!-- and compatible with Python -->
<plugin id="com.intellij.modules.python-core-capable"/>
<xi:include href="/META-INF/python-community-plugin-core.xml" xpointer="xpointer(/idea-plugin/*)"/>
<!-- for library facet etc -->
<module name="intellij.python.community.plugin.impl"/>
</dependencies>
<extensions defaultExtensionNs="com.intellij">
<projectConfigurable groupId="build"