Commit Graph
218 Commits
Author SHA1 Message Date
Morgan Bartholomewandintellij-monorepo-bot 00cdda225b [python] PY-83733 ruff support
(cherry picked from commit df443269c3a29cfe9b5f3b67663a1f998396e738)

GitOrigin-RevId: f7d5bf3905cbe4e9092ee3976509777005f3f3bb
2025-10-21 06:20:05 +00:00
Vladimir Lagunovandintellij-monorepo-bot d7e0b918d7 Revert "Python Env Tests: support python.exe from Windows Apps in PYTHON_FOR_TESTS"
This reverts commit dc3c04ab43749a1c02285ccdc4deab01f49b13c1.


(cherry picked from commit 93aaf56d801631313443cf9f04b58f6da1cd964e)

IJ-CR-178048

GitOrigin-RevId: f44adec30cb46f26f8717a9bb4b8174766e8fea0
2025-10-17 10:18:34 +00:00
Vitaly Legchilkinandintellij-monorepo-bot 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
Alexey Katsmanandintellij-monorepo-bot f2e26c5e41 PY-83881: Add pipenv for python env tests
Merge-request: IJ-MR-178102
Merged-by: Alexey Katsman <alexey.katsman@jetbrains.com>

GitOrigin-RevId: d4945ad78fceae2772383f24c270bedbb16a4cfb
2025-10-10 11:32:27 +00:00
Vladimir Krivosheevandintellij-monorepo-bot 30413b84c9 IJPL-209476 IJ-MR-175479 extract jettison, jaxen, bouncy-castle
GitOrigin-RevId: d9f6e8e745fbfb69604eb02d0f95cad976d4d7f9
2025-10-09 21:36:26 +00:00
Vladimir Lagunovandintellij-monorepo-bot 956af7d0aa Python Env Tests: support python.exe from Windows Apps in PYTHON_FOR_TESTS
GitOrigin-RevId: dc3c04ab43749a1c02285ccdc4deab01f49b13c1
2025-10-09 14:41:12 +00:00
Vladimir Krivosheevandintellij-monorepo-bot 026e9d1fab IJ-MR-175479 IJ-CR-146078 IJPL-209476 kotlin-reflect, xz and lz4-java
GitOrigin-RevId: f49b6210864a95ca6540bade8e3fcca02c2fcecc
2025-10-06 16:34:02 +00:00
Ilia Kirianovskiiandintellij-monorepo-bot f43aa95086 [bazel] Update build files (IJI-3062)
GitOrigin-RevId: 98a67396a48bddc3d084cc93c50ae2f2017bfe8c
2025-09-29 00:11:15 +00:00
Vladimir.Koshelevandintellij-monorepo-bot ba393efaa7 [python] PY-84398 get rid of embedded loading rules in PythonCore plugin, fix related issues
GitOrigin-RevId: 54f4bb333e0ca06a002a86c75f0bbc474863253e
2025-09-26 15:15:29 +00:00
Ilia Kirianovskiiandintellij-monorepo-bot dbff9211f6 [setup-test-environment] Add git in pycharm-tests (IJPL-116621)
GitOrigin-RevId: 554e71f149f17faca1864f1a5acfaf018b8a2e9a
2025-09-25 01:30:30 +00:00
Alexandr Evstigneevandintellij-monorepo-bot 8649d8d623 IJPL-204686 Updated jvm/jbr version to 21 across multiple modules
There are more statements in the testData, left them as is for now

GitOrigin-RevId: ca654cccb3650be0ba5c9257cffd8f8d3db97436
2025-09-01 15:06:34 +00:00
Ilia Kirianovskiiandintellij-monorepo-bot dc268560b6 [bazel] Update build files (IJI-2835)
GitOrigin-RevId: 275260ab73f59d3c08f0b4cb9f4c89b74054094a
2025-08-20 08:49:22 +00:00
Pavel Karateevandintellij-monorepo-bot 9a80a2d9ef PCQA-1107 explicitly declare JVM version
otherwise the system version will be used, e.g., Java 8 on CI,
and it will fail as `com.jetbrains.python.envs` is compiled with
Java 17


