From 825985cff4556001ef33e1972adfa324367eae45 Mon Sep 17 00:00:00 2001 From: Arthur Wesley <50496947+ArthurTGW@users.noreply.github.com> Date: Sat, 14 Aug 2021 19:04:51 -0700 Subject: [PATCH] bump version to 0.1.5 --- docs/conf.py | 3 ++- setup.py | 2 +- tests/test_board.py | 12 ++++++------ version.txt | 1 + 4 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 version.txt diff --git a/docs/conf.py b/docs/conf.py index 4ceab74..2eba46a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -22,7 +22,8 @@ author = 'Arthur Wesley' # The full version, including alpha/beta/rc tags -release = '0.1.4' +with open("version.txt") as file: + release = file.read().strip() # -- General configuration --------------------------------------------------- diff --git a/setup.py b/setup.py index 013f599..057565a 100644 --- a/setup.py +++ b/setup.py @@ -132,7 +132,7 @@ def read_file(filename): setup( name="sente", - version="0.1.4", + version=read_file("version.txt"), author="Arthur Wesley", license="MIT", url="https://github.com/atw1020/sente", diff --git a/tests/test_board.py b/tests/test_board.py index 3ff266a..98a2164 100644 --- a/tests/test_board.py +++ b/tests/test_board.py @@ -76,7 +76,7 @@ def test__str__(self): board.play(Move(0, 18, stone.BLACK)) board.play(Move(15, 3, stone.WHITE)) - correct = " 1 . . . . . . . . . . . . . . . . . . ⚫  \n" \ + correct = " 1 . . . . . . . . . . . . . . . . . . ⚫  \n" \ " 2 . . . . . . . . . . . . . . . . . . . \n" \ " 3 . . . . . . . . . . . . . . . . . . . \n" \ " 4 . . . * . . . . . * . . . . . * . . . \n" \ @@ -91,7 +91,7 @@ def test__str__(self): "13 . . . . . . . . . . . . . . . . . . . \n" \ "14 . . . . . . . . . . . . . . . . . . . \n" \ "15 . . . . . . . . . . . . . . . . . . . \n" \ - "16 . . . ⚪  . . . . . * . . . . . * . . . \n" \ + "16 . . . ⚪  . . . . . * . . . . . * . . . \n" \ "17 . . . . . . . . . . . . . . . . . . . \n" \ "18 . . . . . . . . . . . . . . . . . . . \n" \ "19 . . . . . . . . . . . . . . . . . . . \n" \ @@ -170,7 +170,7 @@ def test__str__(self): board.play(Move(0, 0, stone.BLACK)) board.play(Move(8, 3, stone.WHITE)) - correct = " 1 ⚫  . . . . . . . . . . . . \n" \ + correct = " 1 ⚫  . . . . . . . . . . . . \n" \ " 2 . . . . . . . . . . . . . \n" \ " 3 . . . . . . . . . . . . . \n" \ " 4 . . . * . . . . . * . . . \n" \ @@ -178,7 +178,7 @@ def test__str__(self): " 6 . . . . . . . . . . . . . \n" \ " 7 . . . . . . * . . . . . . \n" \ " 8 . . . . . . . . . . . . . \n" \ - " 9 . . . ⚪  . . . . . . . . . \n" \ + " 9 . . . ⚪  . . . . . . . . . \n" \ "10 . . . * . . . . . * . . . \n" \ "11 . . . . . . . . . . . . . \n" \ "12 . . . . . . . . . . . . . \n" \ @@ -258,7 +258,7 @@ def test__str__(self): board.play(Move(0, 0, stone.BLACK)) board.play(Move(8, 3, stone.WHITE)) - correct = " 1 ⚫  . . . . . . . . \n" \ + correct = " 1 ⚫  . . . . . . . . \n" \ " 2 . . . . . . . . . \n" \ " 3 . . * . . . * . . \n" \ " 4 . . . . . . . . . \n" \ @@ -266,7 +266,7 @@ def test__str__(self): " 6 . . . . . . . . . \n" \ " 7 . . * . . . * . . \n" \ " 8 . . . . . . . . . \n" \ - " 9 . . . ⚪  . . . . . \n" \ + " 9 . . . ⚪  . . . . . \n" \ " A B C D E F G H J\n" """if platform == "win32": diff --git a/version.txt b/version.txt new file mode 100644 index 0000000..9faa1b7 --- /dev/null +++ b/version.txt @@ -0,0 +1 @@ +0.1.5