Skip to content

Commit

Permalink
Declare PHP version requirement in all Composer packages (#34192)
Browse files Browse the repository at this point in the history
This makes for a better experience for third parties using the packages,
as they can see on Packagist which PHP versions the package is supposed
to support.

Also this is a good excuse to make a major version bump for all the
packages following #34126 which removed testing with PHP 5.6 and allows
use of 7.0+ features going forward.

And since we're making systematic use of declared PHP versions now,
let's lint for that and make use of it to skip phpunit tests where
appropriate.

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/6930571592
  • Loading branch information
anomiex authored and matticbot committed Nov 20, 2023
1 parent 92658ed commit abfff4e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.17.13-alpha] - unreleased
## [2.0.0-alpha] - unreleased

This is an alpha version! The changes listed here are not final.

### Changed
- The package now requires PHP >= 7.0.

## [1.17.12] - 2023-11-14
### Changed
- Updated package dependencies. [#34093]
Expand Down Expand Up @@ -514,7 +517,7 @@ This is an alpha version! The changes listed here are not final.

- Add API endpoints and Jetpack Backup package for managing Help…

[1.17.13-alpha]: https://github.com/Automattic/jetpack-backup/compare/v1.17.12...v1.17.13-alpha
[2.0.0-alpha]: https://github.com/Automattic/jetpack-backup/compare/v1.17.12...v2.0.0-alpha
[1.17.12]: https://github.com/Automattic/jetpack-backup/compare/v1.17.11...v1.17.12
[1.17.11]: https://github.com/Automattic/jetpack-backup/compare/v1.17.10...v1.17.11
[1.17.10]: https://github.com/Automattic/jetpack-backup/compare/v1.17.9...v1.17.10
Expand Down
21 changes: 11 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
"automattic/jetpack-assets": "^1.18.16-alpha",
"automattic/jetpack-admin-ui": "^0.2.26-alpha",
"automattic/jetpack-autoloader": "^2.12.0",
"automattic/jetpack-composer-plugin": "^1.1.14",
"automattic/jetpack-config": "^1.15.4",
"automattic/jetpack-connection": "^1.60.2-alpha",
"automattic/jetpack-identity-crisis": "^0.11.4-alpha",
"automattic/jetpack-sync": "^1.60.1",
"automattic/jetpack-status": "^1.19.0"
"php": ">=7.0",
"automattic/jetpack-assets": "^2.0.0-alpha",
"automattic/jetpack-admin-ui": "^0.3.0-alpha",
"automattic/jetpack-autoloader": "^3.0.0-alpha",
"automattic/jetpack-composer-plugin": "^2.0.0-alpha",
"automattic/jetpack-config": "^2.0.0-alpha",
"automattic/jetpack-connection": "^2.0.0-alpha",
"automattic/jetpack-identity-crisis": "^0.12.0-alpha",
"automattic/jetpack-sync": "^2.0.0-alpha",
"automattic/jetpack-status": "^2.0.0-alpha"
},
"require-dev": {
"automattic/jetpack-changelogger": "^4.0.0-alpha",
Expand Down Expand Up @@ -66,7 +67,7 @@
"link-template": "https://github.com/Automattic/jetpack-backup/compare/v${old}...v${new}"
},
"branch-alias": {
"dev-trunk": "1.17.x-dev"
"dev-trunk": "2.0.x-dev"
}
},
"config": {
Expand Down
2 changes: 1 addition & 1 deletion src/class-package-version.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
class Package_Version {

const PACKAGE_VERSION = '1.17.13-alpha';
const PACKAGE_VERSION = '2.0.0-alpha';

const PACKAGE_SLUG = 'backup';

Expand Down

0 comments on commit abfff4e

Please sign in to comment.