diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b8d8528..a821c0cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ 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/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.16.2](https://github.com/quartiq/miniconf/compare/v0.16.1...v0.16.2) - 2024-10-17 + +### Added + +* `Indices`/`Path` usability improvements avoiding needless borrowing + ## [0.16.1](https://github.com/quartiq/miniconf/compare/v0.16.0...v0.16.1) - 2024-10-15 ### Added diff --git a/flake.lock b/flake.lock new file mode 100644 index 00000000..a44ae23f --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1728979988, + "narHash": "sha256-GBJRnbFLDg0y7ridWJHAP4Nn7oss50/VNgqoXaf/RVk=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "7881fbfd2e3ed1dfa315fca889b2cfd94be39337", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 00000000..4f0b343a --- /dev/null +++ b/flake.nix @@ -0,0 +1,47 @@ +{ + description = "Miniconf"; + inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; + outputs = + { self, nixpkgs }: + let + pkgs = import nixpkgs { system = "x86_64-linux"; }; + aiomqtt22 = pkgs.python3Packages.aiomqtt.overrideAttrs rec { + version = "2.2.0"; + src = pkgs.fetchFromGitHub { + owner = "sbtinstruments"; + repo = "aiomqtt"; + rev = "refs/tags/v${version}"; + hash = "sha256-Sn9wGN93g61tPxuUZbGuElBXqnMEzJilfl3uvnKdIG0="; + }; + propagatedBuildInputs = [ + pkgs.python3Packages.paho-mqtt_2 + pkgs.python3Packages.typing-extensions + ]; + }; + miniconf-mqtt-py = pkgs.python3Packages.buildPythonPackage { + pname = "miniconf"; + version = "0.16.0"; + src = self + "/py/miniconf-mqtt"; + format = "pyproject"; + buildInputs = [ + pkgs.python3Packages.setuptools + ]; + propagatedBuildInputs = [ + # pkgs.python3Packages.aiomqtt + aiomqtt22 + pkgs.python3Packages.typing-extensions + ]; + # checkPhase = "python -m miniconf"; + }; + in + { + packages.x86_64-linux = { + inherit miniconf-mqtt-py aiomqtt22; + default = miniconf-mqtt-py; + }; + devShells.x86_64-linux.default = pkgs.mkShellNoCC { + name = "miniconf-dev-shell"; + packages = [ miniconf-mqtt-py ]; + }; + }; +} diff --git a/miniconf/Cargo.toml b/miniconf/Cargo.toml index 229de70c..e1ff01c7 100644 --- a/miniconf/Cargo.toml +++ b/miniconf/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "miniconf" # Sync all crate versions and the py client -version = "0.16.1" +version = "0.16.2" authors = [ "James Irwin ", "Ryan Summers ", diff --git a/miniconf_mqtt/Cargo.toml b/miniconf_mqtt/Cargo.toml index 1c6ed772..9ad0c825 100644 --- a/miniconf_mqtt/Cargo.toml +++ b/miniconf_mqtt/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "miniconf_mqtt" -version = "0.16.0" +version = "0.16.2" authors = ["James Irwin ", "Ryan Summers ", "Robert Jördens "] edition = "2021" license = "MIT" @@ -12,7 +12,7 @@ categories = ["no-std", "config", "rust-patterns", "parsing"] [lib] [dependencies] -miniconf = { version = "0.16.0", features = ["json-core"], default-features = false, path = "../miniconf" } +miniconf = { version = "0.16.2", features = ["json-core"], default-features = false, path = "../miniconf" } minimq = "0.9.0" smlang = "0.8" embedded-io = "0.6"