Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ jobs:

- name: Version bump
run: |
# Bump __version__ = "<number>" in __init__.py
sed -i "s/^__version__ = \".*\"/__version__ = \"${{ steps.tag_generation.outputs.new_tag }}\"/" src/firebolt/__init__.py
git add src/firebolt/__init__.py
# Bump version = <number> in setup.cfg
sed -i "s/^version = .*/version = ${{ steps.tag_generation.outputs.new_tag }}/" setup.cfg
# Verify the change
python3 -c "from configparser import ConfigParser; c = ConfigParser(); c.read('setup.cfg'); assert c['metadata']['version'] == '${{ steps.tag_generation.outputs.new_tag }}', 'Version was not updated correctly in setup.cfg'"
git add setup.cfg
git commit -m "Automatic version bump to ${{ steps.tag_generation.outputs.new_tag }}"
git push origin main

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = firebolt_sdk
version = attr: firebolt.__version__
version = 0.2.1
description = Python SDK for Firebolt
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down
1 change: 0 additions & 1 deletion src/firebolt/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
__version__ = "0.2.1"