aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside-tools/project.py
Commit message (Collapse)AuthorAgeFilesLines
* pyside6-project: Fix lupdate handling with subdirectoriesFriedemann Kleint2024-09-101-2/+3
| | | | | | | | | | Pass paths relative to the project directory instead of the file name to lupdate (to keep the command line short). Fixes: PYSIDE-2861 Pick-to: 6.7 6.5 Change-Id: Iebdc5e9e6e5c50952b6db4425a68179045cbf9fc Reviewed-by: Christian Tismer <[email protected]>
* Use modern typing syntaxAdrian Herrmann2024-06-201-6/+5
| | | | | | | | | | | | 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 <[email protected]>
* 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 <[email protected]>
* pyside6-project: Add a rule for pyside6-qsbFriedemann Kleint2024-04-181-1/+7
| | | | | | | Pick-to: 6.7 Task-number: PYSIDE-2629 Change-Id: I46303c172bb82654186def51908317c269c7c5e7 Reviewed-by: Shyamnath Premnadh <[email protected]>
* pyside6-project: Fix --dry-runShyamnath Premnadh2024-02-151-10/+10
| | | | | | | | Bug caused from 10715102f01bfee9c0122f21680f05414a947357 Pick-to: 6.6 6.5 Change-Id: I50631239134f154baebab0eef4d36c52e8ba398b Reviewed-by: Friedemann Kleint <[email protected]>
* pyside6-project: Add a command for running lupdateFriedemann Kleint2024-02-121-1/+23
| | | | | | | | | [ChangeLog][PySide6] pyside6-project now has an lupdate mode updating translation files (.ts) from the sources. Change-Id: I853e55455fff2c0c22a7099c650e4bd3b2fc52c4 Reviewed-by: Cristian Maureira-Fredes <[email protected]> Reviewed-by: Qt CI Bot <[email protected]>
* pyside6-project: Add a build rule for building .qm files from .ts filesFriedemann Kleint2024-02-121-0/+7
| | | | | | | | | [ChangeLog][PySide6] pyside6-project now also builds translation (.qm) files. Pick-to: 6.6 6.5 Change-Id: I9863ff3d031499ae7a74c04ec988ca2085a75cfa Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* pyside6-project: Ensure rc_.py files are built lastFriedemann Kleint2024-02-121-1/+11
| | | | | | | | | Resource might depend on generated files. Introduce a sort function to ensure .qrc goes last. Pick-to: 6.6 6.5 Change-Id: I8188eda00247cb192a485f30755100862d6895a1 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* PySide Tools: Fix flake8 warningsShyamnath Premnadh2024-02-021-1/+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 <[email protected]> Reviewed-by: Friedemann Kleint <[email protected]>
* pyside6-project: Recognize .pyw files as PythonFriedemann Kleint2023-09-261-4/+5
| | | | | | | | | 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 <[email protected]>
* pyside6-project: Fix qmllint not working on WindowsFriedemann Kleint2023-05-221-15/+16
| | | | | | | | | | | | The tool passed "nul" (os.devnull) as output file for qmltyperegistrar to suppress the .cpp registration file, but qmltyperegistrar cannot open it. Change pyside6-project to handle lists of artifacts and add it as a real file. Pick-to: 6.5 Change-Id: If8b1ed70305de7b8087a1351dceccd6481b8c085 Reviewed-by: Shyamnath Premnadh <[email protected]>
* Project Tool: SplitShyamnath Premnadh2022-10-201-336/+41
| | | | | | | | | | | - 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 <[email protected]>
* Project tool: fix attribute errorShyamnath Premnadh2022-10-181-2/+6
| | | | | | | | | - there was no setter for self.main_file. This is now added. Pick-to: 6.4 Change-Id: Iebb131e36f5bdc29dc7eff44b98e3defceda4416 Reviewed-by: Adrian Herrmann <[email protected]> Reviewed-by: Friedemann Kleint <[email protected]>
* Add project generation to pyside6-projectFriedemann Kleint2022-10-141-7/+26
| | | | | | | | | | | Add mode keywords "new-quick", "new-ui" and "new-widget" that create simple applications. [ChangeLog][PySide6] pyside6-project can now generate simple project templates. Change-Id: Id4e457ab3592bd9ac4c8c7f45667e8c166ec4754 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* pyside6-project: Fix invalid resource imports in Qt Designer formsFriedemann Kleint2022-10-131-1/+1
| | | | | | | | | Pass --rc-prefix to uic to get the correct name (see qtbase/5a84483bbfffe57a2b544680c297821ebbb65124). Pick-to: 6.4 Change-Id: I3980c70250e458e52a38d7f238e4860cc2d90693 Reviewed-by: Christian Tismer <[email protected]>
* Add deployment to pyside6-projectShyamnath Premnadh2022-10-101-27/+61
| | | | | | | | | | - new mode 'deploy' which calls the pyside6-deploy tool - simplified run() for code reuse Task-number: PYSIDE-1612 Change-Id: I3a6c762a0df8a480d08ee3575e9898e3abdb7aa1 Reviewed-by: Cristian Maureira-Fredes <[email protected]> Reviewed-by: Adrian Herrmann <[email protected]>
* Use SPDX license identifiersLucie Gérard2022-05-271-38/+2
| | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: I065150015bdb84a3096b5b39c061cf0a20ab637d Reviewed-by: Friedemann Kleint <[email protected]> Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Long live pyside6-project!Friedemann Kleint2022-03-141-0/+526
| | | | | | | | | | | | Add a tool to build Qt Designer forms, resource files and QML type files in a .pyproject. [ChangeLog][PySide6] pyside6-project, a tool for building projects and running QML checks, has been added. Task-number: PYSIDE-1709 Change-Id: I101ef04cb07c00a1ac75d18d81a2856305253109 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* 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