Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix flake8 and typing issuesAdrian Herrmann2024-06-211-2/+2
| | | | | | | | | Fix a number of miscellaneous flake8 and typing issues exposed after updating to the modern typing syntax from 3.10 onwards. Task-number: PYSIDE-2786 Change-Id: I5476d1208dd1da3fa93bdec02bc6124a80b247fc Reviewed-by: Christian Tismer <tismer@stackless.com>
* Use modern typing syntaxAdrian Herrmann2024-06-201-15/+14
| | | | | | | | | | | | 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>
* create_changelog.py: Treat 6.5 as LTSFriedemann Kleint2024-02-081-2/+2
| | | | | | Pick-to: 6.6 6.5 Change-Id: I06c2c294decfc7936f9a65bbdcc02bfee481f578 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* create_changelog.py: Reduce bug-fix release commits appearing in minor ↵Friedemann Kleint2023-09-201-0/+4
| | | | | | | | | | version logs, take 2 Set the command line option from the release type auto-detection. Pick-to: 6.6 6.5 6.2 5.15 Change-Id: If911949c43cbababb083a63811a6ce2b491ec504 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Revert "create_changelog.py: Reduce bug-fix release commits appearing in ↵Friedemann Kleint2023-09-201-8/+3
| | | | | | | | | | | | | | | minor version logs" This reverts commit 7ec3ab49fb4cfe7bd062507b15c57644d7032726. The change was done in the wrong place, it only worked for [ChangeLog] entries. The script actually has an option for excluding Pick-to; it just needs to be set. Pick-to: 6.6 6.5 6.2 5.15 Change-Id: I6cc5e929d4f2f9402eb214c87ae40c049f968f3a Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* create_changelog.py: Add more smartness to the optionsFriedemann Kleint2023-09-081-7/+38
| | | | | | | | | | | | | If a change log exists, log from its last commit to HEAD to get an update. Extract functions to get the revision range with LTS handling. Complements 31f393cc472849ed4556b923f0992203fa14a2a0. Pick-to: 6.5 6.2 5.15 Change-Id: I67e7e69fcbc2ce7e2fdb62a127fec97e0fb3186a Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* create_changelog.py: Add some smartness to the optionsFriedemann Kleint2023-09-051-6/+29
| | | | | | | | | On the community repo with the standard v{major}.{minor}.{patch} tag-naming convention, only option -r is required. Pick-to: 6.5 6.2 5.15 Change-Id: Ib69b45a07d1b9e3fabaa99e9a561f1769c192ba5 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* create_changelog.py: Reduce bug-fix release commits appearing in minor ↵Friedemann Kleint2023-09-051-3/+8
| | | | | | | | | | | version logs Remove commits with "Pick-to " for non-bugfix releases. Pick-to: 6.5 6.2 5.15 Change-Id: I1d6456b413e51578a7ac8020df64245a76848d63 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@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>
* flake8: fix styling issues in tools/Cristián Maureira-Fredes2022-04-021-3/+3
| | | | | | Change-Id: I8cbf5d521900df4f55abf8f68997f8a71437f722 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* create_changelog: Add sample usageFriedemann Kleint2022-03-011-1/+8
| | | | | | Pick-to: 6.2 Change-Id: Ia0dcfcbf4ea14e4f59258f572ee3308e6ef42268 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* create_changelog.py: Improve formatting, sort change log entriesFriedemann Kleint2021-09-281-24/+50
| | | | | | | | | | | | - Wrap the text to 80 columns by using textwrap.fill(). - Strip the "shiboken6" and "PySide6" prefixes from the commit messages - Sort the change log entries by task number (change them into a list of tuples task number/string). Pick-to: 6.2 Change-Id: I770e17d749e71b7a4dec124df6050ed690020568 Reviewed-by: Christian Tismer <tismer@stackless.com>
* create_changelog.py: Prefix [ChangeLog] entries by task numberFriedemann Kleint2021-08-261-2/+11
| | | | | | Pick-to: 5.15 6.1 Change-Id: Iccbaf49d0974340cc55b69fafec4a9daff05e778 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* create_changelog.py: Use '-' for lists of [Changelog] tagsFriedemann Kleint2021-05-271-1/+1
| | | | | | Pick-to: 6.1 Change-Id: I702f1a3e9f0add747d93db7ae19bf5878a96563a Reviewed-by: Christian Tismer <tismer@stackless.com>
* create_changelog: add option to exclude pick-toCristian Maureira-Fredes2021-05-121-1/+26
| | | | | | | | | | | | | | | | | | | | This enables the option '-e/--exclude' to skip all the sha1 related to commits that have been already picked to another previous version. The motivation comes to be able to generate the changelog for 6.1, which comes from the dev branch that already have many patches that are already cherry picked to previous releases. The logic is the following: - A: Get sha1 from the latest previous non-minor release to the new minor-release: origin/6.0.3 and origin/6.1 (created) - B: Get all the commits from there that have a 'Pick-to' entry - Use the remaining sha1 from: A - B Change-Id: I1e1fb5c225c13180dc15ea3e92ce4a641f6455f2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* create_changelog.py: Fix shiboken versionFriedemann Kleint2021-02-251-1/+1
| | | | | | Pick-to: 6.0 Change-Id: If8d3bfdde3a1afe5cced1be4d3c8bcc92256048e Reviewed-by: Christian Tismer <tismer@stackless.com>
* Rename PySide2 to PySide6Friedemann Kleint2020-11-021-11/+11
| | | | | | | | Adapt CMake files, build scripts, tests and examples. Task-number: PYSIDE-904 Change-Id: I845f7b006e9ad274fed5444ec4c1f9dbe176ff88 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Rename shiboken2 to shiboken6Friedemann Kleint2020-10-281-10/+10
| | | | | | | | Adapt CMake files, build scripts, tests and examples. Task-number: PYSIDE-904 Change-Id: I4cb5ee4c8df539546014b08202a7b1e98ed3ff07 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* improve create_changelog toolCristián Maureira-Fredes2020-09-151-2/+5
| | | | | | | | | | Avoiding the corner case when someone reference another patch on the commit message by the whole 40-digit hash. Remove the 'Fixes' or 'Task-number' from the task ID. Change-Id: I51e93a06a9343b74bc94f7f2c2af1c40024daf9d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* changelog-tool: Add handling of actual changelog entriesFriedemann Kleint2020-03-031-21/+61
| | | | | | | | | | | Scan the commit messages for entries like [ChangeLog][shiboken2] description... and prepend them to the task list. Change-Id: I4cc8599eefb18c0b2c1892b8f23682b15815d1ec Reviewed-by: Christian Tismer <tismer@stackless.com>
* create_changelog.py: Fix checks for task numbersFriedemann Kleint2019-11-141-7/+11
| | | | | | | | | | The script was failing on commit messages like "Fixes https://github.com/spyder-ide/qtpy/issues/195". Use a regexp to get the number and insert into the dict for convenient sorting. Change-Id: I16499a083d31b85f11d2e7325c7c2c9c6e4332a5 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* create_changelog.py: Silence flake8 and Qt Creator's checkerFriedemann Kleint2019-11-131-11/+15
| | | | | Change-Id: If61585c69e9f73aecd8b001523165df0967721ed Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Add script to generate changelogsCristian Maureira-Fredes2019-06-171-0/+219
This tool generate the changelog for the Qt for Python project. Since the structure is different from other Qt project, this script split the changes between the ones to shiboken, and pyside. A shiboken change must contain the word "shiboken" in the title, everything else will be consider a "pyside" change. The only reported commits are the one associated with a certain task: Fixes or Task-number. The option accepts tags, branches or SHAs. Usage: python create_changelog.py -v v5.12.0..v5.12.1 -r 5.12.1 python create_changelog.py -v v5.11.4..5.13.0 -r 5.13.0 -t minor python create_changelog.py -v 9e13465a..5.12 -r 5.12 python create_changelog.py -v 5.17..6.0 -r 6.0 -t major The availables arguments are the following: -d DIRECTORY, --directory DIRECTORY Repository directory, the current one is default. -v VERSIONS, --versions VERSIONS Tags, branches, or SHA to compare e.g.: v5.12.1..5.12 v5.12.0..v5.12.1 cebc32a5..5.12 -r RELEASE, --release RELEASE Release version: e.g.: 5.12.4 -t TYPE, --type TYPE Release type: bug-fix (default), minor, or major There was an issue related to commits that were found twice, having no task number on the second time. Added type annotations for the functions. Sorted the changelog by task-number. Change-Id: Ia283864fa8add03e136afd75fe7a139ce7e190d8 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>