[python]: poetry moved back to the community as python now requires toml

GitOrigin-RevId: 3418c93e413489b4660b03c58c2b8f60ae228b4b
This commit is contained in:
Ilya.Kazakevich
2024-03-06 21:29:02 +01:00
committed by intellij-monorepo-bot
parent f15fe25f93
commit 96f4e6ddc6
9 changed files with 3 additions and 38 deletions

3
.idea/modules.xml generated
View File

@@ -1130,7 +1130,6 @@
<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/huggingFace/intellij.python.community.impl.huggingFace.iml" filepath="$PROJECT_DIR$/python/huggingFace/intellij.python.community.impl.huggingFace.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" />
@@ -1503,4 +1502,4 @@
<module fileurl="file://$PROJECT_DIR$/plugins/kotlin/util/test-generator-fir/kotlin.util.test-generator-fir.iml" filepath="$PROJECT_DIR$/plugins/kotlin/util/test-generator-fir/kotlin.util.test-generator-fir.iml" />
</modules>
</component>
</project>
</project>

View File

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

View File

@@ -147,7 +147,6 @@
<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.huggingFace" scope="RUNTIME" />
<orderEntry type="module" module-name="intellij.python.community.impl.poetry" scope="RUNTIME" />
<orderEntry type="module" module-name="intellij.python.syntax" />
</component>
</module>

View File

@@ -1,18 +0,0 @@
<?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,9 +0,0 @@
<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

@@ -5,7 +5,6 @@
<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.huggingFace"/>
<module name="intellij.python.community.plugin.impl"/><!--Python for any IDE except PyCharm -->
<module name="intellij.python.community.plugin.java"/><!-- Python for Java IDE -->

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.intellij.python.community.impl.poetry
package com.jetbrains.python.sdk.poetry
import com.intellij.codeInspection.LocalInspectionTool
import com.intellij.codeInspection.LocalInspectionToolSession
@@ -14,10 +14,6 @@ import com.intellij.psi.PsiFile
import com.jetbrains.python.PyBundle
import com.jetbrains.python.packaging.PyPackageManager
import com.jetbrains.python.sdk.PythonSdkUtil
import com.jetbrains.python.sdk.poetry.PoetryOutdatedVersion
import com.jetbrains.python.sdk.poetry.PyPoetryPackageManager
import com.jetbrains.python.sdk.poetry.isPoetry
import com.jetbrains.python.sdk.poetry.pyProjectToml
import org.toml.lang.psi.TomlKeyValue
import org.toml.lang.psi.TomlTable

View File

@@ -18,6 +18,7 @@
<extensions defaultExtensionNs="com.intellij">
<localInspection language="TOML" enabledByDefault="true" implementationClass="com.jetbrains.python.sdk.poetry.PoetryPackageVersionsInspection" key="INSP.poetry.package.versions.display.name" bundle="messages.PyBundle" groupKey="INSP.GROUP.python" suppressId="PoetryPackageVersions" shortName="PoetryPackageVersionsInspection"/>
<fileType name="Requirements.txt"
implementationClass="com.jetbrains.python.requirements.RequirementsFileType"

View File

@@ -55,6 +55,5 @@
<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>