Skip to content

Commit

Permalink
Release v0.3.1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
dormant-user committed Jan 5, 2025
1 parent d19de1d commit 73b6a70
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ PyArchitecture is a lightweight python module to get kernel information via OS s
![Platform][label-platform]

[![pypi][label-actions-pypi]][gha_pypi]
[![functional-tests][label-func-test-pypi]][gha_func_test]

[![Pypi][label-pypi]][pypi]
[![Pypi-format][label-pypi-format]][pypi-files]
Expand Down Expand Up @@ -90,15 +91,17 @@ pre-commit run --all-files

Licensed under the [MIT License][license]

[license]: https://github.com/thevickypedia/PyArchitecture/blob/master/LICENSE
[license]: https://github.com/thevickypedia/PyArchitecture/blob/main/LICENSE
[label-pypi-package]: https://img.shields.io/badge/Pypi%20Package-PyArchitecture-blue?style=for-the-badge&logo=Python
[label-pyversion]: https://img.shields.io/badge/python-3.10%20%7C%203.11-blue
[label-platform]: https://img.shields.io/badge/Platform-Linux|macOS|Windows-1f425f.svg
[label-actions-pypi]: https://github.com/thevickypedia/PyArchitecture/actions/workflows/python-publish.yaml/badge.svg
[label-func-test-pypi]: https://github.com/thevickypedia/PyArchitecture/actions/workflows/functional-tests.yaml/badge.svg
[label-pypi]: https://img.shields.io/pypi/v/PyArchitecture
[label-pypi-format]: https://img.shields.io/pypi/format/PyArchitecture
[label-pypi-status]: https://img.shields.io/pypi/status/PyArchitecture
[gha_pypi]: https://github.com/thevickypedia/PyArchitecture/actions/workflows/python-publish.yaml
[gha_func_test]: https://github.com/thevickypedia/PyArchitecture/actions/workflows/functional-tests.yaml
[pypi]: https://pypi.org/project/PyArchitecture
[pypi-files]: https://pypi.org/project/PyArchitecture/#files
[pypi-repo]: https://packaging.python.org/tutorials/packaging-projects/
Expand Down
2 changes: 1 addition & 1 deletion pyarchitecture/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from pyarchitecture import cpu, disks, gpu, memory

version = "0.3.0"
version = "0.3.1"


def all_components() -> Dict[str, Any]:
Expand Down
4 changes: 4 additions & 0 deletions release_notes.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Release Notes
=============

v0.3.1 (01/05/2025)
-------------------
- Include distinction for available vs free memory for Linux and macOS

v0.3.0 (01/05/2025)
-------------------
- Uses `shutil` to gather default library paths
Expand Down
5 changes: 3 additions & 2 deletions tests/functional.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import platform
from typing import Set, NoReturn
from typing import NoReturn, Set

import pyarchitecture

Expand All @@ -19,6 +19,7 @@ def assert_cpu() -> None | NoReturn:


def assert_memory(valid_keys: Set[str]) -> None | NoReturn:
"""Assert memory output."""
mem_info = pyarchitecture.memory.get_memory_info()
assert set(mem_info.keys()) == valid_keys, f"{set(mem_info.keys())} != {valid_keys}"
assert all(mem_info.values())
Expand All @@ -43,5 +44,5 @@ def main() -> None | NoReturn:
assert_memory(memory_keys)


if __name__ == '__main__':
if __name__ == "__main__":
main()

0 comments on commit 73b6a70

Please sign in to comment.