summaryrefslogtreecommitdiff
path: root/src/plugins/python/pythonsettings.h
Commit message (Collapse)AuthorAgeFilesLines
* Python: add create venv option to the wizardDavid Schulz2023-03-271-2/+11
| | | | | | | | | and optimize layouting Fixes: PYSIDE-2152 Change-Id: If3ecb76c4bac885840f54fd382471ac22a06dee3 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Python: add create venv actionDavid Schulz2023-03-211-1/+3
| | | | | | | | | The action can be triggered from the interpreter chooser of the editor toolbar. Change-Id: Ie23b68a3790525ea02883ef359b357a0d317b2f5 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Remove GPL-3.0+ from license identifiersKai Köhne2023-01-061-1/+1
| | | | | | | | | | | | | | | Since we also license under GPL-3.0 WITH Qt-GPL-exception-1.0, this applies only to a hypothetical newer version of GPL, that doesn't exist yet. If such a version emerges, we can still decide to relicense... While at it, replace (deprecated) GPL-3.0 with more explicit GPL-3.0-only Change was done by running find . -type f -exec perl -pi -e "s/LicenseRef-Qt-Commercial OR GPL-3.0\+ OR GPL-3.0 WITH Qt-GPL-exception-1.0/LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0/g" {} \; Change-Id: I5097e6ce8d10233993ee30d7e25120e2659eb10b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Python: Initialize settings in the pimplhjk2022-11-181-4/+1
| | | | | Change-Id: I172136851c3002bf785d9b8f378c0cccc408e0e2 Reviewed-by: David Schulz <david.schulz@qt.io>
* Python: remove settings object from objects poolDavid Schulz2022-09-061-0/+2
| | | | | Change-Id: I4f21688f887c1ad99facb3ffe3a85b5918dd7daf Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Docker: detect python in docker imagesDavid Schulz2022-09-061-0/+8
| | | | | Change-Id: I841cdb7ce1cb8f34565a5e6993c5c825937e3eab Reviewed-by: hjk <hjk@qt.io>
* Python: restructure settingsDavid Schulz2022-09-061-1/+9
| | | | | Change-Id: I32b3bed5581e06e981863b561b9b2f2bb125b82e Reviewed-by: hjk <hjk@qt.io>
* Python: use consistent pyls naming in settingsDavid Schulz2022-09-051-1/+1
| | | | | Change-Id: I8a36e4089812802c3629ac52ce52499dde53eba8 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Use SPDX license identifiersLucie Gérard2022-08-261-24/+2
| | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Python: Convert to Tr::trhjk2022-07-211-8/+4
| | | | | | Change-Id: I0241053b0d51dbb1a60c43351cbff543fd52573d Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Python: remove python specific language client settingsDavid Schulz2022-06-101-0/+3
| | | | | Change-Id: Ic993d525f29c1925f7e64dfc6f5e053234fb4904 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Python: globalize Python language server settingsDavid Schulz2022-06-101-0/+3
| | | | | Change-Id: I84fcee6462064f0c788492fcfa12a77379af2bd7 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Promote previously python-specific InterpreterAspecthjk2022-04-271-23/+4
| | | | | | | | ... and drop PythonRunConfiguration, which is a plain RunConfiguration now. Change-Id: I540cb738180fc1424f730d6d1998886915ce527b Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
* Python: automatically purge outdated autodetected interpretersDavid Schulz2022-03-311-1/+3
| | | | | | | | | | Save whether an interpreter was automatically detected. Use this information on startup and check whether the path still exists to remove the interpreters that are gone. Fixes: QTCREATORBUG-27253 Change-Id: I094e573122f2800f643a2708b924a7a9d7e25ae1 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Python: add PySide installation check on document openDavid Schulz2022-03-281-0/+1
| | | | | | | | | | Checks if the document imports PySide and whether the selected python interpreter can find a PySide installation. If not show a global info bar that can install PySide via pip like the python lsp server. Task-number: PYSIDE-1742 Change-Id: I02c0d5f6eb268f3d8826d4fb9d9ec3c7c48b8638 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Python: Check for changes before applyingChristian Stenger2019-10-301-0/+5
| | | | | | | | | Storing the python settings seems to be rather costly and may take some time. Perform an early return if nothing has changed. Change-Id: I509e83f503d2af31a7464df893e0e4e69e99a277 Reviewed-by: David Schulz <david.schulz@qt.io>
* Python: detect virtual environments for documents and projectsDavid Schulz2019-10-301-0/+6
| | | | | | | | | | | | | After opening a document or project the directory hierarchy is looked up for a Scripts/(activate && python.exe) on windows or bin/(activate && python) on unix. This is the usual structure of python virtual environments. If such a folder is found add the python from that folder to the list of configured interpreters in the settings, set it as the current interpreter for the project and try to open the corresponding language server. Change-Id: I038c309ea2988f9370194330d250d1515beac0a0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Python: export Interpreter generatorDavid Schulz2019-10-251-1/+9
| | | | | Change-Id: I591bd6c14706e1699f028a9a3a6dfd9b89eec66a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Python: make interpreter configurableDavid Schulz2019-07-301-0/+62
Add settings page to setup python interpreter and use a combo box in the run configuration to switch between those configured interpreter. Change-Id: I51014b785ea822ee138d39c788149f1d22901e55 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>