Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* pyproject.toml: 2. Add pyproject.toml support for pyside6 toolsJaime Resano2025-03-121-8/+17
| | | | | | | | | | | | | | | | | This patch adds support for pyproject.toml files to the pyside6-project tool. A new command argument is added to migrate a .pyproject JSON file to the new pyproject.toml file: `pyside6-project migrate-pyproject` The new features are tested and it is guaranteed that the current behavior is preserved. A new flag is added to the project creation operations, "--legacy-pyproject", in order to generate a .pyproject file instead of a pyproject.toml file. Note that the tomlkit library is added to the requirements.txt file. https://github.com/python-poetry/tomlkit Task-number: PYSIDE-2714 Change-Id: If33956dea73b79df0a52d4dcda3934c85e57182d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* pyproject.toml: 1. Refactor pyside6-projectJaime Resano2025-03-121-57/+62
| | | | | | | | | | | | This patch refactors the code of the pyside6-project tool to simplify the upcoming change of the project file format, pyproject.toml. The CLI tool documentation is also improved. Task-number: PYSIDE-2714 Change-Id: I010bbb58f3ed8be5ad5f38687f36b4641a4a021d Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* pyside6-project: 4. Enable building Design Studio projectsJaime Resano2025-01-231-36/+66
| | | | | | | | | | | | | pyside6-project tool needs to be more flexible to build Design Studio projects. The path where a .qrc compilation output is stored has to be configurable. In addition, a check is performed to see whether the .qrc file needs to be rebuild by looking at the files that are referenced. This avoids unnecesary rebuilds. Task-number: PYSIDE-1612 Pick-to: 6.8 Change-Id: I8aafd5e66e477bbb360f3cf691d43e12c8866ec4 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* pyside6-deploy: 3. Rename project folder to project_libJaime Resano2025-01-221-7/+7
| | | | | | | | | | | | | This is a refactor in order to improve the code clarity. In the testing of the pyside6-project command, importlib.import_module is used to import the project_lib folder. Currently, importlib.import_module("project") is ambiguous because it may refer to both the file and the folder. It chooses the folder over the file. Task-number: PYSIDE-1612 Pick-to: 6.8 Change-Id: I8903ea9d2112cf2eb7a68d0e302d3c74edcf2c22 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* 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 <tismer@stackless.com>
* 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 <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 rule for pyside6-qsbFriedemann Kleint2024-04-181-1/+7
| | | | | | | Pick-to: 6.7 Task-number: PYSIDE-2629 Change-Id: I46303c172bb82654186def51908317c269c7c5e7 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* 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 <Friedemann.Kleint@qt.io>
* 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 <cristian.maureira-fredes@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* 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 <cristian.maureira-fredes@qt.io>
* 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 <cristian.maureira-fredes@qt.io>
* 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 <qt_ci_bot@qt-project.org> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* 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 <Shyamnath.Premnadh@qt.io>
* 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 <Shyamnath.Premnadh@qt.io>
* 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 <cristian.maureira-fredes@qt.io>
* 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 <adrian.herrmann@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* 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 <cristian.maureira-fredes@qt.io>
* 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 <tismer@stackless.com>
* 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 <cristian.maureira-fredes@qt.io> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* 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 <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* 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 <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