(cherry picked from commit cc38a0bf6f3376d7c614a68646ccdab7088e2f8d)

IJ-MR-169407

GitOrigin-RevId: 0594621cdf3bb406423b9f7183d3b6e1daa4336d
2025-07-17 17:01:57 +00:00
Pavel Karateevandintellij-monorepo-bot 17c28b6906 PCQA-1107 switch to Space Packages
`com.jetbrains.python.envs` plugin was published to Gradle Plugin
Portal in 2021 last time, an attempt to publish a new version with
a set of fixes was rejected by the Gradle approval team

while we are currently under discussion with the Gradle team,
I think it makes sense to switch to Space Packages

we could publish to Space Packages without any issues, the package
is also publicly available

as we have plans to deprecate the plugin, I consider this as a temp
solution, though Space Packages might be better suited for hosting
the plugin than Gradle Plugin Portal in the first place


(cherry picked from commit e6f19caf01ea78796497c0f9890e0c15a22a8f85)

IJ-MR-169407

GitOrigin-RevId: 8e394fec3292389db2091011a49fd2c6fde85b3c
2025-07-17 17:01:57 +00:00
Pavel Karateevandintellij-monorepo-bot 98c8572ba6 PCQA-1152 auto accept conda TOS when running PyCharm env tests
following the official recommendation https://github.com/anaconda/conda-anaconda-tos?tab=readme-ov-file#cicd-environments

without this conda will ask the user to accept Terms Of Service
while running PyCharm env tests - and there is no user on CI


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

GitOrigin-RevId: 533f5f34d9a0128cac57a0a35d57e1fd19860820
2025-07-16 01:42:48 +00:00
Ilya.Kazakevichandintellij-monorepo-bot 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
Nikita Ashihminandintellij-monorepo-bot 2c3a5a9f7a PY-82119 Packaging: Rewrite Conda to use EEL
GitOrigin-RevId: 8329d24191bdc1411775dc8e58a65172a2804788
2025-06-19 17:30:40 +00:00
Vladimir Krivosheevandintellij-monorepo-bot a49e310575 IJ-MR-162467 don't export intellij.platform.lang.core
GitOrigin-RevId: dea0fc36382a29eda134dba69917d41c7b585cf2
2025-06-18 11:28:23 +00:00
Vladimir Krivosheevandintellij-monorepo-bot b935234c91 IJ-MR-162467 don't export intellij.platform.projectModel
GitOrigin-RevId: 11c0bf5ca0f3a6d892658a2b149d85cace9aa2b8
2025-06-14 13:00:48 +00:00
Vladimir Krivosheevandintellij-monorepo-bot ef0323d07c IJ-MR-162467 don't export intellij.platform.core
GitOrigin-RevId: 05f350c1c087be1bf9b46d8bdac5345a65f55958
2025-06-13 21:52:48 +00:00
Vladimir Krivosheevandintellij-monorepo-bot 398df72a86 don't export intellij.grid.types
GitOrigin-RevId: f38a458a8614ae3e95616146512d9fc056ed3bbc
2025-05-28 18:00:33 +00:00
Vitaly Legchilkinandintellij-monorepo-bot 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 Krivosheevandintellij-monorepo-bot 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
Ilya.Kazakevichandintellij-monorepo-bot 5869745655 Python tests: allow access python roots.
They might be accessed by various background tests which lead to ugly exceptions

