Skip to content

Instantly share code, notes, and snippets.

@yucer
Created August 28, 2023 12:31
Show Gist options
  • Save yucer/cd30d29b05894cb2698e3a2a693a2248 to your computer and use it in GitHub Desktop.
Save yucer/cd30d29b05894cb2698e3a2a693a2248 to your computer and use it in GitHub Desktop.
poetry config after poetry init --no-interaction
[tool.poetry]
name = "airflow-dbt2"
version = "0.1.0"
description = ""
authors = ["Your Name <[email protected]>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
@yucer
Copy link
Author

yucer commented Aug 28, 2023

But, specifying these dependencies it doesn't fail:

[tool.poetry.dependencies]
python = "^3.10"
apache-airflow = "^2.6.2"
apache-airflow-providers-postgres = "^5.5.0"
dbt-postgres = "^1.5.1"
pandas = "^2.0.2"
astronomer-cosmos = "^0.7.3"
black = "^23.3.0"

@yucer
Copy link
Author

yucer commented Aug 28, 2023

The issue was a problem already known. When no dependencies are specified poetry uses the last version and fails. Should it also try to downgrade packages ? I guess so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment