From 00aa400c21970b2ae4a331194de9a94bb40e2181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20H=C3=A4u=C3=9Fler?= Date: Mon, 6 Jan 2025 10:18:33 +0100 Subject: [PATCH] [TASK] Use `eliashaeussler/version-bumper` for release preparations --- .gitattributes | 1 + composer.json | 2 + composer.lock | 327 +++++++++++++++++++++++++++++++++++++++++- packaging_exclude.php | 1 + version-bumper.yaml | 8 ++ 5 files changed, 338 insertions(+), 1 deletion(-) create mode 100644 version-bumper.yaml diff --git a/.gitattributes b/.gitattributes index abbae93..76446d2 100644 --- a/.gitattributes +++ b/.gitattributes @@ -16,3 +16,4 @@ /phpunit.unit.xml export-ignore /rector.php export-ignore /renovate.json export-ignore +/version-bumper.yaml export-ignore diff --git a/composer.json b/composer.json index 01e25ad..7511b88 100644 --- a/composer.json +++ b/composer.json @@ -25,6 +25,7 @@ }, "require-dev": { "armin/editorconfig-cli": "^1.8 || ^2.0", + "eliashaeussler/version-bumper": "^1.3", "ergebnis/composer-normalize": "^2.42", "friendsofphp/php-cs-fixer": "^3.57", "phpstan/extension-installer": "^1.3", @@ -50,6 +51,7 @@ }, "config": { "allow-plugins": { + "eliashaeussler/version-bumper": true, "ergebnis/composer-normalize": true, "phpstan/extension-installer": true, "typo3/class-alias-loader": true, diff --git a/composer.lock b/composer.lock index 797710f..995255a 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "b0ac315a2b185e33897760819a64405d", + "content-hash": "3f6551e2f6bae656206ece1f75b30968", "packages": [ { "name": "bacon/bacon-qr-code", @@ -5965,6 +5965,205 @@ ], "time": "2024-05-06T16:37:16+00:00" }, + { + "name": "cuyz/valinor", + "version": "1.14.1", + "source": { + "type": "git", + "url": "https://github.com/CuyZ/Valinor.git", + "reference": "12033fccdcc6afa7e73b3e234e4d6656530f2bcb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/CuyZ/Valinor/zipball/12033fccdcc6afa7e73b3e234e4d6656530f2bcb", + "reference": "12033fccdcc6afa7e73b3e234e4d6656530f2bcb", + "shasum": "" + }, + "require": { + "composer-runtime-api": "^2.0", + "php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0", + "psr/simple-cache": "^1.0 || ^2.0 || ^3.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.4", + "infection/infection": "^0.27", + "marcocesarato/php-conventional-changelog": "^1.12", + "mikey179/vfsstream": "^1.6.10", + "phpstan/phpstan": "^1.3", + "phpstan/phpstan-phpunit": "^1.0", + "phpstan/phpstan-strict-rules": "^1.0", + "phpunit/phpunit": "^10.5", + "rector/rector": "^1.0", + "vimeo/psalm": "^5.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "CuyZ\\Valinor\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Romain Canon", + "email": "romain.hydrocanon@gmail.com", + "homepage": "https://github.com/romm" + } + ], + "description": "Library that helps to map any input into a strongly-typed value object structure.", + "homepage": "https://github.com/CuyZ/Valinor", + "keywords": [ + "array", + "conversion", + "hydrator", + "json", + "mapper", + "mapping", + "object", + "tree", + "yaml" + ], + "support": { + "issues": "https://github.com/CuyZ/Valinor/issues", + "source": "https://github.com/CuyZ/Valinor/tree/1.14.1" + }, + "funding": [ + { + "url": "https://github.com/romm", + "type": "github" + } + ], + "time": "2024-11-06T07:46:46+00:00" + }, + { + "name": "cypresslab/gitelephant", + "version": "v4.6.0", + "source": { + "type": "git", + "url": "https://github.com/matteosister/GitElephant.git", + "reference": "4e546eee4c9ad1e0226054f5756c4ef5217e2929" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/matteosister/GitElephant/zipball/4e546eee4c9ad1e0226054f5756c4ef5217e2929", + "reference": "4e546eee4c9ad1e0226054f5756c4ef5217e2929", + "shasum": "" + }, + "require": { + "php": ">=7.2.0", + "phpoption/phpoption": "1.*", + "symfony/filesystem": ">=3.4", + "symfony/finder": ">=3.4", + "symfony/process": ">=3.4" + }, + "require-dev": { + "mockery/mockery": "~1.1", + "php": ">=7.2.0", + "phpstan/phpstan": "*", + "phpstan/phpstan-phpunit": "*", + "phpunit/phpunit": "~8.0|~9.0", + "rector/rector": "*", + "symplify/easy-coding-standard": "*" + }, + "type": "library", + "autoload": { + "psr-0": { + "GitElephant": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0+" + ], + "authors": [ + { + "name": "Matteo Giachino", + "email": "matteog@gmail.com" + } + ], + "description": "An abstraction layer for git written in PHP", + "homepage": "http://gitelephant.cypresslab.net/", + "keywords": [ + "git" + ], + "support": { + "issues": "https://github.com/matteosister/GitElephant/issues", + "source": "https://github.com/matteosister/GitElephant/tree/v4.6.0" + }, + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/cypresslab/gitelephant", + "type": "tidelift" + } + ], + "time": "2024-11-26T16:23:11+00:00" + }, + { + "name": "eliashaeussler/version-bumper", + "version": "1.3.1", + "source": { + "type": "git", + "url": "https://github.com/eliashaeussler/version-bumper.git", + "reference": "dfaa257fd0fc30c2ae81ae23760e743d5cc3f869" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/eliashaeussler/version-bumper/zipball/dfaa257fd0fc30c2ae81ae23760e743d5cc3f869", + "reference": "dfaa257fd0fc30c2ae81ae23760e743d5cc3f869", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^2.0", + "cuyz/valinor": "^1.0", + "cypresslab/gitelephant": "^4.5", + "php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0", + "symfony/console": "^5.4 || ^6.4 || ^7.0", + "symfony/filesystem": "^5.4 || ^6.4 || ^7.0", + "symfony/yaml": "^5.4 || ^6.4 || ^7.0" + }, + "require-dev": { + "armin/editorconfig-cli": "^1.8 || ^2.0", + "composer/composer": "^2.2", + "eliashaeussler/php-cs-fixer-config": "^2.0", + "eliashaeussler/phpstan-config": "^2.0", + "eliashaeussler/rector-config": "^3.0", + "ergebnis/composer-normalize": "^2.30", + "phpstan/extension-installer": "^1.2", + "phpstan/phpstan-phpunit": "^1.1", + "phpstan/phpstan-symfony": "^1.4", + "phpunit/phpunit": "^10.2 || ^11.0" + }, + "type": "composer-plugin", + "extra": { + "class": "EliasHaeussler\\VersionBumper\\VersionBumperPlugin" + }, + "autoload": { + "psr-4": { + "EliasHaeussler\\VersionBumper\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "GPL-3.0-or-later" + ], + "authors": [ + { + "name": "Elias Häußler", + "email": "elias@haeussler.dev", + "homepage": "https://haeussler.dev", + "role": "Maintainer" + } + ], + "description": "Composer plugin to bump project versions during release preparations", + "support": { + "issues": "https://github.com/eliashaeussler/version-bumper/issues", + "source": "https://github.com/eliashaeussler/version-bumper/tree/1.3.1" + }, + "time": "2024-11-25T20:28:40+00:00" + }, { "name": "ergebnis/composer-normalize", "version": "2.45.0", @@ -7544,6 +7743,81 @@ }, "time": "2022-02-21T01:04:05+00:00" }, + { + "name": "phpoption/phpoption", + "version": "1.9.3", + "source": { + "type": "git", + "url": "https://github.com/schmittjoh/php-option.git", + "reference": "e3fac8b24f56113f7cb96af14958c0dd16330f54" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/e3fac8b24f56113f7cb96af14958c0dd16330f54", + "reference": "e3fac8b24f56113f7cb96af14958c0dd16330f54", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.39 || ^9.6.20 || ^10.5.28" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + }, + "branch-alias": { + "dev-master": "1.9-dev" + } + }, + "autoload": { + "psr-4": { + "PhpOption\\": "src/PhpOption/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Johannes M. Schmitt", + "email": "schmittjoh@gmail.com", + "homepage": "https://github.com/schmittjoh" + }, + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + } + ], + "description": "Option Type for PHP", + "keywords": [ + "language", + "option", + "php", + "type" + ], + "support": { + "issues": "https://github.com/schmittjoh/php-option/issues", + "source": "https://github.com/schmittjoh/php-option/tree/1.9.3" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpoption/phpoption", + "type": "tidelift" + } + ], + "time": "2024-07-20T21:41:07+00:00" + }, { "name": "phpstan/extension-installer", "version": "1.4.3", @@ -8258,6 +8532,57 @@ ], "time": "2024-12-21T05:49:06+00:00" }, + { + "name": "psr/simple-cache", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/simple-cache.git", + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/764e0b3939f5ca87cb904f570ef9be2d78a07865", + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\SimpleCache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interfaces for simple caching", + "keywords": [ + "cache", + "caching", + "psr", + "psr-16", + "simple-cache" + ], + "support": { + "source": "https://github.com/php-fig/simple-cache/tree/3.0.0" + }, + "time": "2021-10-29T13:26:27+00:00" + }, { "name": "react/cache", "version": "v1.2.0", diff --git a/packaging_exclude.php b/packaging_exclude.php index d7f7ced..832a623 100644 --- a/packaging_exclude.php +++ b/packaging_exclude.php @@ -50,5 +50,6 @@ 'phpunit.unit.xml', 'rector.php', 'renovate.json', + 'version-bumper.yaml', ], ]; diff --git a/version-bumper.yaml b/version-bumper.yaml new file mode 100644 index 0000000..49036e4 --- /dev/null +++ b/version-bumper.yaml @@ -0,0 +1,8 @@ +filesToModify: + - path: ext_emconf.php + patterns: + - "'version' => '{%version%}'" + reportUnmatched: true + +releaseOptions: + commitMessage: '[RELEASE] Release of EXT:mailqueue {%version%}'