Skip to content

Commit

Permalink
Readme fixes.
Browse files Browse the repository at this point in the history
Minor swap from importlib to pkg_resources
  • Loading branch information
Czarified committed Sep 29, 2023
1 parent ba4f5d1 commit 3af2c57
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ please [file an issue] along with a detailed description.

## Credits

This project was generated from [@cjolowicz]'s [Hypermodern Python Cookiecutter] template.
This project was originally generated from [@cjolowicz]'s [Hypermodern Python Cookiecutter] template.

[@cjolowicz]: https://github.com/cjolowicz
[pypi]: https://pypi.org/
Expand All @@ -71,6 +71,6 @@ This project was generated from [@cjolowicz]'s [Hypermodern Python Cookiecutter]

<!-- github-only -->

[license]: https://github.com/czarified/thymed/blob/main/LICENSE
[contributor guide]: https://github.com/czarified/thymed/blob/main/CONTRIBUTING.md
[license]: https://github.com/czarified/thymed/blob/master/LICENSE
[contributor guide]: https://github.com/czarified/thymed/blob/master/CONTRIBUTING.md
[command-line reference]: https://thymed.readthedocs.io/en/latest/usage.html
9 changes: 2 additions & 7 deletions src/thymed/__main__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Command-line interface."""
import importlib.metadata
import pkg_resources
import json
from typing import Any

Expand All @@ -18,7 +18,7 @@
install()


__version__ = importlib.metadata.version("thymed")
__version__ = pkg_resources.get_distribution('thymed').version


@click.group()
Expand All @@ -43,11 +43,6 @@ def hello():
"I am [spring_green3 italic]Thymed.[/] " "Simple command-line time-tracking."
)
console.print(f"Current Version: {__version__}\n")
console.print(
"Currently, this is a placeholder tool. "
"Functionality exists in the API, but "
"is not exteded to CLI yet.\n"
)


def default_code() -> Any:
Expand Down

0 comments on commit 3af2c57

Please sign in to comment.