diff --git a/docs/sphinx/sections/api/apidocs/libraries/dagster-powerbi.rst b/docs/sphinx/sections/api/apidocs/libraries/dagster-powerbi.rst new file mode 100644 index 0000000000000..1c3c9d7e06af9 --- /dev/null +++ b/docs/sphinx/sections/api/apidocs/libraries/dagster-powerbi.rst @@ -0,0 +1,17 @@ +########################## +Power BI (dagster-powerbi) +########################## + +Dagster allows you to represent your Power BI workspace as assets, alongside other your other +technologies like dbt and Sling. This allows you to see how your Power BI assets are connected to +your other data assets, and how changes to other data assets might impact your Power BI project. + +.. currentmodule:: dagster_powerbi + + +Assets +====== + +.. autofunction:: build_powerbi_asset_specs + +.. autoclass:: DagsterPowerBITranslator diff --git a/python_modules/libraries/dagster-powerbi/dagster_powerbi/__init__.py b/python_modules/libraries/dagster-powerbi/dagster_powerbi/__init__.py index 592fe888c6924..09c27d286a45c 100644 --- a/python_modules/libraries/dagster-powerbi/dagster_powerbi/__init__.py +++ b/python_modules/libraries/dagster-powerbi/dagster_powerbi/__init__.py @@ -3,8 +3,6 @@ from .asset_specs import build_powerbi_asset_specs as build_powerbi_asset_specs from .resource import PowerBIResource as PowerBIResource from .translator import DagsterPowerBITranslator as DagsterPowerBITranslator - -# Move back to version.py and edit setup.py once we are ready to publish. -__version__ = "1!0+dev" +from .version import __version__ DagsterLibraryRegistry.register("dagster-powerbi", __version__) diff --git a/python_modules/libraries/dagster-powerbi/dagster_powerbi/version.py b/python_modules/libraries/dagster-powerbi/dagster_powerbi/version.py new file mode 100644 index 0000000000000..fe3fd8a8248b6 --- /dev/null +++ b/python_modules/libraries/dagster-powerbi/dagster_powerbi/version.py @@ -0,0 +1 @@ +__version__ = "1!0+dev" diff --git a/python_modules/libraries/dagster-powerbi/setup.py b/python_modules/libraries/dagster-powerbi/setup.py index dea63b2a2c1b2..1b46961551fda 100644 --- a/python_modules/libraries/dagster-powerbi/setup.py +++ b/python_modules/libraries/dagster-powerbi/setup.py @@ -1,14 +1,15 @@ +from pathlib import Path +from typing import Dict + from setuptools import find_packages, setup def get_version() -> str: - return "1!0+dev" - # Uncomment when ready to publish - # version: Dict[str, str] = {} - # with open(Path(__file__).parent / "dagster_powerbi/version.py", encoding="utf8") as fp: - # exec(fp.read(), version) + version: Dict[str, str] = {} + with open(Path(__file__).parent / "dagster_powerbi/version.py", encoding="utf8") as fp: + exec(fp.read(), version) - # return version["__version__"] + return version["__version__"] ver = get_version()