From 3af2c57c737f6a7067bb6a0ae458afd6a3a2c1d7 Mon Sep 17 00:00:00 2001 From: Benjamin Crews Date: Thu, 28 Sep 2023 22:05:12 -0400 Subject: [PATCH] Readme fixes. Minor swap from importlib to pkg_resources --- README.md | 6 +++--- src/thymed/__main__.py | 9 ++------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 35354ec..7b7fb08 100644 --- a/README.md +++ b/README.md @@ -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/ @@ -71,6 +71,6 @@ This project was generated from [@cjolowicz]'s [Hypermodern Python Cookiecutter] -[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 diff --git a/src/thymed/__main__.py b/src/thymed/__main__.py index f4aa315..5b86b35 100644 --- a/src/thymed/__main__.py +++ b/src/thymed/__main__.py @@ -1,5 +1,5 @@ """Command-line interface.""" -import importlib.metadata +import pkg_resources import json from typing import Any @@ -18,7 +18,7 @@ install() -__version__ = importlib.metadata.version("thymed") +__version__ = pkg_resources.get_distribution('thymed').version @click.group() @@ -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: