diff --git a/CHANGELOG.md b/CHANGELOG.md index 97d3a56..e0e1286 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,18 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) (+ the Migration Guide section), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +# [2.5.0] - 31.10.2024 + +- Tooling overhaul to make the development process easier and fix doc building issues +- A bunch of quality of life improvements for the GUI. + You can now use shortcuts (o, p, h, b, and f) to activate the matplib tools for zooming, panning, home, back, and forward. + Once zoomed in, you can use the scrollwheel to scroll along the x-axis. + The first section is also activated by default now, so you can start labeling right away. +- Updated minimal versions of dependencies. Notable: pandas >=2.0, python >=3.9 + # [2.4.0] - 26.05.2023 -- Tooling overhal to make the development process easier and fix doc building issues +- Tooling overhaul to make the development process easier and fix doc building issues - Changed some ValueError to TypeError # [2.3.1] - 17.10.2022 diff --git a/_tasks.py b/_tasks.py index a6fe345..8459498 100644 --- a/_tasks.py +++ b/_tasks.py @@ -19,7 +19,7 @@ def task_docs() -> None: subprocess.run(["make", "-C", HERE / "docs", "html"], shell=False, check=True) -def update_version_strings(file_path, new_version) -> None: +def update_version_strings(file_path, new_version): # taken from: # https://stackoverflow.com/questions/57108712/replace-updated-version-strings-in-files-via-python version_regex = re.compile(r"(^_*?version_*?\s*=\s*\")(\d+\.\d+\.\d+-?\S*)\"", re.M) @@ -36,7 +36,7 @@ def update_version_strings(file_path, new_version) -> None: f.truncate() -def update_version(version) -> None: +def update_version(version): subprocess.run(["poetry", "version", version], shell=False, check=True) new_version = ( subprocess.run(["poetry", "version"], shell=False, check=True, capture_output=True) @@ -47,5 +47,5 @@ def update_version(version) -> None: update_version_strings(HERE.joinpath("imucal/__init__.py"), new_version) -def task_update_version() -> None: +def task_update_version(): update_version(sys.argv[1]) diff --git a/imucal/__init__.py b/imucal/__init__.py index 75bfcb1..d4528c0 100644 --- a/imucal/__init__.py +++ b/imucal/__init__.py @@ -11,7 +11,7 @@ ) from imucal.ferraris_calibration_info import FerrarisCalibrationInfo, TurntableCalibrationInfo -__version__ = "2.4.0" +__version__ = "2.6.0" __all__ = [ "CalibrationInfo", diff --git a/pyproject.toml b/pyproject.toml index 87edb94..3b9113e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "imucal" -version = "2.4.0" +version = "2.6.0" description = "A Python library to calibrate 6 DOF IMUs" authors = [ "Arne Küderle ", @@ -59,7 +59,7 @@ ci_check = { sequence = ["_check_format", "_lint_ci"], help = "Check all potenti test = { cmd = "pytest tests --cov=imucal --cov-report=term-missing --cov-report=xml", help = "Run Pytest with coverage." } docs = { "script" = "_tasks:task_docs()", help = "Build the html docs using Sphinx." } docs_preview = { cmd = "python -m http.server --directory docs/_build/html", help = "Preview the built html docs." } -bump_version = { "script" = "_tasks:task_update_version()" } +version = { script = "_tasks:task_update_version()", help="Bump the version number in all relevant files."} [build-system] requires = ["poetry-core>=1.0.0"]