Commit Graph

77 Commits

Author SHA1 Message Date
Ilya.Kazakevich
a1b92b2591 [python] PY-79486: (WIP) split pyproject.toml tools into backend/common.
Each tool (uv, poetry) now has `common` and `backend` part. `common` has icons because we need them both on the front and on the back.

We might need to create `front` module also if we wouldn't be able to use icons in compose.

GitOrigin-RevId: 560b5aa67e4e747a1653ad6e4f780301a3fae289
2025-11-24 16:35:26 +00:00
Ilia Kirianovskii
03845676ac [bazel] Update build files (IJI-3028)
(cherry picked from commit 2d842907049041a53e90e7177915548cd43b06d6)

GitOrigin-RevId: b84b9f81c9afbf2333e81035c06458c743f3aa9c
2025-10-27 11:02:59 +00:00
Alexey Katsman
cc191a617f [python] PY-83881 Detect existing environments when creating SDK
Before the changes, there wasn't any mechanism to detect that
environment was already created (for example, .venv exists in the
project). In these situations, during SDK creation we could've created
another environment which was not expected by users.

With these changes, it's now possible to detect in the configurator that
environment already exists, and use it when creating SDK.

Merge-request: IJ-MR-177317
Merged-by: Alexey Katsman <alexey.katsman@jetbrains.com>

GitOrigin-RevId: dd0cf0c02b18e90022e9ec828b7f9ad2282cd5b3
2025-10-21 21:47:11 +00:00
Vitaly Legchilkin
5e2028d129 [python] (PY-78749) single dialog for all types of Python SDKs
+ old dialogs were removed

GitOrigin-RevId: 00ed85ba578c6419373d8605ed50954e7aa58f0a
2025-10-13 22:54:32 +00:00
Ilia Kirianovskii
f43aa95086 [bazel] Update build files (IJI-3062)
GitOrigin-RevId: 98a67396a48bddc3d084cc93c50ae2f2017bfe8c
2025-09-29 00:11:15 +00:00
Ilia Kirianovskii
e523d0b704 [python] Add intellij.community.wintools to dependencies in intellij.python.community.junit5Tests.framework._test module (IJPL-116621)
GitOrigin-RevId: f4a773346e06940bade65e0a751b70859c989613
2025-09-26 10:30:41 +00:00
Ilia Kirianovskii
6f25dfac2a [python] Add intellij.libraries.sshd.osgi (not apache.sshd.osgi library) to dependencies in intellij.python.community.junit5Tests.framework._test module (IJPL-116621)
Also adds intellij.libraries.sshd.osgi module.

GitOrigin-RevId: 96e65a0288a5169817dece1483e8d9832d294464
2025-09-25 19:31:34 +00:00
Ilia Kirianovskii
74ddb79b72 fixup [python] Add intellij.python.community.junit5Tests.framework._test module descriptor to run tests in dev-mode (IJPL-116621)
GitOrigin-RevId: 875d5dfa40bb5992218f61a033590582c6d18067
2025-09-25 15:34:05 +00:00
Ilia Kirianovskii
aa250154f9 [python] Add intellij.libraries.system.stubs.jupiter to dependencies in intellij.python.community.junit5Tests.framework._test module (IJPL-116621)
Also adds intellij.libraries.system.stubs.jupiter module.

GitOrigin-RevId: 20883f15397dfe00462bf70b0e14d12357962334
2025-09-25 08:37:49 +00:00
Ilya.Kazakevich
fd6322f117 Python: move classes to com.jetbrains.python.sdk.impl and close it.
`com.jetbrains.python` was closed by accident.

GitOrigin-RevId: 78109e34c720abfa2cefb1fa7d8d20db2ed1ad11
2025-09-22 18:50:06 +00:00
Vitaly Legchilkin
0ce97b7649 [python][junit5] move PyDefaultTestApplication to the junit5Tests.framework module
Merge-request: IJ-MR-176009
Merged-by: Vitaly Legchilkin <Vitaly.Legchilkin@jetbrains.com>

