[python] convert poetry to separate module to access from outside module

GitOrigin-RevId: 0b1f65214832b7ce99f2f3c6762835b16b3cdcf1
This commit is contained in:
Ilya.Kazakevich
2024-01-25 20:58:54 +01:00
committed by intellij-monorepo-bot
parent 338dd74ef1
commit 609b161c64
9 changed files with 33 additions and 11 deletions

1
.idea/modules.xml generated
View File

@@ -1121,6 +1121,7 @@
<module fileurl="file://$PROJECT_DIR$/python/python-core-impl/intellij.python.community.core.impl.iml" filepath="$PROJECT_DIR$/python/python-core-impl/intellij.python.community.core.impl.iml" />
<module fileurl="file://$PROJECT_DIR$/python/intellij.python.community.impl.iml" filepath="$PROJECT_DIR$/python/intellij.python.community.impl.iml" />
<module fileurl="file://$PROJECT_DIR$/python/intellij.python.community.impl.community_only/intellij.python.community.impl.community_only.iml" filepath="$PROJECT_DIR$/python/intellij.python.community.impl.community_only/intellij.python.community.impl.community_only.iml" />
<module fileurl="file://$PROJECT_DIR$/python/poetry/intellij.python.community.impl.poetry.iml" filepath="$PROJECT_DIR$/python/poetry/intellij.python.community.impl.poetry.iml" />
<module fileurl="file://$PROJECT_DIR$/python/pluginCore/intellij.python.community.plugin.iml" filepath="$PROJECT_DIR$/python/pluginCore/intellij.python.community.plugin.iml" />
<module fileurl="file://$PROJECT_DIR$/python/pluginCore/impl/intellij.python.community.plugin.impl.iml" filepath="$PROJECT_DIR$/python/pluginCore/impl/intellij.python.community.plugin.impl.iml" />
<module fileurl="file://$PROJECT_DIR$/python/pluginJava/intellij.python.community.plugin.java.iml" filepath="$PROJECT_DIR$/python/pluginJava/intellij.python.community.plugin.java.iml" />

View File

@@ -20,6 +20,7 @@ object PythonCommunityPluginModules {
"intellij.python.community.core.impl",
"intellij.python.pydev",
"intellij.python.community.impl",
"intellij.python.community.impl.poetry",
"intellij.python.community.impl.community_only",
"intellij.python.langInjection",
"intellij.python.copyright",

View File

@@ -146,5 +146,6 @@
<orderEntry type="module" module-name="intellij.platform.ml" />
<orderEntry type="module" module-name="intellij.platform.util.coroutines" />
<orderEntry type="module" module-name="intellij.commandInterface" scope="RUNTIME" />
<orderEntry type="module" module-name="intellij.python.community.impl.poetry" scope="RUNTIME" />
</component>
</module>

View File

@@ -0,0 +1,18 @@
<?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" />
<orderEntry type="library" name="kotlin-stdlib" level="project" />
<orderEntry type="module" module-name="intellij.platform.analysis" />
<orderEntry type="module" module-name="intellij.platform.core" />
<orderEntry type="module" module-name="intellij.platform.projectModel" />
<orderEntry type="module" module-name="intellij.python.psi.impl" />
<orderEntry type="module" module-name="intellij.python.community.impl" />
<orderEntry type="module" module-name="intellij.toml.core" />
</component>
</module>

View File

@@ -1,5 +1,5 @@
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.jetbrains.python.poetry
package com.intellij.python.community.impl.poetry
import com.intellij.codeInspection.LocalInspectionTool
import com.intellij.codeInspection.LocalInspectionToolSession

View File

@@ -0,0 +1,9 @@
<idea-plugin package="com.intellij.python.community.impl.poetry">
<dependencies>
<plugin id="org.toml.lang"/>
<module name="intellij.python.community.impl"/>
</dependencies>
<extensions defaultExtensionNs="com.intellij">
<localInspection language="TOML" enabledByDefault="true" implementationClass="com.intellij.python.community.impl.poetry.PoetryPackageVersionsInspection" key="INSP.poetry.package.versions.display.name" bundle="messages.PyBundle" groupKey="INSP.GROUP.python" suppressId="PoetryPackageVersions" shortName="PoetryPackageVersionsInspection"/>
</extensions>
</idea-plugin>

View File

@@ -13,7 +13,7 @@
<content>
<module name="intellij.commandInterface"/> <!-- used by Django in Prof, by some plugins in community -->
<module name="intellij.python.community.impl"/> <!-- The whole open-source part of Python support -->
<module name="intellij.python.community.impl/poetry"/>
<module name="intellij.python.community.impl.poetry"/>
<module name="intellij.python.community.plugin.impl"/><!--Python for any IDE except PyCharm -->
<module name="intellij.python.community.plugin.java"/><!-- Python for Java IDE -->
<module name="intellij.python.copyright"/>

View File

@@ -1,9 +0,0 @@
<idea-plugin package="com.jetbrains.python.poetry">
<dependencies>
<plugin id="org.toml.lang"/>
<module name="intellij.python.community.impl"/>
</dependencies>
<extensions defaultExtensionNs="com.intellij">
<localInspection language="TOML" enabledByDefault="true" implementationClass="com.jetbrains.python.poetry.PoetryPackageVersionsInspection" key="INSP.poetry.package.versions.display.name" bundle="messages.PyBundle" groupKey="INSP.GROUP.python" suppressId="PoetryPackageVersions" shortName="PoetryPackageVersionsInspection"/>
</extensions>
</idea-plugin>

View File

@@ -52,5 +52,6 @@
<orderEntry type="library" scope="TEST" name="gson" level="project" />
<orderEntry type="module" module-name="intellij.tools.ide.metrics.benchmark" scope="TEST" />
<orderEntry type="module" module-name="intellij.commandInterface" scope="TEST" />
<orderEntry type="module" module-name="intellij.python.community.impl.poetry" scope="RUNTIME" />
</component>
</module>