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

Remove hardcoded VERSION constant #18

Merged
merged 1 commit into from Sep 10, 2022
Merged

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Sep 10, 2022

To find the version, use:

try:
    # Python 3.8+
    import importlib.metadata as importlib_metadata
except ImportError:
    # Python 3.7
    import importlib_metadata


print(importlib_metadata.version("termcolor"))

Docs: https://docs.python.org/3/library/importlib.metadata.html#distribution-versions
Backport: https://pypi.org/project/importlib-metadata/

@hugovk hugovk added the changelog: Removed For now removed features label Sep 10, 2022
@codecov
Copy link

codecov bot commented Sep 10, 2022

Codecov Report

Merging #18 (18ae230) into main (bde5a71) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main       #18   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines           70        69    -1     
=========================================
- Hits            70        69    -1     
Flag Coverage Δ
macos-latest 100.00% <100.00%> (ø)
ubuntu-latest 100.00% <100.00%> (ø)
windows-latest 100.00% <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% <ø> (ø)
src/termcolor/__init__.py 100.00% <100.00%> (ø)

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

@hugovk hugovk merged commit 72c0544 into termcolor:main Sep 10, 2022
@hugovk hugovk deleted the rm-VERSION branch September 10, 2022 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: Removed For now removed features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant