Skip to content

Commit

Permalink
Fixed set version
Browse files Browse the repository at this point in the history
  • Loading branch information
Luboš Mátl committed Jun 20, 2024
1 parent 074bbd1 commit dbacdb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions developers_chamber/version_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ def _write_version_to_file(file, new_version):
f.seek(0)
toml.dump(data, f)
elif file_extension == ".json":
data = json.load(f)["version"]
data["version"] = new_version
data = json.load(f)
data["version"] = str(new_version)
f.seek(0)
json.dump(data, f)
json.dump(data, f, indent=2)


def get_version(file="version.json"):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='developers-chamber',
version='0.1.5',
version='0.1.6',
description='A small plugin which help with development, deployment, git',
keywords='django, skripts, easy live, git, bitbucket, Jira',
author='Druids team',
Expand Down

0 comments on commit dbacdb7

Please sign in to comment.