Skip to content

Conversation

e42sh
Copy link

@e42sh e42sh commented Feb 1, 2023

Poetry generates license classifiers based on a licenses.json@b5d1934.

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 [email protected]

Issue number:

Maintenance: Add header to LICENSE #1881

Summary

Changes

Updated poetry configuration.

User experience

License checkers should not complain about proprietary licenses. PyPi will signal a MIT and MIT-0 license instead of the proprietary license.

See current state:

pic
Source https://pypi.org/project/aws-lambda-powertools/

The resulting PKG-INFO should look like

# PKG-INFO
Metadata-Version: 2.1
Name: aws-lambda-powertools
Version: 2.7.0
Summary: A suite of utilities for AWS Lambda functions to ease adopting best practices such as tracing, structured logging, custom metrics, batching, idempotency, feature flags, and more.
Home-page: https://github.com/awslabs/aws-lambda-powertools-python
License: MIT
...
Classifier: License :: OSI Approved :: MIT License
Classifier: License :: OSI Approved :: MIT No Attribution License (MIT-0)
...

Checklist

If your change doesn't seem to apply, please leave them unchecked.

Is this a breaking change?

Yes. The PKG-INFO in the distribution package will change. The Classifier: License :: Other/Proprietary License classifier will be removed and besides the Classifier: License :: OSI Approved :: MIT License classifier an additional License :: OSI Approved :: MIT No Attribution License (MIT-0) will be added through the use of trove_classifiers.

However, from my point of view, it should match with other distributions of the Lambda Power Tools, e.g. https://www.npmjs.com/package/@aws-lambda-powertools/metrics and should not raise any issues from other users, as the license becomes more relaxed.

However, when Poetry / Poetry Core will support MIT-0, this breaking change would implicitly occur without any notification.

RFC issue number:

Checklist:

  • Migration process documented
  • Implement warnings (if it can live side by side)

Acknowledgment

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

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 <[email protected]>
@e42sh e42sh requested a review from a team as a code owner February 1, 2023 11:43
@e42sh e42sh requested review from leandrodamascena and removed request for a team February 1, 2023 11:43
@boring-cyborg boring-cyborg bot added the dependencies Pull requests that update a dependency file label Feb 1, 2023
@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Feb 1, 2023
@e42sh e42sh changed the title Change license to MIT-0 only Change license to MIT + MIT-0 (no proprietary anymore) Feb 1, 2023
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 <[email protected]>
@heitorlessa heitorlessa self-assigned this Feb 1, 2023
@heitorlessa heitorlessa changed the title Change license to MIT + MIT-0 (no proprietary anymore) fix(license): correct license to MIT + MIT-0 (no proprietary anymore) Feb 1, 2023
@github-actions github-actions bot added the bug Something isn't working label Feb 1, 2023
@heitorlessa
Copy link
Contributor

This is a stellar contribution - thank you for linking the Poetry findings. Merging, and will be making a patch release within the next hour or so.

@codecov-commenter
Copy link

Codecov Report

Base: 97.51% // Head: 97.51% // No change to project coverage 👍

Coverage data is based on head (192f5de) compared to base (3314893).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1883   +/-   ##
========================================
  Coverage    97.51%   97.51%           
========================================
  Files          143      143           
  Lines         6570     6570           
  Branches       466      466           
========================================
  Hits          6407     6407           
  Misses         128      128           
  Partials        35       35           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@heitorlessa heitorlessa changed the title fix(license): correct license to MIT + MIT-0 (no proprietary anymore) fix(license): correction to MIT + MIT-0 (no proprietary anymore) Feb 1, 2023
@heitorlessa heitorlessa merged commit 26ea6e0 into aws-powertools:develop Feb 1, 2023
@e42sh e42sh deleted the fix-proprietary-license branch February 1, 2023 13:08
heitorlessa added a commit to BakasuraRCE/aws-lambda-powertools-python that referenced this pull request Feb 7, 2023
* develop: (24 commits)
  chore(deps): bump docker/setup-buildx-action from 2.4.0 to 2.4.1 (aws-powertools#1903)
  chore(deps-dev): bump aws-cdk-lib from 2.63.0 to 2.63.2 (aws-powertools#1904)
  update changelog with latest changes
  docs(idempotency): add IAM permissions section (aws-powertools#1902)
  chore(deps-dev): bump mkdocs-material from 9.0.10 to 9.0.11 (aws-powertools#1896)
  chore(deps-dev): bump mypy-boto3-appconfig from 1.26.0.post1 to 1.26.63 (aws-powertools#1895)
  chore(maintainers): fix release workflow rename
  update changelog with latest changes
  docs(homepage): set url for end-of-support in announce block (aws-powertools#1893)
  chore(deps-dev): bump mkdocs-material from 9.0.9 to 9.0.10 (aws-powertools#1888)
  chore(deps-dev): bump mypy-boto3-s3 from 1.26.58 to 1.26.62 (aws-powertools#1889)
  chore(deps-dev): bump black from 22.12.0 to 23.1.0 (aws-powertools#1886)
  chore(deps-dev): bump aws-cdk-lib from 2.62.2 to 2.63.0 (aws-powertools#1887)
  update changelog with latest changes
  feat(metrics): add default_dimensions to single_metric (aws-powertools#1880)
  chore: update v2 layer ARN on documentation
  bump version to 2.7.1
  update changelog with latest changes
  docs(homepage): add banner for end-of-support v1 (aws-powertools#1879)
  fix(license): correction to MIT + MIT-0 (no proprietary anymore) (aws-powertools#1883)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants