From 3f089905f5b48025ed631ba93b211efcf57b7a0c Mon Sep 17 00:00:00 2001 From: Sam Harrison Date: Thu, 1 Jun 2023 20:35:02 +0100 Subject: [PATCH 1/2] Update default license to pass open_source_license check Currently the default `package_license` that is generated by `babelize generate` is "MIT". However, this results in a `ValueError` when you use the generated toml file because the valid choices are `['MIT License', 'BSD License', 'ISC License', 'Apache Software License 2.0', 'GNU General Public License v3', 'Not open source']`. Here I've simply changed the default to "MIT License" to be compliant. --- babelizer/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/babelizer/cli.py b/babelizer/cli.py index a85bd3dd..b537483b 100644 --- a/babelizer/cli.py +++ b/babelizer/cli.py @@ -332,7 +332,7 @@ def ask_until_done(text): "package_author_email": email or ask("Babelizing author email", default="csdms@colorado.edu"), "package_license": license - or ask("License to use for the babelized project", default="MIT"), + or ask("License to use for the babelized project", default="MIT License"), "summary": summary or ask("Brief description of what the library does", default=""), } From c8119da89273a803ce7951fbb9040c41b516ffb8 Mon Sep 17 00:00:00 2001 From: mcflugen Date: Mon, 4 Mar 2024 15:48:20 -0700 Subject: [PATCH 2/2] add news fragment --- news/85.misc | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 news/85.misc diff --git a/news/85.misc b/news/85.misc new file mode 100644 index 00000000..f020da11 --- /dev/null +++ b/news/85.misc @@ -0,0 +1,2 @@ + +Changed the default license from "MIT" to "MIT License".