From b7614f2a7bf26b52c2bee787451af5539ffeb7be Mon Sep 17 00:00:00 2001 From: Lucas Heitzmann Gabrielli Date: Wed, 7 Feb 2024 15:27:21 -0300 Subject: [PATCH] Release v0.9.50 Signed-off-by: Lucas Heitzmann Gabrielli --- CHANGELOG.md | 4 ++++ include/gdstk/gdstk.hpp | 2 +- pyproject.toml | 4 ++-- release.sh | 42 ----------------------------------------- 4 files changed, 7 insertions(+), 45 deletions(-) delete mode 100755 release.sh diff --git a/CHANGELOG.md b/CHANGELOG.md index 6babbb79d..baccaf8ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.9.50 - 2024-02-07 +### Added +- `Polygon.perimeter`. + ## 0.9.49 - 2023-12-29 ### Fixed - Type annotation for `Cell.write_svg`. diff --git a/include/gdstk/gdstk.hpp b/include/gdstk/gdstk.hpp index db7601984..34c2014df 100644 --- a/include/gdstk/gdstk.hpp +++ b/include/gdstk/gdstk.hpp @@ -11,7 +11,7 @@ LICENSE file or #define __STDC_FORMAT_MACROS 1 #define _USE_MATH_DEFINES -#define GDSTK_VERSION "0.9.49" +#define GDSTK_VERSION "0.9.50" // If GDSTK_CUSTOM_ALLOCATOR is defined, the user must supply implementations // for the following dynamic memory management functions: diff --git a/pyproject.toml b/pyproject.toml index 31a14c3e9..878cff5bb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "gdstk" -version = "0.9.49" +version = "0.9.50" authors = [{name = "Lucas H. Gabrielli", email = "heitzmann@gmail.com"}] description = "Python module for creation and manipulation of GDSII files." readme = "README.md" @@ -62,7 +62,7 @@ message_template = "Bump to {new_version}" tag_template = "v{new_version}" [tool.tbump.version] -current = "0.9.49" +current = "0.9.50" regex = ''' (?P\d+) \. diff --git a/release.sh b/release.sh deleted file mode 100755 index 10b9c6398..000000000 --- a/release.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh - -rm -r build -python setup.py build -pytest || exit 1 - -CURR_VER=$(python -c 'import gdstk; print(gdstk.__version__)') - -if ! grep "## $CURR_VER - " CHANGELOG.md > /dev/null 2>&1; then - echo "Version $CURR_VER not found in the release notes of CHANGELOG.md" - exit 1 -fi - -if ! grep "version = \"$CURR_VER\"" pyproject.toml > /dev/null 2>&1; then - echo "Version $CURR_VER not set in pyproject.toml" - exit 1 -fi - -if ! grep "Gdstk $CURR_VER" README.md > /dev/null 2>&1; then - echo "Version $CURR_VER not found in the benchmark in README.md" - echo "Continue anyway [y/n]?" - read -r GOON - if [ "$GOON" != 'y' ] ; then - exit 1 - fi -fi - -echo "Release version $CURR_VER [y/n]?" -read -r GOON - -if [ "$GOON" = 'y' ] ; then - LAST_VER=$(git tag -l | tail -n 1) - - if [ "$LAST_VER" = "v$CURR_VER" ]; then - echo "Version $CURR_VER (from package) already tagged. Skipping the creation of a new commit." - else - git commit -s -m "Release v$CURR_VER" - git tag -am "Release v$CURR_VER" "v$CURR_VER" - fi - - echo "Review the status and 'git push' to finish release." -fi