Skip to content

Commit

Permalink
Fix duckdb to v0.8.1 in venv (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
EJOOSTEROP authored Sep 26, 2023
1 parent 4edeb95 commit 8965101
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
<!-- insertion marker -->
## [Unreleased]

## [0.0.12] 2023-09-26

### Changed
- Undo the fix duckdb to v0.8.1 (did not get desired result)
- Setting duckdb version using venv.run_module("pip", "install", "duckdb==0.8.1")

## [0.0.11] 2023-09-26

### Changed
Expand Down
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ disallow_incomplete_defs = true

[tool.poetry]
name = "ternyxmimosa"
version = "0.0.11"
version = "0.0.12"
description = "A minimal modern data stack with working data pipelines in a single Docker container."
authors = ["Erik Oosterop <[email protected]>"]
license = "MIT"
Expand All @@ -36,7 +36,6 @@ python-dotenv = "^1.0.0"
loguru = "^0.7.2"
pandas = "2.0.3"
streamlit = "^1.26.0"
duckdb = "0.8.1"

[tool.poetry.group.dev.dependencies]
pytest-cov = "^4.1.0"
Expand Down
3 changes: 3 additions & 0 deletions src/mimosa/pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ def run_reporting_pipeline(self):

logger.debug("Starting to obtain a dbt venv.")
venv = dlt.dbt.get_venv(pipeline)
venv.run_module(
"pip", "install", "duckdb==0.8.1"
) # TODO: this does not always need to be fixed (20230926)

# get runner, optionally pass the venv
logger.debug("Getting the path for dbt transformations.")
Expand Down

0 comments on commit 8965101

Please sign in to comment.