Skip to content
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

fix(license): remove license file #211

Merged

Conversation

mostaphaRoudsari
Copy link
Member

This PR removes the license file and uses the license field in meta data instead as the single source of declaring a license for a plugin or a recipe.

Resolves #154

This PR removes the license file and uses the license field in meta data instead as the single source of declaring a license for a plugin or a recipe.

Resolves pollination#154
@coveralls
Copy link

coveralls commented Dec 9, 2020

Pull Request Test Coverage Report for Build 411289470

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 5 of 9 (55.56%) changed or added relevant lines in 3 files are covered.
  • 2 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.2%) to 48.743%

Changes Missing Coverage Covered Lines Changed/Added Lines %
queenbee/plugin/plugin.py 2 4 50.0%
queenbee/recipe/recipe.py 1 3 33.33%
Files with Coverage Reduction New Missed Lines %
queenbee/plugin/plugin.py 1 83.05%
queenbee/repository/package.py 1 43.33%
Totals Coverage Status
Change from base Build 411201678: 0.2%
Covered Lines: 1357
Relevant Lines: 2784

💛 - Coveralls

Copy link
Member

@AntoineDao AntoineDao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep the change makes sense. Reckon we can probably just drop anything to do with a file called LICENSE 😀

if license_string is not None:
with open(os.path.join(folder_path, 'LICENSE'), 'w') as f:
f.write(license_string)
with open(os.path.join(folder_path, 'LICENSE'), 'w') as f:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we just drop the LICENSE file if we're not actually going to write anything there?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it might still be helpful for user discovery. We can remove it at any point and it shouldn't break anything since it is only generated insider the folder when one uses to_folder.

Copy link
Member

@AntoineDao AntoineDao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep the change makes sense. Reckon we can probably just drop anything to do with a file called LICENSE 😀 If you want to keep the file for some reason the you can still consider this PR approved!

@mostaphaRoudsari mostaphaRoudsari merged commit 92d929c into pollination:master Dec 9, 2020
@mostaphaRoudsari mostaphaRoudsari deleted the change-license-to-link branch December 9, 2020 19:35
@ladybugbot
Copy link

🎉 This PR is included in version 1.21.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change license to be a link instead of a file
4 participants