From 4de05831504ed7b411a179109c0c0ebd5c602453 Mon Sep 17 00:00:00 2001 From: John Sundell Date: Tue, 12 May 2020 12:32:57 +0200 Subject: [PATCH] Bump Swift version to 5.2 (#85) * Migrate to the Swift 5.2 package manifest format * Also includes a dependency update, bumping Plot to version 0.8.0. * README: Bump Swift version to 5.2 and add section about system requirements --- Package.resolved | 4 ++-- Package.swift | 14 +++++++------- README.md | 8 +++++++- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/Package.resolved b/Package.resolved index bd6a21f4..2470c418 100644 --- a/Package.resolved +++ b/Package.resolved @@ -33,8 +33,8 @@ "repositoryURL": "https://github.com/johnsundell/plot.git", "state": { "branch": null, - "revision": "6dcfc1f246eabf6ea470202244115f73b75c72c4", - "version": "0.6.0" + "revision": "61e828949ca6f84071bde65c8fc046cf74b7d1a2", + "version": "0.8.0" } }, { diff --git a/Package.swift b/Package.swift index b83fd2bd..e88def6a 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.1 +// swift-tools-version:5.2 /** * Publish @@ -15,12 +15,12 @@ let package = Package( .executable(name: "publish-cli", targets: ["PublishCLI"]) ], dependencies: [ - .package(url: "https://github.com/johnsundell/ink.git", from: "0.2.0"), - .package(url: "https://github.com/johnsundell/plot.git", from: "0.4.0"), - .package(url: "https://github.com/johnsundell/files.git", from: "4.0.0"), - .package(url: "https://github.com/johnsundell/codextended.git", from: "0.1.0"), - .package(url: "https://github.com/johnsundell/shellout.git", from: "2.3.0"), - .package(url: "https://github.com/johnsundell/sweep.git", from: "0.4.0") + .package(name: "Ink", url: "https://github.com/johnsundell/ink.git", from: "0.2.0"), + .package(name: "Plot", url: "https://github.com/johnsundell/plot.git", from: "0.4.0"), + .package(name: "Files", url: "https://github.com/johnsundell/files.git", from: "4.0.0"), + .package(name: "Codextended", url: "https://github.com/johnsundell/codextended.git", from: "0.1.0"), + .package(name: "ShellOut", url: "https://github.com/johnsundell/shellout.git", from: "2.3.0"), + .package(name: "Sweep", url: "https://github.com/johnsundell/sweep.git", from: "0.4.0") ], targets: [ .target( diff --git a/README.md b/README.md index 7f53c02a..bf4b7ad7 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@

- + Swift Package Manager @@ -228,6 +228,12 @@ try DeliciousRecipes().publish(using: [ For a real-world example of a Publish plugin, check out the [official Splash plugin](https://github.com/johnsundell/splashpublishplugin), which makes it really easy to integrate the [Splash syntax highlighter](https://github.com/johnsundell/splash) with Publish. +## System requirements + +To be able to successfully use Publish, make sure that your system has Swift version 5.2 (or later) installed. If you’re using a Mac, also make sure that `xcode-select` is pointed at an Xcode installation that includes the required version of Swift, and that you’re running macOS Catalina (10.15) or later. + +Please note that Publish **does not** officially support any form of beta software, including beta versions of Xcode and macOS, or unreleased versions of Swift. + ## Installation Publish is distributed using the [Swift Package Manager](https://swift.org/package-manager). To install it into a project, add it as a dependency within your `Package.swift` manifest: