Skip to content

Commit

Permalink
Use license instead of license-file (#1189)
Browse files Browse the repository at this point in the history
Per the Cargo Book, `license-file` is only to be used if a package uses
a non-standard license; see https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields

Declare the licenses directly, and verify that the LICENSE file
containing the license breakdown is still included

```
…n LibCST/native/libcst_derive on  cargo-fixes [!] is 📦 v1.4.0 via 🦀 v1.77.1
⬢ [fedora:40] ❯ cargo package --list --allow-dirty | grep LICENSE
LICENSE

…n LibCST/native/libcst_derive on  cargo-fixes [!] is 📦 v1.4.0 via 🦀 v1.77.1
⬢ [fedora:40] ❯ cd ../libcst

michel in LibCST/native/libcst on  cargo-fixes [!] is 📦 v1.4.0 via 🦀 v1.77.1
⬢ [fedora:40] ❯ cargo package --list --allow-dirty | grep LICENSE
LICENSE
src/tokenizer/core/LICENSE
```

Signed-off-by: Michel Lind <salimma@fedoraproject.org>
  • Loading branch information
michel-slm authored Aug 13, 2024
1 parent 5f5fd38 commit 52a5947
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion native/libcst/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ authors = ["LibCST Developers"]
edition = "2018"
rust-version = "1.70"
description = "A Python parser and Concrete Syntax Tree library."
license-file = "LICENSE"
license = "MIT AND (MIT AND PSF-2.0)"
repository = "https://github.com/Instagram/LibCST"
documentation = "https://libcst.rtfd.org"
keywords = ["python", "cst", "ast"]
Expand Down
2 changes: 1 addition & 1 deletion native/libcst_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "libcst_derive"
version = "1.4.0"
edition = "2018"
description = "Proc macro helpers for libcst."
license-file = "LICENSE"
license = "MIT"
repository = "https://github.com/Instagram/LibCST"
documentation = "https://libcst.rtfd.org"
keywords = ["macros", "python"]
Expand Down

0 comments on commit 52a5947

Please sign in to comment.