diff --git a/.bumpversion.cfg b/.bumpversion.cfg index ba3726eb3..b587fb0e3 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -22,4 +22,6 @@ values = [bumpversion:part:num] first_value = 1 +[bumpversion:file:setup.py] + [bumpversion:file:dbt/adapters/redshift/__version__.py] diff --git a/CHANGELOG.md b/CHANGELOG.md index c7980050f..63449bad9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ ### Under the hood - Add optional Redshift parameter to create tables with BACKUP NO set, to exclude them from snapshots. ([#18](https://github.com/dbt-labs/dbt-redshift/issues/18), [#42](https://github.com/dbt-labs/dbt-redshift/pull/42)) +- Fixes package naming bug ([#52](https://github.com/dbt-labs/dbt-redshift/pull/52)) ### Contributors - [@dlb8685](https://github.com/dlb8685) ([#42](https://github.com/dbt-labs/dbt-redshift/pull/42)) diff --git a/setup.py b/setup.py index c9a76bac0..74f654b32 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ import sys import re -# require python 3.6 or newer +# require python 3.7 or newer if sys.version_info < (3, 7): print('Error: dbt does not support this version of Python.') print('Please upgrade to Python 3.7 or higher.') @@ -43,11 +43,6 @@ def _get_plugin_version_dict(): return match.groupdict() -def _get_plugin_version(): - parts = _get_plugin_version_dict() - return "{major}.{minor}.{patch}{prekind}{pre}".format(**parts) - - # require a compatible minor version (~=), prerelease if this is a prerelease def _get_dbt_core_version(): parts = _get_plugin_version_dict()