Skip to content

Commit

Permalink
Bump version to ninja: no work to do.
Browse files Browse the repository at this point in the history
+ /Users/mpiekenbrock/opt/miniconda3/envs/simplextree/bin/ninja
v0.1.0 for release
  • Loading branch information
peekxc committed Aug 17, 2023
1 parent fc3ab02 commit 1652861
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

## [v0.1.0](https://github.com/peekxc/simplextree-py/releases/tag/v0.1.0) - 2023-08-17
6 changes: 3 additions & 3 deletions scripts/prepare_changelog.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from datetime import datetime
from pathlib import Path

from my_package.version import VERSION
from simplextree import __version__


def main():
Expand All @@ -15,7 +15,7 @@ def main():
line = lines[i]
if line.startswith("## Unreleased"):
insert_index = i + 1
elif line.startswith(f"## [v{VERSION}]"):
elif line.startswith(f"## [v{__version__}]"):
print("CHANGELOG already up-to-date")
return
elif line.startswith("## [v"):
Expand All @@ -27,7 +27,7 @@ def main():
lines.insert(insert_index, "\n")
lines.insert(
insert_index + 1,
f"## [v{VERSION}](https://github.com/peekxc/simplextree-py/releases/tag/v{VERSION}) - "
f"## [v{__version__}](https://github.com/peekxc/simplextree-py/releases/tag/v{__version__}) - "
f"{datetime.now().strftime('%Y-%m-%d')}\n",
)

Expand Down
2 changes: 1 addition & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

TAG=$(python -c 'from simplextree.version import VERSION; print("v" + VERSION)')
TAG=$(python -c 'from simplextree import __version__; print("v" + __version__)')

read -p "Creating new release for $TAG. Do you want to continue? [Y/n] " prompt

Expand Down
2 changes: 2 additions & 0 deletions simplextree/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
import sys
sys.path.append(os.path.dirname(os.path.abspath(__file__)))

__version__ = '0.1.0'

from .SimplexTree import SimplexTree
from .UnionFind import UnionFind

0 comments on commit 1652861

Please sign in to comment.