Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Conditionally relax specification for termcolor dependency #587

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

Merged
Lee-W merged 1 commit into commitizen-tools:master from jakob-keller:termcolor-2
Sep 18, 2022
Merged

Conditionally relax specification for termcolor dependency #587

Lee-W merged 1 commit into commitizen-tools:master from jakob-keller:termcolor-2
Sep 18, 2022

Conversation

Copy link
Contributor

@jakob-keller jakob-keller commented Sep 17, 2022
edited
Loading

Description

Closes #586

Checklist

  • Add test cases to all the changes you introduce
  • Run ./scripts/format and ./scripts/test locally to ensure this change passes linter check and test
  • Test the changes on the local machine manually
  • Update the documentation for the changes

Expected behavior

Allow for installation of termcolor 2.x in commitizen enabled projects under Python >= 3.7

Steps to Test This Pull Request

Additional context

Copy link

codecov bot commented Sep 17, 2022
edited
Loading

Codecov Report

Base: 98.32% // Head: 98.38% // Increases project coverage by +0.06% 🎉

Coverage data is based on head (02c42c7) compared to base (92b1e89).
Patch has no changes to coverable lines.

Additional details and impacted files
@@ Coverage Diff @@
## master #587 +/- ##
==========================================
+ Coverage 98.32% 98.38% +0.06% 
==========================================
 Files 39 39 
 Lines 1614 1614 
==========================================
+ Hits 1587 1588 +1 
+ Misses 27 26 -1 
Flag Coverage Δ
unittests 98.38% <ø> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
commitizen/changelog.py 100.00% <0.00%> (+0.56%) ⬆️

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.

pyproject.toml Outdated
termcolor = "^1.1"
termcolor = [
{ "version" = "^1.1", python = "< 3.7" },
{ "version" = ">= 1.1, < 2.1", python = ">= 3.7" },
Copy link
Member

Choose a reason for hiding this comment

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

Wondering why are we pinning version to < 2.1.

Copy link
Contributor Author

@jakob-keller jakob-keller Sep 18, 2022

Choose a reason for hiding this comment

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

My bad. To follow the original caret style's intent, this should be:

termcolor = [
 { "version" = "^1.1", python = "< 3.7" },
 { "version" = ">= 1.1, < 3", python = ">= 3.7" },

If you agree, I will update the PR accordingly. Do you prefer an additional commit or should I modify and force-push?

woile and Lee-W reacted with thumbs up emoji
Copy link
Member

Choose a reason for hiding this comment

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

modify and force push

jakob-keller and Lee-W reacted with thumbs up emoji
@jakob-keller jakob-keller requested review from woile and Lee-W and removed request for woile and Lee-W September 18, 2022 07:07
@Lee-W Lee-W merged commit ecea2a4 into commitizen-tools:master Sep 18, 2022
@jakob-keller jakob-keller deleted the termcolor-2 branch September 18, 2022 07:23
Copy link
Contributor Author

Thank you, @Lee-W!

Lee-W reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@woile woile woile left review comments

@Lee-W Lee-W Lee-W approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Conditionally relax specification for termcolor dependency

AltStyle によって変換されたページ (->オリジナル) /