Commit Graph

58 Commits

Author SHA1 Message Date
Tagir Valeev
ac6e041167 Remove groovy-stdlib dependency where unused
GitOrigin-RevId: ecbe272c09c97517177b2214479f2644c1ef3229
2024-10-08 09:28:42 +00:00
Vladimir Krivosheev
2af05dec25 extract intellij.platform.ide.internal
GitOrigin-RevId: 0e5e80fd53c3ef15ed9835a9400381d383526ca3
2024-10-03 19:22:03 +00:00
Vladimir Krivosheev
26c94d85b0 extract intellij.platform.ide.remote
GitOrigin-RevId: 9d68fda3031f89d5b0207782e796a54f24683176
2024-10-03 09:58:11 +00:00
Andrey Lisin
638dce38d7 PY-71930 Restore reStructuredText plugin
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
2024-07-31 12:47:03 +00:00
Ilya.Kazakevich
154a516ad3 PyCharm: Support conda in JUnit5 tests.
Mark test with `PyEnvTestWithConda` or use `testFixture`

GitOrigin-RevId: 3171d8a4de18ca29a1c624dcffa53921965eed25
2024-07-26 04:03:03 +00:00
Ilya Muradyan
0f2ceb1d0a PY-64586, PY-73739, PY-73825: Move jupyter support for python to the Python plugin and DataSpell plugin instead of creating dedicated plugin
GitOrigin-RevId: 7d7ef5dc7285bfdc797e1d763254f854ab66b78c
2024-07-12 21:36:25 +00:00
Ilya.Kazakevich
4e9344ce5d JUnit5 extension for Python env tests.
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
2024-07-12 19:18:13 +00:00
Egor.Eliseev
0c73c9eff9 PY-72274 separating content for python core/pro plugins
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
2024-06-19 21:39:24 +00:00
Ilya.Kazakevich
96f4e6ddc6 [python]: poetry moved back to the community as python now requires toml
GitOrigin-RevId: 3418c93e413489b4660b03c58c2b8f60ae228b4b
2024-03-07 22:47:54 +00:00
Nikolay Chashnikov
b5c82c54cc [pycharm] get rid of excessive dependencies in intellij.pycharm.community module (RDCT-1034)
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
2024-03-06 19:05:11 +00:00
Ilya.Kazakevich
609b161c64 [python] convert poetry to separate module to access from outside module
GitOrigin-RevId: 0b1f65214832b7ce99f2f3c6762835b16b3cdcf1
2024-01-25 22:44:25 +00:00
Ilya.Kazakevich
e95af7e141 Move commandInterface to the separate module: towards v2 refactoring
GitOrigin-RevId: 18dcc57922878c8ad1fe0bb6be85097d4d81cc34
2024-01-08 22:40:10 +00:00
Ilya.Kazakevich
37dcb1a25e fix tests: community tests can't access concurrency visualizer
GitOrigin-RevId: 81039968ad0b3f2d879ac8c2341713cb24ed67b1
2024-01-05 14:26:03 +00:00
Ilya.Kazakevich
e7846dabe9 [python] Convert Concurrency visualizer to v2
GitOrigin-RevId: 5b05dcfe0e47b505a2a31f749496b40f76369123
2024-01-05 14:25:42 +00:00
Ilya.Kazakevich
ab9ea210a6 Merge ReST plugin with ReST Python module, convert module to v2
Nobody uses it except Python

