From 53653e79db544adf9c39a3be524f65c4e5e7d8d7 Mon Sep 17 00:00:00 2001 From: Sandro Campos Date: Fri, 16 Feb 2024 15:36:32 -0500 Subject: [PATCH 1/2] Add package version property --- src/lsdb/__init__.py | 1 + tests/lsdb/test_packaging.py | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 tests/lsdb/test_packaging.py diff --git a/src/lsdb/__init__.py b/src/lsdb/__init__.py index c14e9272..fa7c92ca 100644 --- a/src/lsdb/__init__.py +++ b/src/lsdb/__init__.py @@ -1,2 +1,3 @@ from .catalog import Catalog from .loaders import from_dataframe, read_hipscat +from ._version import __version__ \ No newline at end of file diff --git a/tests/lsdb/test_packaging.py b/tests/lsdb/test_packaging.py new file mode 100644 index 00000000..362410b1 --- /dev/null +++ b/tests/lsdb/test_packaging.py @@ -0,0 +1,6 @@ +import lsdb + + +def test_lsdb_version(): + """Check to see that we can get the lsdb version""" + assert lsdb.__version__ is not None From b8e9c2ecf121e553ff8735fa3da7ae74ac6e2b99 Mon Sep 17 00:00:00 2001 From: Sandro Campos Date: Fri, 16 Feb 2024 16:22:36 -0500 Subject: [PATCH 2/2] Run isort --- src/lsdb/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lsdb/__init__.py b/src/lsdb/__init__.py index fa7c92ca..74b5c558 100644 --- a/src/lsdb/__init__.py +++ b/src/lsdb/__init__.py @@ -1,3 +1,3 @@ +from ._version import __version__ from .catalog import Catalog from .loaders import from_dataframe, read_hipscat -from ._version import __version__ \ No newline at end of file