Skip to content

Commit

Permalink
gooddata-dbt workflows integration
Browse files Browse the repository at this point in the history
  • Loading branch information
hkad98 committed Oct 3, 2023
1 parent 782803b commit 3c3c57b
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .fossa/prepare_and_populate_pipenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,9 @@ pipenv install --skip-lock ../gooddata-api-client/ \
../gooddata-sdk/ -r requirements.txt
cd ..

cd ./gooddata-dbt
pipenv install --skip-lock ../gooddata-api-client/ \
../gooddata-sdk/ -r requirements.txt
cd ..

cd $ORIG_WORK_DIR
2 changes: 2 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
- 'Makefile'
- '!docs/**'
- 'gooddata-api-client/**'
- 'gooddata-dbt/**'
push:
branches:
- master
Expand All @@ -30,6 +31,7 @@ on:
- 'Makefile'
- '!docs/**'
- 'gooddata-api-client/**'
- 'gooddata-dbt/**'
jobs:
unit-tests:
runs-on: ubuntu-latest
Expand Down
8 changes: 5 additions & 3 deletions gooddata-dbt/gooddata_dbt/_version.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# (C) 2023 GoodData Corporation
# Based on
# https://packaging.python.org/en/latest/guides/single-sourcing-package-version/
from importlib import metadata

__version__ = "1.4.0"
try:
__version__ = metadata.version("gooddata-dbt")
except metadata.PackageNotFoundError:
__version__ = "unknown-version"
6 changes: 1 addition & 5 deletions gooddata-dbt/setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
# (C) 2023 GoodData Corporation
from setuptools import find_packages, setup

version = {}
with open("gooddata_dbt/_version.py") as fp:
exec(fp.read(), version)

REQUIRES = ["gooddata-sdk~=1.7.0", "pyyaml>=5.1", "attrs==21.4.0", "cattrs==22.1.0", "requests~=2.31.0"]

setup(
name="gooddata-dbt",
description="dbt plugin for GoodData",
version=version["__version__"],
version="1.7.0",
author="GoodData",
license="MIT",
author_email="[email protected]",
Expand Down
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,16 @@ search = "version=\"{current_version}\""
src = "gooddata-sdk/setup.py"
search = "gooddata-.*-client~={current_version}"

[[tool.tbump.file]]
# sdk setup.py
src = "gooddata-dbt/setup.py"
search = "version=\"{current_version}\""

[[tool.tbump.file]]
# sdk setup.py dependency
src = "gooddata-dbt/setup.py"
search = "gooddata-sdk~={current_version}"

[[tool.tbump.file]]
# clients README
src = "gooddata-*-client/README.md"
Expand Down

0 comments on commit 3c3c57b

Please sign in to comment.