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

Add __main__ to re-enable demo via python -m termcolor #27

Merged
merged 4 commits into from Oct 30, 2022

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Oct 30, 2022

Running python -m termcolor with termcolor 1.1.0 gave a demo:

image

That broke after moving to src layout in 4538442 in termcolor 2.0.0:

$ python -m termcolor
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3: No module named termcolor.__main__; 'termcolor' is a package and cannot be directly executed

So let's move that code into termcolor.__main__ to re-enable the python -m termcolor demo.

@hugovk hugovk added bug Something isn't working changelog: Fixed For any bug fixes labels Oct 30, 2022
@codecov
Copy link

codecov bot commented Oct 30, 2022

Codecov Report

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

Coverage data is based on head (315e658) compared to base (9f42863).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #27   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines          106       106           
=========================================
  Hits           106       106           
Flag Coverage Δ
macos-latest 100.00% <ø> (ø)
ubuntu-latest 100.00% <ø> (ø)
windows-latest 100.00% <ø> (ø)

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

Impacted Files Coverage Δ
src/termcolor/termcolor.py 100.00% <ø> (ø)

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.

@hugovk hugovk merged commit ec269e6 into termcolor:main Oct 30, 2022
@hugovk hugovk deleted the demo branch October 30, 2022 10:47
@hugovk hugovk changed the title Add __main__ to re-enable demo via 'python -m termcolor' Add __main__ to re-enable demo via python -m termcolor Nov 8, 2022
@hugovk hugovk changed the title Add __main__ to re-enable demo via python -m termcolor Add __main__ to re-enable demo via python -m termcolor Nov 20, 2022
@hugovk hugovk mentioned this pull request Nov 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working changelog: Fixed For any bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant