Skip to content
This repository was archived by the owner on Jul 25, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions datafusion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from abc import ABCMeta, abstractmethod
from typing import List

import importlib.metadata
import pyarrow as pa

from ._internal import (
Expand All @@ -29,6 +30,9 @@
)


__version__ = importlib.metadata.version("datafusion")


__all__ = [
"DataFrame",
"ExecutionContext",
Expand Down
4 changes: 4 additions & 0 deletions datafusion/tests/test_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ def test_import_datafusion():
assert datafusion.__name__ == "datafusion"


def test_datafusion_python_version():
assert datafusion.__version__ is not None


def test_class_module_is_datafusion():
for klass in [
ExecutionContext,
Expand Down