Skip to content

dbtenv 2.0.0

Compare
Choose a tag to compare
@NiallRees NiallRees released this 28 Mar 11:33
· 15 commits to main since this release
27d1a99

Added

  • dbtenv now operates at the adapter-version level, introduced by dbt in version 1.0.0. dbtenv can automatically detect the needed adapter version from profiles.yml, or the --adapter argument set in a dbt command passed to dbtenv --execute.
  • The execute command's --dbt argument can now take either a dbt version (e.g. 1.0.0) or full pip specifier to use (e.g. dbt-snowflake==1.0.0). dbtenv will attempt to automatically detect the required adapter or version from the environment if not specified.
  • dbtenv's version command and config files can now use a dbt version (e.g. 1.0.0) or full pip specifier to use (e.g. dbt-snowflake==1.0.0). dbtenv will attempt to automatically detect the required adapter or version from the environment if not specified.

Changed

  • Dropped support for Homebrew.
  • Previously created environments through dbtenv 1.0.0 will be ignored.
  • dbtenv's default behaviour is now to install missing dbt adapter versions automatically. It can be disabled by setting the DBTENV_AUTO_INSTALL environment variable to false.
  • Attempting to install a version of dbt which doesn't exist will exit cleanly, and provide a list of available versions for that adapter.
  • Failed dbt version installations exit cleanly, removing the created virtual environment.

Fixed

  • Only entries in the environment directory which are dbtenv 2.0.0 environments will be read as installed dbt versions, fixing an issue where dbtenv 1.0.0 environments caused a failure.
  • Fixed version command, and all dbtenv config files. These can now take either a dbt version (e.g. 1.0.0) or full pip specifier to use (e.g. dbt-snowflake==1.0.0). dbtenv will attempt to automatically detect the required adapter or version from the environment if not specified.