Skip to content

Commit

Permalink
Backporting : Fixing version bump bug (#52) (#76)
Browse files Browse the repository at this point in the history
* Fixing version bump bug (#52)

* adding changlog and updating to main

Co-authored-by: leahwicz <[email protected]>
  • Loading branch information
McKnight-42 and leahwicz authored Mar 25, 2022
1 parent 940defd commit 39d29bc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ values =
[bumpversion:part:num]
first_value = 1

[bumpversion:file:setup.py]

[bumpversion:file:dbt/adapters/redshift/__version__.py]
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
7 changes: 1 addition & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 39d29bc

Please sign in to comment.