GitOrigin-RevId: d647f101127233a3933402fc9ea2391ea3224266
2025-05-06 10:03:28 +00:00
Ilia Kirianovskiiandintellij-monorepo-bot 8eb4cc6f28 [bazel] Update build files
GitOrigin-RevId: b1e6b2ea8731ab7ec544b6fbcaea337a34c2937e
2025-05-04 09:23:02 +00:00
Ilia Kirianovskiiandintellij-monorepo-bot 9bcdcd2c26 [python] Add intellij.python.community.testFramework.testEnv.conda module descriptor to run tests in dev-mode (IJPL-116621)
GitOrigin-RevId: 7e663d6cb3c4cdb3a6b129713701ec057c6dda83
2025-05-03 23:59:28 +00:00
Ilia Kirianovskiiandintellij-monorepo-bot e862216667 [python] Add intellij.python.community.testFramework.testEnv module descriptor to run tests in dev-mode (IJPL-116621)
GitOrigin-RevId: 1f738d47ffb2271d68d94f6e1e081d5582bc094b
2025-05-03 23:59:28 +00:00
Ilya.Kazakevichandintellij-monorepo-bot 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
Ilya.Kazakevichandintellij-monorepo-bot bc09d9cd01 Python tests: store a path to conda in PyCondaPackageService.
While one should use a conda path from `PyCondaFlavorData`, some legacy code still depends on this service.

This service does a good job trying to find conda on a user PC, but obviously fails in test as conda is installed in a usual location.

We store a conda path in this service to make tests work

GitOrigin-RevId: d8e1d08b268ae5259e7050c5c9bb8cc8184e3751
2025-04-02 02:10:24 +00:00
Ilya.Kazakevichandintellij-monorepo-bot 09856e40ca Python: add various shells to test terminal integration for things like PY-71499
GitOrigin-RevId: b01fe12794d6ab0e1cbdbabf3d61274d2138af49
2025-04-01 13:56:49 +00:00
Ilya.Kazakevichandintellij-monorepo-bot 92b5532dc1 PY-80049: Check Python2 version correctly.
We execute `--version` to find python version.
Since 3.4 Python uses stdout for output, but before that it used stderr.

We now check both: stdout and stderr.

GitOrigin-RevId: ca9059b71cabbd1a94e26523192cdf9eeb8c1eb1
2025-03-28 18:06:13 +00:00
Egor Eliseevandintellij-monorepo-bot 1db7cf2617 [python] Add the ability to set a Python version for PyCharm Debugger Test
Rename python dirs


Merge-request: IJ-MR-158041
Merged-by: Egor Eliseev <Egor.Eliseev@jetbrains.com>

GitOrigin-RevId: c217b1ffb9440f2852a8e5ce600e569c5a52433d
2025-03-20 11:14:23 +00:00
Egor Eliseevandintellij-monorepo-bot 44c7817bbf [python] Add the ability to set a Python version for PyCharm Debugger Test
Add Python 3.13.
Fix splitting by Python version


Merge-request: IJ-MR-157990
Merged-by: Egor Eliseev <Egor.Eliseev@jetbrains.com>

GitOrigin-RevId: def8af789fa93a19fc694afaa882cfb5c70e4025
2025-03-19 17:04:57 +00:00
Egor Eliseevandintellij-monorepo-bot f348f0ecb1 [python] Add the ability to set a Python version for PyCharm Debugger Test
Merge-request: IJ-MR-157952
Merged-by: Egor Eliseev <Egor.Eliseev@jetbrains.com>

GitOrigin-RevId: 92e35a21b76cc6fc29c5cf1682f3f357117f7178
2025-03-18 15:15:00 +00:00
Vladimir Krivosheevandintellij-monorepo-bot 4bbc4f60d5 update bazel files
GitOrigin-RevId: b6f7b26421d9a6baf1e2a72ccff5e078bdf49315
2025-02-21 08:07:28 +00:00
Ilya.Kazakevichandintellij-monorepo-bot 967fd16ddb Python: decouple test-env from UsefulTestCase because it overwrites logger and breaks RD tests
GitOrigin-RevId: 00aac829d9f2e6d0e71f9cf0dd510c73519c7e85
2025-02-19 21:27:25 +00:00
Vitaly Legchilkinandintellij-monorepo-bot 59b842b72b [python] add hatch to test environment (PY-60410)
GitOrigin-RevId: 4f585c71390d8ad8c770156e62fed4d4c56f075f
2025-02-12 12:13:34 +00:00
Ilya.Kazakevichandintellij-monorepo-bot 6d50caceb4 Python tests: fix Dockerfile.
1. do not use `apt` in non-interactive scripts.
2. set non-interactive frontend explicitly
3. provide `-y` for `upgrade`