GitOrigin-RevId: 4be35423f74375e1b37e0ea87fd6490a950060f6
2025-09-20 13:14:32 +00:00
Ilia Kirianovskii
e857678b3f [bazel] Update build files (IJI-2835)
GitOrigin-RevId: 4029606395c15069d4528b2558b29d78f6987bb3
2025-08-20 10:24:48 +00:00
Ilia Kirianovskii
dc268560b6 [bazel] Update build files (IJI-2835)
GitOrigin-RevId: 275260ab73f59d3c08f0b4cb9f4c89b74054094a
2025-08-20 08:49:22 +00:00
Vladimir Krivosheev
c70092d737 IJPL-189625 fix uk.org.webcompere:system-stubs-jupiter - do not use outdated byte-buddy version
GitOrigin-RevId: b88c1660e07e9db6ac6868eac4fba9063f353011
2025-08-18 11:29:12 +00:00
Ilya.Kazakevich
7373cc97bb PySshDockerContainer: simplify and document port usage
GitOrigin-RevId: 4b3a2b6cae1142ec418cb47d603e6eec35a05741
2025-08-13 22:20:51 +00:00
Aleksei.Cherepanov
b3f3a917c6 [Bazel] jps-to-bazel: Generate BUILD.bazel files
GitOrigin-RevId: 77e7228b16fa8cb2b61dfdbe88511ac5c048d6f4
2025-08-01 10:18:51 +00:00
Leonid Shalupov
cff76ea65e bazel: split test and build sections in convert jps to bazel:L update Bazel files
GitOrigin-RevId: 90063178de33c2a95bfdebd160a721d6977d8097
2025-07-18 16:18:47 +00:00
Ilya.Kazakevich
2da1baf14c Python: change outdated API
GitOrigin-RevId: d6902176298dc55f486abe497a6ba4fabd43f3c1
2025-07-17 19:07:39 +00:00
Vladimir.Koshelev
69a0e0e049 [python] testTools: fix expandWithPath()
GitOrigin-RevId: 7904108219f19b85ae223c35cf12c56d6417bcfb
2025-07-16 12:08:52 +00:00
Ilia Kirianovskii
e5b36e9b7c [bazel] Update build files (IJI-2696, IJI-2878)
GitOrigin-RevId: 80912356c3f137a518cc16f361d74cc356702241
2025-07-07 16:40:12 +00:00
Ilya.Kazakevich
0055748341 Python: kill conda in tests.
Conda might be frozen, but that is not a reason to break the whole suite

GitOrigin-RevId: 491b58621ddf01ffa15353ee3d19056d98df549e
2025-07-01 20:55:53 +00:00
Ilya.Kazakevich
9416709e3d PY-82318: increase verbosity to find a leaked process
GitOrigin-RevId: a0d786f4f9bdef6be9cb0ebcee7e833ac74440a4
2025-06-30 21:53:26 +00:00
Ilya.Kazakevich
530fb3f4c8 PY-82318: Unlock files locked by pip and python on Windows.
GitOrigin-RevId: 7b72a365964314707b28f6a7f20e3cedbe4bc194
2025-06-30 21:53:26 +00:00
Ilya.Kazakevich
d1fcfa5850 PY-82318: Kill process that keeps python installation.
We create SDK in tests in a temporary dir and want to drop it then.

However, some background python process (I blame package manager cache) keeps this directory which prevents it from being deleted on Windows.

We now drop it.

GitOrigin-RevId: 36e2045e57e6cfae2f31465ae6d6d8e505d5edac
2025-06-30 04:48:09 +00:00
Ilya.Kazakevich
a0231c334a PY-77226: Introduce InterpreterService.
This service is aimed to substitute various SDK-management tools in PyCharm.

Begin with `InterpreterService()` function.

