Skip to content

Commit

Permalink
add version number
Browse files Browse the repository at this point in the history
  • Loading branch information
christinahedges committed Apr 12, 2024
1 parent 7ad3f4d commit 6421c7f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
14 changes: 13 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ astroquery = "^0.4.7"
asyncio = "^3.4.3"
tqdm = "^4.66.2"
lxml = "^5.2.1"
toml = "^0.10.2"


[tool.poetry.group.dev.dependencies]
Expand Down
11 changes: 11 additions & 0 deletions src/tessproposaltool/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,23 @@
import time
from threading import Event, Thread

import toml
from rich.console import Console
from rich.logging import RichHandler # noqa: E402

PACKAGEDIR = os.path.dirname(os.path.abspath(__file__))


def get_version():
pyproject_content = toml.load(
"/".join(PACKAGEDIR.split("/")[:-2]) + "/pyproject.toml"
)
return pyproject_content["tool"]["poetry"]["version"]


__version__ = get_version()


def get_logger():
"""Configure and return a logger with RichHandler."""
# logger = logging.getLogger(__name__)
Expand Down

0 comments on commit 6421c7f

Please sign in to comment.