From 11074b4e8420e79e86e09d2f7c7f76563ccab6a2 Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Sun, 7 Jun 2020 09:59:31 -0600 Subject: [PATCH] Update CHANGELOG for v0.10.3 --- CHANGELOG.rst | 10 +++++++++- cicd/custom_style_check.py | 13 +++++++++++++ sublime-music.metainfo.xml | 1 + sublime/__init__.py | 2 +- 4 files changed, 24 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 5bb80d9..9b4e037 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,9 +1,17 @@ -v0.10.2 +v0.10.3 ======= .. TODO in next release: .. * A man page has been added. Contributed by @baldurmen. +This is a hotfix release. I forgot to add the Subsonic logo resources to +``setup.py``. All of the interesting updates happened in `v0.10.2`_. + +.. _v0.10.2: https://gitlab.com/sumner/sublime-music/-/releases/v0.10.2 + +v0.10.2 +======= + .. note:: This version does not have a Flatpak due to issues getting Python 3.8 working diff --git a/cicd/custom_style_check.py b/cicd/custom_style_check.py index 6e97fba..788d6c4 100755 --- a/cicd/custom_style_check.py +++ b/cicd/custom_style_check.py @@ -51,4 +51,17 @@ for path in Path("sublime").glob("**/*.py"): valid &= check_file(path) print() # noqa: T001 +""" +Checks that the version in the CHANGELOG is the same as the version in ``__init__.py``. +""" +with open(Path("sublime/__init__.py")) as f: + for line in f: + if line.startswith("__version__"): + version = eval(line.split()[-1]) + break + +with open(Path("CHANGELOG.rst")) as f: + assert f.readline().strip() == f"v{version}", "Version mismatch" + + sys.exit(0 if valid else 1) diff --git a/sublime-music.metainfo.xml b/sublime-music.metainfo.xml index 40e41c1..2f61488 100644 --- a/sublime-music.metainfo.xml +++ b/sublime-music.metainfo.xml @@ -78,5 +78,6 @@ + diff --git a/sublime/__init__.py b/sublime/__init__.py index 17c1a62..b2385cb 100644 --- a/sublime/__init__.py +++ b/sublime/__init__.py @@ -1 +1 @@ -__version__ = "0.10.2" +__version__ = "0.10.3"