GitOrigin-RevId: 368d56c4a78812fe81de941e5e5ce61a56d385e6
2025-06-26 23:26:54 +00:00
Nikita Ashihmin
2c3a5a9f7a PY-82119 Packaging: Rewrite Conda to use EEL
GitOrigin-RevId: 8329d24191bdc1411775dc8e58a65172a2804788
2025-06-19 17:30:40 +00:00
Evgenii Ilichev
06fb3e21e6 Update test definitions in BUILD.bazel
GitOrigin-RevId: 12636c0153e8909f9d9658a07278edac5ceb9c23
2025-06-18 19:05:49 +00:00
Vladimir Lagunov
230ec9b156 IJPL-190497 Eel: Rename EelDescriptor.{platform,osFamily}
GitOrigin-RevId: 8f50c3d0adf900298ec54b3e89c539da9c806909
2025-06-14 23:58:35 +00:00
Vladimir Lagunov
0c5c2a29db IJPL-190497 Eel: introduce EelOsFamily
GitOrigin-RevId: 85dc13d238d63f620c799a6e52f6cf50e87fd2b6
2025-06-14 23:58:35 +00:00
Vladimir Krivosheev
ef0323d07c IJ-MR-162467 don't export intellij.platform.core
GitOrigin-RevId: 05f350c1c087be1bf9b46d8bdac5345a65f55958
2025-06-13 21:52:48 +00:00
Ilya.Kazakevich
107201d413 Python: refactoring before interpreters service.
Extract various classes to the shared modules, `ExecutablePython` now has `env` map as it can be used by conda.

GitOrigin-RevId: eb45ea29f49132fa4f91c979f71453e6a2ade344
2025-06-08 04:14:00 +00:00
Vitaly Legchilkin
06b7a98504 [python] unify Local SDK creation UI in PyCharm and IDEA (PY-79881)
* use the same UI in IDEA for local SDKS as currently PyCharm has, removing redundant code


Merge-request: IJ-MR-164681
Merged-by: Vitaly Legchilkin <Vitaly.Legchilkin@jetbrains.com>