GitOrigin-RevId: 85a5b4bd55f1ae3ae8ee5e76b13f38962ba3c354
2025-02-12 11:54:02 +00:00
David Lysenkoandintellij-monorepo-bot fa9767480d [pycharm] PY-78648 Add setup for uv
GitOrigin-RevId: e7330544f57cef25f28b18dbf6e06c80dfabc484
2025-02-11 23:29:22 +00:00
Ilya.Kazakevichandintellij-monorepo-bot ac6713da98 Python: check all letters in fix script for tests
range doesn't include the end

GitOrigin-RevId: 314ae8a720ae2c6b3006d2c7de1ea5fd65e19d12
2025-02-07 03:35:51 +00:00
Ilya.Kazakevichandintellij-monorepo-bot 8b1404ea28 Python: skip scripts without python shebang
some scripts like uv might not have one

GitOrigin-RevId: 18e14b22378f03a6bb754dee7a79c33c7c976b93
2025-02-07 03:21:08 +00:00
Ilya.Kazakevichandintellij-monorepo-bot d90208a32d Python: update conda version in scripts
GitOrigin-RevId: e452cddb3c2baca58b6eba789289d3c76d66c7a4
2025-02-07 02:14:07 +00:00
Vladimir Krivosheevandintellij-monorepo-bot c3c21baac5 update bazel files
GitOrigin-RevId: 1a10e8174a47f688a95a93af0540f722462acd97
2025-02-03 11:42:18 +00:00
Ilya.Kazakevichandintellij-monorepo-bot 69d4f52dbb Python tests: move venv test fixture into a separate module
We finally decouple test framework from community impl

GitOrigin-RevId: 87178107f2fe785d295aca4cb46527634f465f90
2025-02-02 21:05:54 +00:00
Ilya.Kazakevichandintellij-monorepo-bot 94f852297f Python tests: extract conda setup env into separate module.
Test framework doesn't have to depend on conda now

GitOrigin-RevId: c5cb78df09324dc8ab9d335b2ab4deb945633b48
2025-02-02 16:49:39 +00:00
Vladimir Krivosheevandintellij-monorepo-bot b8245e1370 IJ-CR-146078 update bazel files
GitOrigin-RevId: 3bcfd10f71c84283bded464e142ead99edc6a278
2025-02-02 15:20:11 +00:00
Ilya.Kazakevichandintellij-monorepo-bot 1be9caaac9 Python tests: separate conda from vanilla python env types for tests.
With this change we can move conda into the separate module to decouple test framework from community.impl

GitOrigin-RevId: 589dc29f39d9d46252681c8f31b8fe482e63595f
2025-02-02 07:05:23 +00:00
Ilya.Kazakevichandintellij-monorepo-bot 88dc070d16 Python: move classes to access pythons created by setup-env script into right module.
We now store classes to access pythons installed by tests setup env right next to the script

GitOrigin-RevId: 922e5cfbb89e1e550679796e02deb24553ad6852
2025-02-02 07:05:23 +00:00
Daniil Kalininandintellij-monorepo-bot a0fe7697ed PY-77985 Update and fix the tests for Black, add Black ver. which supports fragments formating into the test config
GitOrigin-RevId: d3d305edecb20ac8178163879e62bc7895ee850c
2025-01-21 17:38:36 +00:00
Ilya.Kazakevichandintellij-monorepo-bot 646feb9dc4 Python tests: add script to patch .exe files in Scripts directory to make environment transferable.
See `README.txt`

GitOrigin-RevId: a4df2516360e96c03c507c471f662b97fe3bc51c
2024-12-11 12:51:13 +00:00