Skip to content

Commit

Permalink
Version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
AKuederle committed Oct 31, 2024
1 parent 078234e commit f79212c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions _tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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])
2 changes: 1 addition & 1 deletion imucal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
)
from imucal.ferraris_calibration_info import FerrarisCalibrationInfo, TurntableCalibrationInfo

__version__ = "2.4.0"
__version__ = "2.6.0"

__all__ = [
"CalibrationInfo",
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
Expand Down Expand Up @@ -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"]
Expand Down

0 comments on commit f79212c

Please sign in to comment.