GitOrigin-RevId: 4da3e7da0dcd86d454972b2ef68d2581c7fe5cdb
2024-01-03 16:35:59 +00:00
Nikita Kudrin
5f15fa3f42 [test framework] AT-107 Adding dependency on intellij.tools.ide.metrics.benchmark to publish metrics
GitOrigin-RevId: aaeb67a13dab0038e8f8e8ec6ed7d683d4dfe5d3
2023-10-16 23:23:34 +00:00
Vladimir Krivosheev
b67de4a4b0 IJPL-238 remove the unnecessary usage of commons-lang library (part 3)
GitOrigin-RevId: dec81af8deb5d9b396e9150538bdca1d951b1d80
2023-09-15 20:50:02 +00:00
Daniil Ovchinnikov
675b19fb2c IJPL-130 rename library kotlin-coroutines-jdk8 -> kotlin-coroutines-core
GitOrigin-RevId: e987a9f48391d74e401c860a57f99634ccc21a4a
2023-05-18 22:52:00 +00:00
Dmitry Avdeev
b96b6660ae IDEA-284393 '3rd-party.jar' contains Velocity 1.7 which is vulnerable to CVE-2020-13936
GitOrigin-RevId: e5a46a42cefbcb0e7004caf17268333f2c773bed
2023-03-17 18:00:47 +00:00
Lamberto Basti
2370fcc684 Total rework of the business logic of the PKGS plugin
GitOrigin-RevId: e4cace15934addc48f5a76f293f11e0b2a0d92b0
2022-12-07 15:18:33 +00:00
Ilya.Kazakevich
3a0fc5ba5e PY-57146: Fix warning for non-base condas.
See ``TargetedCommandLineBuilder.addEnvVars`` doc for the main issue.
We also add fix to patch path in PythonScripts

GitOrigin-RevId: f42044338f91d5b444c5e1431957272392ab5f1c
2022-11-10 23:02:30 +00:00
Ilya.Kazakevich
ab43751a51 PY-57146, DS-4124, DS-3992: Fix local conda activation on Windows for newly created SDKs
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
2022-11-08 20:19:13 +00:00
Alexey Sedunov
c443410d79 Django: Extract Django/Jinja2 commons
GitOrigin-RevId: 3f6bb7b7cd80cbf6007e1930d4d018e1b1cff44a
2022-10-16 11:59:01 +00:00
Ilya.Kazakevich
a4dcfdd16e PY-35978: Improve Conda support and refactor other parts to support it.
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
2022-10-12 17:55:25 +00:00
Alexey Kalina
0d7285f5a6 [recommenders] extract ml feature providers to ml-api module
(cherry picked from commit b1e6e709bd4ed9763b2ab947476a62bb52c36461)

IJ-MR-27840

GitOrigin-RevId: 76efbdec104dbef5ee6d27f44524a1827642e6fd
2022-08-02 12:44:12 +00:00
Vladimir Krivosheev
a8f6a48409 add jdom to source code to modify and strip to our needs
GitOrigin-RevId: 3e16d0d954aa7bc45c4eadb91164b44e4b2e75d3
2022-03-27 18:52:47 +00:00
Alexey Kudravtsev
b587a7b075 remove Velocity from api modules
GitOrigin-RevId: 12ac133fe8550b0442910270284d63819997ad32
2021-07-15 11:51:51 +00:00
Alexey Kudravtsev
3700ab9da7 remove jgoodies-forms library from api modules
GitOrigin-RevId: c17f41d95755205bd4a3a7846c807b9b72778c26
2021-07-15 11:51:47 +00:00
Pavel Bakhvalov
71244eef8e [Grazie, Python] IJ-CR-9516 Add Grazie tests for Python
GitOrigin-RevId: fb2f83063c65161a84b0ae3ec272f5599daca8c9
2021-06-30 16:45:08 +00:00
Pavel Bakhvalov
03738e323e Revert "[Grazie, Python] IJ-CR-9516 Add Grazie test module for Python"
This reverts commit 00b2a2ba0dbab7d4f5497b56ddf05a4f203dc586.

GitOrigin-RevId: af2d9f75c3d927b6d0622870cdabd9be6b1da296
2021-06-28 21:34:49 +00:00
Pavel Bakhvalov
6bb9cca2ac [Grazie, Python] IJ-CR-9516 Add Grazie test module for Python
GitOrigin-RevId: 00b2a2ba0dbab7d4f5497b56ddf05a4f203dc586
2021-06-28 14:00:41 +00:00
Andrey Vlasovskikh
ac36f11225 PY-46321 Tests for Python and Python REPL in Markdown code fences
GitOrigin-RevId: f6d7f212c363f7852f69a4a54993b36774d9fed6
2021-04-27 17:31:59 +00:00
Vladimir Krivosheev
912da5a7e8 reduce trove lib usages
GitOrigin-RevId: da64d033d2fff69893958d9f8a652370c1a1212f
2021-01-14 16:56:35 +00:00
Vladimir Krivosheev
5fed9f63f7 do not export intellij.platform.codeStyle.impl from lang-impl, reduce trove library usage
GitOrigin-RevId: 8d1b8100f8c3e2144da8a9057273805469da4454
2020-11-23 10:46:41 +00:00
Vladimir Krivosheev
a67c59c561 platform.core.impl — remove dependency on intellij.platform.util.ui and intellij.platform.core.ui
java.psi.iml — remove dependency on intellij.platform.core.ui

