Skip to content

Commit

Permalink
1.0.1rc1 version bump miss (#325)
Browse files Browse the repository at this point in the history
* Fixing version bumping issues (#271)

* Bumping setup.py to appropriate version

* Fixing spacing issue
  • Loading branch information
leahwicz authored Apr 6, 2022
1 parent 4ac90c9 commit 9538904
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
10 changes: 4 additions & 6 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,26 @@ current_version = 1.0.1rc1
parse = (?P<major>\d+)
\.(?P<minor>\d+)
\.(?P<patch>\d+)
(\.(?P<pluginpatch>\d+))?
((?P<prerelease>[a-z]+)(?P<num>\d+))?
((?P<prerelease>a|b|rc)(?P<num>\d+))?
serialize =
{major}.{minor}.{patch}.{pluginpatch}{prerelease}{num}
{major}.{minor}.{patch}{prerelease}{num}
{major}.{minor}.{patch}.{pluginpatch}
{major}.{minor}.{patch}
commit = False
tag = False

[bumpversion:part:prerelease]
first_value = a
optional_value = final
values =
a
b
rc
final

[bumpversion:part:num]
first_value = 1

[bumpversion:part:pluginpatch]
first_value = 1
[bumpversion:file:setup.py]

[bumpversion:file:dbt/adapters/spark/__version__.py]

9 changes: 2 additions & 7 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 All @@ -57,7 +52,7 @@ def _get_dbt_core_version():

# TODO remove old logic and add to versionBump script
package_name = "dbt-spark"
package_version = "1.0.0"
package_version = "1.0.1rc1"
dbt_core_version = _get_dbt_core_version()
description = """The Apache Spark adapter plugin for dbt"""

Expand Down

0 comments on commit 9538904

Please sign in to comment.