Skip to content

Commit

Permalink
[6/n][dagster-powerbi] publish dagster-powerbi, add apidoc
Browse files Browse the repository at this point in the history
  • Loading branch information
benpankow committed Aug 1, 2024
1 parent 63ea599 commit 3482447
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 9 deletions.
17 changes: 17 additions & 0 deletions docs/sphinx/sections/api/apidocs/libraries/dagster-powerbi.rst
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "1!0+dev"
13 changes: 7 additions & 6 deletions python_modules/libraries/dagster-powerbi/setup.py
Original file line number Diff line number Diff line change
@@ -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()
Expand Down

0 comments on commit 3482447

Please sign in to comment.