diff --git a/CHANGELOG.rst b/CHANGELOG.rst index c41ea694b..5a6637db9 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,37 @@ Changelog for python-chess ========================== +New in v0.31.3 +-------------- + +Bugfixes: + +* Custom castling rights assigned to `board.castling_rights` or castling rights + left over after `Board.set_board_fen()` were not correctly cleaned after + the first move. + +Changes: + +* Ignore up to one consecutive empty line between PGN headers. +* Added PGN Variant `From Position` as an alias for standard chess. +* `chess.pgn.FileExporter.result()` now returns the number of written + characters. +* `chess.engine` now avoids sending 0 for search limits, which some engines + misunderstand as no limit. +* `chess.engine` better handles null moves sent to the engine. +* `chess.engine` now gracefully handles `NULL` ponder moves and uppercase + moves received from UCI engines, which is technically invalid. + +New features: + +* Added `chess.pgn.GameNode.{clock, set_clock}()` to read and write + `[%clk ...]` **PGN annotations**. +* Added `chess.pgn.GameNode.{arrows, set_arrows}()` to read and write + `[%csl ...]` and `[%cal ...]` PGN annotations. +* Added `chess.pgn.GameNode.{eval, set_eval}()` to read and write + `[%eval ...]` PGN annotations. +* Added `SquareSet.ray(a, b)` and `SquareSet.between(a, b)`. + New in v0.31.2 -------------- diff --git a/chess/__init__.py b/chess/__init__.py index 88049eb75..adb6d22ba 100644 --- a/chess/__init__.py +++ b/chess/__init__.py @@ -24,7 +24,7 @@ __email__ = "niklas.fiekas@backscattering.de" -__version__ = "0.31.2" +__version__ = "0.31.3" import collections import copy diff --git a/setup.py b/setup.py index 2bce5cffd..5303473c2 100755 --- a/setup.py +++ b/setup.py @@ -34,6 +34,9 @@ end of 2018. Consider upgrading to Python 3. """)) +if sys.version_info < (3, 6): + raise ImportError("Since version 0.30.0, python-chess requires Python 3.6 or later.") + import chess