GitOrigin-RevId: c1d4feb04c0471c7d17b5331b86738ee54a97f80
2020-09-21 13:40:47 +00:00
Nikolay Chashnikov
ec30ecd533 [IntelliJ project configuration] restore default language level in python test modules
These modules are regular testing modules so they shouldn't specify custom language level and JDK.

GitOrigin-RevId: 4776f01bf7c2f14fa4fceef1fc02502d97afe92a
2020-06-15 13:42:22 +03:00
Ilya.Kazakevich
40a9dd0905 Convert python tests to JDK11: switch language level
GitOrigin-RevId: d92574c2b38f48f8ef3432a990b7116376e6b4c5
2020-06-11 18:06:14 +03:00
Ilya.Kazakevich
9b099db2e9 Convert python tests to JDK11
GitOrigin-RevId: 249fe87e01a9eb941c912109de78905e43b93af9
2020-06-11 17:48:18 +03:00
Vladimir Krivosheev
f2a72b34fa do not export trove from util module
GitOrigin-RevId: 666bf5e1fc45045bb9b1c391b7ec5a2ac4b65dde
2020-05-16 16:34:43 +00:00
Daniil Ovchinnikov
7f6ed24e3c rename "Groovy" library to "org.codehaus.groovy:groovy" for consistency
GitOrigin-RevId: 515c9c93fba3c6104c7c42b75373c7867321843b
2020-05-12 16:41:14 +00:00
Vladimir Krivosheev
16776be5f7 do not export StreamEx lib from platform-impl
GitOrigin-RevId: b4b5c70dc99510609083c3ff097936be94e0548c
2020-02-15 06:44:09 +00:00
andrey.matveev
c4950335ac PY-39607 Add new features for ml completion
GitOrigin-RevId: caf60bd52a1872a2eb53f3617a6ffb51b195ff33
2020-01-29 13:41:50 +00:00
Mikhail Golubev
d7224db982 IDEA-CR-57011: Enable PyCharm Community features such as IntelliLang and ReStructuredText in community tests
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
2020-01-24 12:38:26 +00:00
Stanislav Utikeev
e871a56af0 Refactor Python tests
- move PyResolveTest to common tests
- support common test fixture for both platform and analysis tool

GitOrigin-RevId: dafe7a942b1c9d4d927dc5e2f412a0941e0b0dd1
2019-12-03 15:11:09 +00:00
Andrey Vlasovskikh
d9d8e5b0a3 Fake PyCharmCorePlugin.xml for running Python Community tests without Python Community plugin
It's needed at least to run these tests in the context of Python (Professional) plugin.

GitOrigin-RevId: 9aafe2d695c780ca68f97dd7514a768dbc703f34
2019-11-18 19:07:46 +00:00
Andrey Vlasovskikh
d055d648b2 Introduced intellij.python.community.testFramework instead of depending on intellij.python.tools
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
2019-11-18 19:07:46 +00:00
Leonid Shalupov
45089d974c Update easymock to get rid of objenesis 1.0
There were a version conflict between objenesis for easymock and kryo. Now they're using the same version

GitOrigin-RevId: 06de2ccaeed2026303319f87a95f0680ef153131
2019-11-11 15:35:14 +00:00
nik
6e513ed7e2 IntelliJ project configuration: remove unused dependency on intellij.python.community.plugin.main
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
2019-10-22 13:16:40 +00:00
Andrey Vlasovskikh
3f9d13c560 Don't depend on intellij.python.helpers explicitly since it's already a run-time dependency of intellij.python.community.impl
GitOrigin-RevId: d922f3533a6f6b8d36fdfb83e7514463b4c3cb62
2019-10-21 20:03:52 +00:00
Gregory.Shrago
92f5adff73 PY-38312 Reuse Python plugin in PyCharm
GitOrigin-RevId: 614aecfde6c57cb8f2b99c01c7085c5ae33a1d5d
2019-10-08 17:03:50 +00:00