Skip to content

Commit fc0fdcd

Browse files
update version number (#380)
* update version number, test with cmake 4.0, and a few warning fixes * update docs * update changelog --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent e070f32 commit fc0fdcd

File tree

5 files changed

+44
-3
lines changed

5 files changed

+44
-3
lines changed

.github/workflows/tests.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,30 +23,35 @@ jobs:
2323
uses: ./.github/actions/quick_cmake
2424
with:
2525
cmake-version: "3.7"
26+
args: "-DUNITS_ENABLE_TESTS=OFF"
2627
if: success() || failure()
2728

2829
- name: Check CMake 3.8
2930
uses: ./.github/actions/quick_cmake
3031
with:
3132
cmake-version: "3.8"
33+
args: "-DUNITS_ENABLE_TESTS=OFF"
3234
if: success() || failure()
3335

3436
- name: Check CMake 3.9
3537
uses: ./.github/actions/quick_cmake
3638
with:
3739
cmake-version: "3.9"
40+
args: "-DUNITS_ENABLE_TESTS=OFF"
3841
if: success() || failure()
3942

4043
- name: Check CMake 3.10
4144
uses: ./.github/actions/quick_cmake
4245
with:
4346
cmake-version: "3.10"
47+
args: "-DUNITS_ENABLE_TESTS=OFF"
4448
if: success() || failure()
4549

4650
- name: Check CMake 3.11 (full)
4751
uses: ./.github/actions/quick_cmake
4852
with:
4953
cmake-version: "3.11"
54+
args: "-DUNITS_ENABLE_TESTS=OFF"
5055
if: success() || failure()
5156

5257
cmake-config-2204:
@@ -59,6 +64,7 @@ jobs:
5964
uses: ./.github/actions/quick_cmake
6065
with:
6166
cmake-version: "3.12"
67+
args: "-DUNITS_ENABLE_TESTS=OFF"
6268
if: success() || failure()
6369

6470
- name: Check CMake 3.13
@@ -173,4 +179,10 @@ jobs:
173179
uses: ./.github/actions/quick_cmake
174180
with:
175181
cmake-version: "3.31"
182+
if: success() || failure()
183+
184+
- name: Check CMake 4.0
185+
uses: ./.github/actions/quick_cmake
186+
with:
187+
cmake-version: "4.0"
176188
if: success() || failure()

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,30 @@ All notable changes to this project after the 0.2.0 release will be documented i
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
66
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.13.0][] - 2025-04-05
9+
10+
Updated installation, add means of using external gtest, some bug fixes, and addition methods on the Python library classes.
11+
The python library is working to match with [quantity-dev](https://github.com/quantity-dev/metrology-apis) Library.
12+
13+
### Fixed
14+
15+
- Fix segmentation fault in python library when used with units shared library [#373][]
16+
- Fix issue when using user-specified namespace [#377][]
17+
18+
### Added
19+
20+
- Add additional methods for Python Dimension class, including copy, deepcopy, additional math operations and decompose method on Dimension class [#371][],[379][]
21+
- Added method of using installed GTest [#376][],[#378][]
22+
- Added SOVERSION for unix based shared libraries [#375][]
23+
24+
[#371]: https://github.com/LLNL/units/pull/371
25+
[#373]: https://github.com/LLNL/units/pull/373
26+
[#375]: https://github.com/LLNL/units/pull/375
27+
[#376]: https://github.com/LLNL/units/pull/376
28+
[#377]: https://github.com/LLNL/units/pull/377
29+
[#378]: https://github.com/LLNL/units/pull/378
30+
[#379]: https://github.com/LLNL/units/pull/379
31+
832
## [0.12.3][] - 2025-03-04
933

1034
Tweaks to python packaging, add beta dimension output, and start moving some commodities to the constexpr mappings
@@ -87,6 +111,7 @@ Python package release, documentation update, continued addition of new units an
87111
[#317]: https://github.com/LLNL/units/pull/317
88112
[#318]: https://github.com/LLNL/units/pull/318
89113
[#322]: https://github.com/LLNL/units/pull/322
114+
[#327]: https://github.com/LLNL/units/pull/327
90115
[#331]: https://github.com/LLNL/units/pull/331
91116
[#335]: https://github.com/LLNL/units/pull/335
92117
[#336]: https://github.com/LLNL/units/pull/336
@@ -183,6 +208,8 @@ A few user suggested tweaks, and support additional unit string conversions supp
183208
[0.10.2]: https://github.com/LLNL/units/releases/tag/v0.10.2
184209
[0.11.0]: https://github.com/LLNL/units/releases/tag/v0.11.0
185210
[0.12.0]: https://github.com/LLNL/units/releases/tag/v0.12.0
211+
[0.12.3]: https://github.com/LLNL/units/releases/tag/v0.12.3
212+
[0.13.0]: https://github.com/LLNL/units/releases/tag/v0.13.0
186213

187214
## [0.7.0][] - 2022-12-17
188215

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# most of the policies, the new version is better (hence the change). We don't use the
1010
# 3.0...3.17 syntax because of a bug in an older MSVC's built-in and modified CMake 3.11
1111
if(${CMAKE_VERSION} VERSION_GREATER 3.22)
12-
cmake_minimum_required(VERSION 3.22...3.31)
12+
cmake_minimum_required(VERSION 3.22...4.0)
1313
else()
1414
cmake_minimum_required(VERSION 3.0)
1515
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
@@ -23,7 +23,7 @@ endif()
2323
project(
2424
${UNITS_CMAKE_PROJECT_NAME}
2525
LANGUAGES C CXX
26-
VERSION 0.12.3
26+
VERSION 0.13.0
2727
)
2828
include(CMakeDependentOption)
2929
include(CTest)

CONTRIBUTORS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
- [Peter Steneteg](https://github.com/petersteneteg)
1717
- [Jan-Lukas Wynen](https://github.com/jl-wynen) - Support for multi-digit power strings
1818
- [Jiahao Wen](https://github.com/wkindling) - Fixes for cmake standard condition
19+
- [Sandro penguinpee](https://github.com/penguinpee) - using installed Gtest and help debugging seg fault and other suggestions for installation
20+
- [Mridul Seth](https://github.com/MridulS) - Bug fix when using alternate namespaces
1921

2022
## Used Libraries or Code
2123

python/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ A units library was needed to be able to represent units from a wide range of di
4747
3. Being able to associate a completely arbitrary unit given by users with a generic interface and support conversions between those user defined units and other units.
4848
4. The library has its origins in power systems so support for per-unit operations was also lacking in the alternatives.
4949

50-
The python wrapper around the library is mainly intended to be able to handle various string representations and easily handle conversions, along with some support for commodities and packaging.
50+
The python wrapper around the library is mainly intended to be able to handle various string representations and easily handle conversions, along with some support for commodities and packaging. As it is being developed the Python library will maintain compatibility with [quantity-dev](https://github.com/quantity-dev/metrology-apis).
5151

5252
### Basic use case
5353

0 commit comments

Comments
 (0)