Skip to content

Commit

Permalink
Prepare 0.31.3
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Jul 18, 2020
1 parent a608bc4 commit 50d2e2f
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
31 changes: 31 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -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
--------------

Expand Down
2 changes: 1 addition & 1 deletion chess/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

__email__ = "[email protected]"

__version__ = "0.31.2"
__version__ = "0.31.3"

import collections
import copy
Expand Down
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 50d2e2f

Please sign in to comment.