Skip to content

Commit

Permalink
fix update-version task
Browse files Browse the repository at this point in the history
  • Loading branch information
eimrek committed May 28, 2024
1 parent 2ddb946 commit 67dc79c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "voila-materialscloud-template"
version = "0.4.1"
version = "0.4.2"
description = 'Voilà template for Materials Cloud.'
authors = [{ name = "The Materials Cloud team" }]
urls = { Source = 'https://github.com/materialscloud-org/voila-materialscloud-template' }
Expand Down
5 changes: 2 additions & 3 deletions tasks.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
from pathlib import Path
import re
import sys
from pathlib import Path
from typing import Tuple

from invoke import task


TOP_DIR = Path(__file__).parent.resolve()


Expand Down Expand Up @@ -39,7 +38,7 @@ def update_version(_, version=""):
)

update_file(
TOP_DIR.joinpath("setup.py"), (r"version=.*,", f"version='{version}',")
TOP_DIR.joinpath("pyproject.toml"), (r"version = .*", f'version = "{version}"')
)

print(f"Bumped version to {version} !")

0 comments on commit 67dc79c

Please sign in to comment.