+1. As I stated in the pitch phase I would prefer the following syntax:
public static func package(localPath: String) -> Package.Dependency
public static func package(url: String, from version: Version) -> Package.Dependency
public static func package(url: String, from version: Version, localPath: Bool) -> Package.Dependency
The last version would be equivalent to a package with two dependencies (one repository-like dependency and the preferred local one), so this:
dependencies: [
.package(url: "https://github.com/pvieito/PythonKit", .branch("master"), localPath: "../PythonKit")
],
Would be equivalent to this:
dependencies: [
.package(url: "https://github.com/pvieito/PythonKit", .branch("master")),
.package(localPath: "../PythonKit")
],