From 9224351944d268bd382b78ce5f5350c479577acf Mon Sep 17 00:00:00 2001 From: Lucas Heitzmann Gabrielli Date: Mon, 28 Dec 2020 08:31:51 -0300 Subject: [PATCH] Release v1.6.3 --- README.md | 3 +++ docs/_static/fonts.py | 2 +- docs/_static/photonics.py | 2 +- gdspy/__init__.py | 4 ++-- gdspy/clipper.cpp | 2 +- gdspy/curve.py | 2 +- gdspy/gdsiiformat.py | 2 +- gdspy/label.py | 2 +- gdspy/library.py | 2 +- gdspy/operation.py | 2 +- gdspy/path.py | 2 +- gdspy/polygon.py | 2 +- gdspy/viewer.py | 2 +- setup.py | 2 +- tests/cell.py | 2 +- tests/cellarray.py | 2 +- tests/cellreference.py | 2 +- tests/curve.py | 2 +- tests/flexpath.py | 2 +- tests/functions.py | 2 +- tests/gdslibrary.py | 2 +- tests/gdswriter.py | 2 +- tests/polygonset.py | 2 +- tests/robustpath.py | 2 +- tests/tutils.py | 2 +- tools/maketestgds.py | 2 +- tools/release.sh | 5 ++++- 27 files changed, 33 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index 60f43aa..618cb57 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,9 @@ Help support Gdspy development by [donating via PayPal](https://www.paypal.com/c ## History of changes +### Version 1.6.3 (Dec 28, 2020) +* Fix bounding box edge case (thanks Troy Tamas for the fix). + ### Version 1.6.2 (Dec 18, 2020) * More efficient bounding box calculation (thanks to Troy Tamas for the contribution). * Fix Label creation bug. diff --git a/docs/_static/fonts.py b/docs/_static/fonts.py index d6e5d18..54e32a0 100644 --- a/docs/_static/fonts.py +++ b/docs/_static/fonts.py @@ -1,6 +1,6 @@ ###################################################################### # # -# Copyright 2009-2020 Lucas Heitzmann Gabrielli. # +# Copyright 2009 Lucas Heitzmann Gabrielli. # # This file is part of gdspy, distributed under the terms of the # # Boost Software License - Version 1.0. See the accompanying # # LICENSE file or # diff --git a/docs/_static/photonics.py b/docs/_static/photonics.py index b4c64ef..9b17027 100644 --- a/docs/_static/photonics.py +++ b/docs/_static/photonics.py @@ -1,6 +1,6 @@ ###################################################################### # # -# Copyright 2009-2020 Lucas Heitzmann Gabrielli. # +# Copyright 2009 Lucas Heitzmann Gabrielli. # # This file is part of gdspy, distributed under the terms of the # # Boost Software License - Version 1.0. See the accompanying # # LICENSE file or # diff --git a/gdspy/__init__.py b/gdspy/__init__.py index 081e977..96b603e 100644 --- a/gdspy/__init__.py +++ b/gdspy/__init__.py @@ -1,6 +1,6 @@ ###################################################################### # # -# Copyright 2009-2020 Lucas Heitzmann Gabrielli. # +# Copyright 2009 Lucas Heitzmann Gabrielli. # # This file is part of gdspy, distributed under the terms of the # # Boost Software License - Version 1.0. See the accompanying # # LICENSE file or # @@ -19,7 +19,7 @@ - http://www.buchanan1.net/stream_description.html """ -__version__ = "1.6.2" +__version__ = "1.6.3" import warnings diff --git a/gdspy/clipper.cpp b/gdspy/clipper.cpp index 6e0111b..b1ab25f 100644 --- a/gdspy/clipper.cpp +++ b/gdspy/clipper.cpp @@ -726,7 +726,7 @@ void DisposeOutPts(OutPt*& pp) inline void InitEdge(TEdge* e, TEdge* eNext, TEdge* ePrev, const IntPoint& Pt) { - std::memset(e, 0, sizeof(TEdge)); + std::memset((void*)e, 0, sizeof(TEdge)); e->Next = eNext; e->Prev = ePrev; e->Curr = Pt; diff --git a/gdspy/curve.py b/gdspy/curve.py index 743c260..4559be9 100644 --- a/gdspy/curve.py +++ b/gdspy/curve.py @@ -1,6 +1,6 @@ ###################################################################### # # -# Copyright 2009-2020 Lucas Heitzmann Gabrielli. # +# Copyright 2009 Lucas Heitzmann Gabrielli. # # This file is part of gdspy, distributed under the terms of the # # Boost Software License - Version 1.0. See the accompanying # # LICENSE file or # diff --git a/gdspy/gdsiiformat.py b/gdspy/gdsiiformat.py index 72dd20f..87b6683 100644 --- a/gdspy/gdsiiformat.py +++ b/gdspy/gdsiiformat.py @@ -1,6 +1,6 @@ ###################################################################### # # -# Copyright 2009-2020 Lucas Heitzmann Gabrielli. # +# Copyright 2009 Lucas Heitzmann Gabrielli. # # This file is part of gdspy, distributed under the terms of the # # Boost Software License - Version 1.0. See the accompanying # # LICENSE file or # diff --git a/gdspy/label.py b/gdspy/label.py index 3090622..f19ffa8 100644 --- a/gdspy/label.py +++ b/gdspy/label.py @@ -1,6 +1,6 @@ ###################################################################### # # -# Copyright 2009-2020 Lucas Heitzmann Gabrielli. # +# Copyright 2009 Lucas Heitzmann Gabrielli. # # This file is part of gdspy, distributed under the terms of the # # Boost Software License - Version 1.0. See the accompanying # # LICENSE file or # diff --git a/gdspy/library.py b/gdspy/library.py index 1e197bd..33d908c 100644 --- a/gdspy/library.py +++ b/gdspy/library.py @@ -1,6 +1,6 @@ ###################################################################### # # -# Copyright 2009-2020 Lucas Heitzmann Gabrielli. # +# Copyright 2009 Lucas Heitzmann Gabrielli. # # This file is part of gdspy, distributed under the terms of the # # Boost Software License - Version 1.0. See the accompanying # # LICENSE file or # diff --git a/gdspy/operation.py b/gdspy/operation.py index 0e085c4..ff5d351 100644 --- a/gdspy/operation.py +++ b/gdspy/operation.py @@ -1,6 +1,6 @@ ###################################################################### # # -# Copyright 2009-2020 Lucas Heitzmann Gabrielli. # +# Copyright 2009 Lucas Heitzmann Gabrielli. # # This file is part of gdspy, distributed under the terms of the # # Boost Software License - Version 1.0. See the accompanying # # LICENSE file or # diff --git a/gdspy/path.py b/gdspy/path.py index b74664d..6827e26 100644 --- a/gdspy/path.py +++ b/gdspy/path.py @@ -1,6 +1,6 @@ ###################################################################### # # -# Copyright 2009-2020 Lucas Heitzmann Gabrielli. # +# Copyright 2009 Lucas Heitzmann Gabrielli. # # This file is part of gdspy, distributed under the terms of the # # Boost Software License - Version 1.0. See the accompanying # # LICENSE file or # diff --git a/gdspy/polygon.py b/gdspy/polygon.py index 14afbef..74b38c1 100644 --- a/gdspy/polygon.py +++ b/gdspy/polygon.py @@ -1,6 +1,6 @@ ###################################################################### # # -# Copyright 2009-2020 Lucas Heitzmann Gabrielli. # +# Copyright 2009 Lucas Heitzmann Gabrielli. # # This file is part of gdspy, distributed under the terms of the # # Boost Software License - Version 1.0. See the accompanying # # LICENSE file or # diff --git a/gdspy/viewer.py b/gdspy/viewer.py index c9d2be9..c9bd6fa 100644 --- a/gdspy/viewer.py +++ b/gdspy/viewer.py @@ -1,6 +1,6 @@ ###################################################################### # # -# Copyright 2009-2020 Lucas Heitzmann Gabrielli. # +# Copyright 2009 Lucas Heitzmann Gabrielli. # # This file is part of gdspy, distributed under the terms of the # # Boost Software License - Version 1.0. See the accompanying # # LICENSE file or # diff --git a/setup.py b/setup.py index f394fd2..15a3225 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ ###################################################################### # # -# Copyright 2009-2020 Lucas Heitzmann Gabrielli. # +# Copyright 2009 Lucas Heitzmann Gabrielli. # # This file is part of gdspy, distributed under the terms of the # # Boost Software License - Version 1.0. See the accompanying # # LICENSE file or # diff --git a/tests/cell.py b/tests/cell.py index c10e65e..0be3f43 100644 --- a/tests/cell.py +++ b/tests/cell.py @@ -1,6 +1,6 @@ ###################################################################### # # -# Copyright 2009-2020 Lucas Heitzmann Gabrielli. # +# Copyright 2009 Lucas Heitzmann Gabrielli. # # This file is part of gdspy, distributed under the terms of the # # Boost Software License - Version 1.0. See the accompanying # # LICENSE file or # diff --git a/tests/cellarray.py b/tests/cellarray.py index 10ddf51..e3a619b 100644 --- a/tests/cellarray.py +++ b/tests/cellarray.py @@ -1,6 +1,6 @@ ###################################################################### # # -# Copyright 2009-2020 Lucas Heitzmann Gabrielli. # +# Copyright 2009 Lucas Heitzmann Gabrielli. # # This file is part of gdspy, distributed under the terms of the # # Boost Software License - Version 1.0. See the accompanying # # LICENSE file or # diff --git a/tests/cellreference.py b/tests/cellreference.py index 6097016..02cf1a2 100644 --- a/tests/cellreference.py +++ b/tests/cellreference.py @@ -1,6 +1,6 @@ ###################################################################### # # -# Copyright 2009-2020 Lucas Heitzmann Gabrielli. # +# Copyright 2009 Lucas Heitzmann Gabrielli. # # This file is part of gdspy, distributed under the terms of the # # Boost Software License - Version 1.0. See the accompanying # # LICENSE file or # diff --git a/tests/curve.py b/tests/curve.py index 29586d6..a843ec2 100644 --- a/tests/curve.py +++ b/tests/curve.py @@ -1,6 +1,6 @@ ###################################################################### # # -# Copyright 2009-2020 Lucas Heitzmann Gabrielli. # +# Copyright 2009 Lucas Heitzmann Gabrielli. # # This file is part of gdspy, distributed under the terms of the # # Boost Software License - Version 1.0. See the accompanying # # LICENSE file or # diff --git a/tests/flexpath.py b/tests/flexpath.py index 5303e54..7fbfbd3 100644 --- a/tests/flexpath.py +++ b/tests/flexpath.py @@ -1,6 +1,6 @@ ###################################################################### # # -# Copyright 2009-2020 Lucas Heitzmann Gabrielli. # +# Copyright 2009 Lucas Heitzmann Gabrielli. # # This file is part of gdspy, distributed under the terms of the # # Boost Software License - Version 1.0. See the accompanying # # LICENSE file or # diff --git a/tests/functions.py b/tests/functions.py index 76ec545..ac6d79d 100644 --- a/tests/functions.py +++ b/tests/functions.py @@ -1,6 +1,6 @@ ###################################################################### # # -# Copyright 2009-2020 Lucas Heitzmann Gabrielli. # +# Copyright 2009 Lucas Heitzmann Gabrielli. # # This file is part of gdspy, distributed under the terms of the # # Boost Software License - Version 1.0. See the accompanying # # LICENSE file or # diff --git a/tests/gdslibrary.py b/tests/gdslibrary.py index bf1b32d..ebbd836 100644 --- a/tests/gdslibrary.py +++ b/tests/gdslibrary.py @@ -1,6 +1,6 @@ ###################################################################### # # -# Copyright 2009-2020 Lucas Heitzmann Gabrielli. # +# Copyright 2009 Lucas Heitzmann Gabrielli. # # This file is part of gdspy, distributed under the terms of the # # Boost Software License - Version 1.0. See the accompanying # # LICENSE file or # diff --git a/tests/gdswriter.py b/tests/gdswriter.py index aee8c73..40c25cd 100644 --- a/tests/gdswriter.py +++ b/tests/gdswriter.py @@ -1,6 +1,6 @@ ###################################################################### # # -# Copyright 2009-2020 Lucas Heitzmann Gabrielli. # +# Copyright 2009 Lucas Heitzmann Gabrielli. # # This file is part of gdspy, distributed under the terms of the # # Boost Software License - Version 1.0. See the accompanying # # LICENSE file or # diff --git a/tests/polygonset.py b/tests/polygonset.py index 0f8bab7..55e461d 100644 --- a/tests/polygonset.py +++ b/tests/polygonset.py @@ -1,6 +1,6 @@ ###################################################################### # # -# Copyright 2009-2020 Lucas Heitzmann Gabrielli. # +# Copyright 2009 Lucas Heitzmann Gabrielli. # # This file is part of gdspy, distributed under the terms of the # # Boost Software License - Version 1.0. See the accompanying # # LICENSE file or # diff --git a/tests/robustpath.py b/tests/robustpath.py index a3088f6..d9c3e55 100644 --- a/tests/robustpath.py +++ b/tests/robustpath.py @@ -1,6 +1,6 @@ ###################################################################### # # -# Copyright 2009-2020 Lucas Heitzmann Gabrielli. # +# Copyright 2009 Lucas Heitzmann Gabrielli. # # This file is part of gdspy, distributed under the terms of the # # Boost Software License - Version 1.0. See the accompanying # # LICENSE file or # diff --git a/tests/tutils.py b/tests/tutils.py index 47a6b1e..1854e26 100644 --- a/tests/tutils.py +++ b/tests/tutils.py @@ -1,6 +1,6 @@ ###################################################################### # # -# Copyright 2009-2020 Lucas Heitzmann Gabrielli. # +# Copyright 2009 Lucas Heitzmann Gabrielli. # # This file is part of gdspy, distributed under the terms of the # # Boost Software License - Version 1.0. See the accompanying # # LICENSE file or # diff --git a/tools/maketestgds.py b/tools/maketestgds.py index 5921597..ab2da7c 100644 --- a/tools/maketestgds.py +++ b/tools/maketestgds.py @@ -1,6 +1,6 @@ ###################################################################### # # -# Copyright 2009-2020 Lucas Heitzmann Gabrielli. # +# Copyright 2009 Lucas Heitzmann Gabrielli. # # This file is part of gdspy, distributed under the terms of the # # Boost Software License - Version 1.0. See the accompanying # # LICENSE file or # diff --git a/tools/release.sh b/tools/release.sh index a8a2d57..03bf1ce 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -14,10 +14,13 @@ if ! grep "### Version $CURR_VER (" README.md > /dev/null 2>&1; then fi echo "Release version $CURR_VER [y/n]?" +echo "This will commit and tag all changes, but will NOT add them." read -r GOON if [ "$GOON" = 'y' ] ; then git commit -m "Release v$CURR_VER" git tag -am "Release v$CURR_VER" "v$CURR_VER" - echo "Review the status and 'git push' to finish release. Do not forget to upload to PYPI either." + echo "Review the status and 'git push' to finish release." + echo "Do not forget to upload to PYPI:" + echo "python setup.py sdist && twine upload -s dist/gdspy-$CURR_VER.zip" fi