aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside-tools/project/project_data.py
Commit message (Collapse)AuthorAgeFilesLines
* Desktop Deployment: Unify API design of Config classShyamnath Premnadh2024-09-021-1/+1
| | | | | | | | | | | | | | - Implements a comment suggestion from 11064d4dcd688db1d54d7273ad700761fabe3f50 - _find_and_set_** methods renamed to _find_** methods. They now return the required property. - Property setters now update the value in the config class as well. This also aligns with the design of certain other properties. - Adjust tests. Task-number: PYSIDE-1612 Pick-to: 6.7 Change-Id: I135d0a64928381a863cbf7235240efc45421324a Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Use modern typing syntaxAdrian Herrmann2024-06-201-12/+11
| | | | | | | | | | | | We can already use the modern typing syntax introduced with Python 3.10 in 3.9 via future statement definitions, even before we raise the minimum Python version to 3.10. Note that direct expressions with "|" don't work yet. Task-number: PYSIDE-2786 Change-Id: Ie36c140fc960328322502ea29cf6868805a7c558 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Python-3.10: Allow the new syntax for Python 3.9Christian Tismer2024-06-201-0/+1
| | | | | | | | Add a future statement to all Python source files. Task-number: PYSIDE-2786 Change-Id: Icd6688c7795a9e16fdcaa829686d57792df27690 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* pyside6-project: Add a command for running lupdateFriedemann Kleint2024-02-121-3/+11
| | | | | | | | | [ChangeLog][PySide6] pyside6-project now has an lupdate mode updating translation files (.ts) from the sources. Change-Id: I853e55455fff2c0c22a7099c650e4bd3b2fc52c4 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* PySide Tools: Fix flake8 warningsShyamnath Premnadh2024-02-021-2/+2
| | | | | | | | | | | | - Fix general flake8 warnings in pyside-tools. - add F401 to .flake8 to ignore unused imports from __init__.py files - add E402 from __init__.py to prevent errors related to partial initialization of modules. Pick-to: 6.6 6.5 Change-Id: Ia848b08ff6f0d2808e04f6a83c46636e2d167c02 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Android Deployment: Identify Qt modules from generated Python filesShyamnath Premnadh2023-10-021-0/+17
| | | | | | | | | | | | | | | | | | | | | - This patch adds an extra step to check the existence of Python files generated from `pyside6-uic` and `pyside6-qrc` for identifying the imported Qt modules in the application. This only applies when the application has a .pyproject file. When the project does not have a .pyproject file, all the Python files in the application are checked for Qt module imports. The .pyproject file does not consider the generated Python files and hence the need of this patch. - For pyside6-deploy, this patch is irrelevant because Nuitka identifies all the required Python files of the project. Task-number: PYSIDE-1612 Pick-to: 6.6 Change-Id: Ic9a2812c42226b6baebab1b23fac8e410910578e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* pyside6-project: Recognize .pyw files as PythonFriedemann Kleint2023-09-261-2/+6
| | | | | | | | | The suffix .pyw is used for Windows GUI applications. Pick-to: 6.6 6.5 Fixes: PYSIDE-2471 Change-Id: Ib067e075ea5b76c36a69da0881e224bdf416c45e Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Project Tool: Fix QML issues on WindowsFriedemann Kleint2022-12-151-1/+4
| | | | | | | | | | - Adapt the glob pattern for metatypes to Windows (no build indicator) - Fix qtpaths6 evaluation (split on ':' only once to prevent it from splitting on drive letters) Pick-to: 6.4 Change-Id: I234ce2d462cca67ed0b142edb3a6e8420e4cb125 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* pyside6-project: Suppress passing an empty option --foreign-typesFriedemann Kleint2022-12-131-2/+3
| | | | | | | Pick-to: 6.4 Change-Id: I45c211db9289277b5b1f9fce176ac2351791bdf3 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* Project Tool: SplitShyamnath Premnadh2022-10-201-0/+211
| | | | | | | | | | | - Split classes into separate Python files - utils and project_data - Project operation still inside project.py - Created class ProjectData out of class Project to store the data of the project Pick-to: 6.4.0 Change-Id: I542b74b90b7a4a01cf415d6d2080cbd6ea914e1d Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* create pyside-tools2 with qt5 branchChristian Tismer2015-06-101-0/+0
|
* Remap examples and tools submodules from gitorious to githubRoman Lacko2013-08-011-0/+0
|
* Initial commit (copy of lck/pyside-dist repo)Roman Lacko2012-06-041-0/+0