From 372d3af7858b444c97a4b99bfbac9a74a0001236 Mon Sep 17 00:00:00 2001 From: Martin Date: Wed, 1 Feb 2023 12:01:51 +0100 Subject: [PATCH 1/2] Change license to MIT-0 only Poetry generates license classifiers based on a [licenses.json@b5d1934](https://github.com/python-poetry/poetry-core/blob/b5d1934fed190bbfd1a303b44d5e2ef9a600efed/src/poetry/core/spdx/data/licenses.json). At the moment `MIT-0` is not recognized as an existing license and a `Classifier: License :: Other/Proprietary License` is added to the list of classifiers which leads to unexpected behavior from license checkers. Signed-off-by: Martin --- pyproject.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 04c5255c81e..3209fb12ea5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ include = ["aws_lambda_powertools/py.typed", "THIRD-PARTY-LICENSES"] classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", + "License :: OSI Approved :: MIT No Attribution License (MIT-0)", "Natural Language :: English", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", @@ -16,7 +16,8 @@ classifiers=[ repository="https://github.com/awslabs/aws-lambda-powertools-python" readme = "README.md" keywords = ["aws_lambda_powertools", "aws", "tracing", "logging", "lambda", "powertools", "feature_flags", "idempotency", "middleware"] -license = "MIT-0" +# MIT-0 is not recognized as an existing license from poetry +license = "MIT" [tool.poetry.dependencies] python = "^3.7.4" From 192f5dedfba05f34364b121508e220f7d7f66a01 Mon Sep 17 00:00:00 2001 From: Martin Date: Wed, 1 Feb 2023 13:07:06 +0100 Subject: [PATCH 2/2] Avoid proprietary license when using aws-lambda-powertools-python Poetry generates license classifiers based on a [licenses.json@b5d1934](https://github.com/python-poetry/poetry-core/blob/b5d1934fed190bbfd1a303b44d5e2ef9a600efed/src/poetry/core/spdx/data/licenses.json). At the moment `MIT-0` is not recognized as an existing license and a `Classifier: License :: Other/Proprietary License` is added to the list of classifiers which leads to unexpected behavior from license checkers. Signed-off-by: Martin --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3209fb12ea5..991513d5245 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,8 @@ classifiers=[ repository="https://github.com/awslabs/aws-lambda-powertools-python" readme = "README.md" keywords = ["aws_lambda_powertools", "aws", "tracing", "logging", "lambda", "powertools", "feature_flags", "idempotency", "middleware"] -# MIT-0 is not recognized as an existing license from poetry +# MIT-0 is not recognized as an existing license from poetry. +# By using `MIT` as a license value, a `License :: OSI Approved :: MIT License` classifier is added to the classifiers list. license = "MIT" [tool.poetry.dependencies]