Skip to content

Remove dependency on argument-parser #149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ let package = Package(
.product(name: "cmark-gfm", package: cmarkPackageName),
.product(name: "cmark-gfm-extensions", package: cmarkPackageName),
]),
.executableTarget(
name: "markdown-tool",
dependencies: [
"Markdown",
.product(name: "ArgumentParser", package: "swift-argument-parser")
]),
.testTarget(
name: "MarkdownTests",
dependencies: ["Markdown"],
Expand All @@ -50,7 +44,6 @@ if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {
// Building standalone, so fetch all dependencies remotely.
package.dependencies += [
.package(url: "https://github.com/apple/swift-cmark.git", branch: "gfm"),
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.2.2"),
]

// SwiftPM command plugins are only supported by Swift version 5.6 and later.
Expand All @@ -63,6 +56,5 @@ if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {
// Building in the Swift.org CI system, so rely on local versions of dependencies.
package.dependencies += [
.package(path: "../cmark"),
.package(path: "../swift-argument-parser"),
]
}
33 changes: 33 additions & 0 deletions Tools/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// swift-tools-version:5.5
/*
This source file is part of the Swift.org open source project

Copyright (c) 2023 Apple Inc. and the Swift project authors
Licensed under Apache License v2.0 with Runtime Library Exception

See https://swift.org/LICENSE.txt for license information
See https://swift.org/CONTRIBUTORS.txt for Swift project authors
*/

import PackageDescription

let package = Package(
name: "Tools",
products: [
.executable(name: "markdown-tool", targets: ["markdown-tool"]),
],
dependencies: [
.package(name: "swift-markdown", path: "../."),
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.2.2"),
],
targets: [
.executableTarget(
name: "markdown-tool",
dependencies: [
.product(name: "Markdown", package: "swift-markdown"),
.product(name: "ArgumentParser", package: "swift-argument-parser")
],
path: "markdown-tool"
),
]
)