GitOrigin-RevId: fe26897837f41dd2f3b23a328d2a9098ad388e37
2025-06-06 22:08:02 +00:00
Vladimir Krivosheev
65fe061584 IJ-MR-162467 don't export intellij.platform.analysis
GitOrigin-RevId: fcbcb68010b58cb507fee2c47473758b999e471b
2025-06-04 11:16:33 +00:00
Vitaly Legchilkin
50995c2812 [python] migration from kotlin.Result to python.PyResult in package managers (PY-81238)
* introduce PyResult.localizedError() (instead of failure()
* get rid of obsolete kotlin.Result.failure(..) extension
* add errorOrNull to python.Result, to access it from Java classes

Merge-request: IJ-MR-163973
Merged-by: Vitaly Legchilkin <Vitaly.Legchilkin@jetbrains.com>

GitOrigin-RevId: 2bd8336cf4c53170eea5d050f609fd64541ebd99
2025-05-27 07:18:45 +00:00
Vladimir Krivosheev
6f8ff07ccc simplify bazel labels (another step towards using simple names that reflect directory structure)
GitOrigin-RevId: 12bfb2d0fa315d87c7a4ade363d0f834cf324b71
2025-05-08 16:58:30 +00:00
Vladimir Krivosheev
0199763f2b update bazel files
GitOrigin-RevId: cfae2a38fa2430540eb4baf91b6cd2c25d48eba6
2025-05-05 12:06:54 +00:00
Ilia Kirianovskii
85311e9889 [python] Add intellij.libraries.testcontainers (not testcontainers library) to dependencies in intellij.python.community.junit5Tests.framework._test module (IJPL-116621)
Also adds intellij.libraries.testcontainers module.

GitOrigin-RevId: b230f320ca4d058994570640367c549251ceab19
2025-05-04 19:51:17 +00:00
Ilia Kirianovskii
8eb4cc6f28 [bazel] Update build files
GitOrigin-RevId: b1e6b2ea8731ab7ec544b6fbcaea337a34c2937e
2025-05-04 09:23:02 +00:00
Ilia Kirianovskii
14437f2e2f [python] Add intellij.python.community.junit5Tests.framework.conda._test module descriptor to run tests in dev-mode (IJPL-116621)
GitOrigin-RevId: 14c6508d5500b14196ab85de209a1768c931b189
2025-05-03 23:59:28 +00:00
Ilia Kirianovskii
b39b775c41 [python] Add intellij.python.community.junit5Tests.framework._test module descriptor to run tests in dev-mode (IJPL-116621)
GitOrigin-RevId: 6e5047cc36fb3ee4e592b40fcc4399e863167b51
2025-05-03 23:59:28 +00:00
Ilya.Kazakevich
73325d4a19 Python tests: Increase logging verbosity and allow people to run them without installing our pythons.
People usually struggle to run a Gradle script to install pythons, so we:

1. Tell them explicitly what to do.
2. Provide `PYTHON_FOR_TESTS` env var they can point to Python.

GitOrigin-RevId: 06337f1f7d831f1d4b1e94134bdc78c2db2a08dc
2025-05-01 11:58:17 +00:00
Andrii Zinchenko
c92d860f76 [eel] IJPL-172897: remove EelPath.OS, use only EelPlatform in the API
GitOrigin-RevId: 1a1b676865f759f4dbabc97165b62c77decb5087
2025-04-27 19:21:46 +00:00
Ilia Kirianovskii
675eab0b82 [bazel] Update build files
GitOrigin-RevId: 8666e87d2a1221f1d48e9c170bdf632ed0cfd6d9
2025-04-22 20:36:03 +00:00
Ilya.Kazakevich
d07f7dfdfc Python: create a hamcrest matcher for tests to check if a path is an ancestor.
Hamcrest doesn't support `nio.Path` out of the box.

See `com.intellij.python.junit5Tests.framework.TestToolsKt.startsWith`

GitOrigin-RevId: 843cf711bb441e0f2daae6c94b3df6f8ca3e7b8b
2025-04-18 00:13:21 +00:00
Ilya.Kazakevich
0893401e81 Python: Add tool to mock env vars in tests.
There is a tool named `EnvironmentVariables` which mocks `System.env`.

We use it to mock `System.env` and `EnvironmentUtil`.

See `EnvironmentVariablesPathMockTest` as an example.

GitOrigin-RevId: ef48bf27d0ee2a1f0e02d62ab8370c01c0ecee52
2025-04-16 21:14:49 +00:00
Vladimir Krivosheev
2826736b48 update bazel files
GitOrigin-RevId: 9a1f20bfe703fbdc66366dd15f45569df0688201
2025-03-28 18:42:12 +00:00
Ilya Kazakevich
ca46fea6b0 PY-78762: Activate conda in Powershell.
We used to use `Invoke-Expression` but then migrated to `&`.

However, a conda activation script is a command (code block), not a file, so we need to use `Invoke-Expression` as '&' doesn't support it.

We check if a file exists, and if it does -- we use '&' which is safe and fast. We use `Invoke-Expression` otherwise.


Merge-request: IJ-MR-158505
Merged-by: Ilya Kazakevich <ilya.kazakevich@jetbrains.com>

GitOrigin-RevId: ea0772b3f5f9641a85b542903c44c3b78aed0715
2025-03-28 14:51:58 +00:00
Leonid Shalupov
2e048d9e57 housekeeping: remove kotlin unused imports
GitOrigin-RevId: 1ba9dd92e225ce5e8df8fbc429acdcd38d114f36
2025-02-24 20:03:20 +00:00
Konstantin Nisht
b6d3690b12 [threading] IJPL-149765: Rename writeAction to edtWriteAction #6
GitOrigin-RevId: 635c50933068a86ac0bf62608185bd359c7ac98c
2025-02-19 22:13:13 +00:00
Vladimir Krivosheev
2afd344094 update bazel files
GitOrigin-RevId: 602896538c31a4822f284f83d7fda9cba934258f
2025-02-18 08:17:48 +00:00