From 4053591f9ce16b363b23c3584d37288015da3550 Mon Sep 17 00:00:00 2001 From: kiarina Date: Sun, 9 Feb 2025 19:39:17 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E3=82=B0=E3=83=AD=E3=83=96=E3=83=91?= =?UTF-8?q?=E3=82=BF=E3=83=BC=E3=83=B3=E5=AF=BE=E5=BF=9C=E3=81=AE=E6=96=B0?= =?UTF-8?q?=E6=A9=9F=E8=83=BD=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 11 ++++++++++- README.md | 11 ++++++----- pydantic_config_builder/__init__.py | 2 +- pyproject.toml | 2 +- 4 files changed, 18 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 55658a5..8a79ed6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,16 @@ 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.1.0] - 2024-03-12 +## [0.2.0] - 2024-02-09 + +### Added +- Support for glob patterns in source file paths + - `*.yaml` matches all YAML files in current directory + - `**/*.yaml` matches all YAML files recursively in subdirectories + - Automatic deduplication of matched files + - Warning messages for patterns with no matches + +## [0.1.0] - 2024-02-09 ### Added - Initial release diff --git a/README.md b/README.md index e9e8b9a..fd5c1e3 100644 --- a/README.md +++ b/README.md @@ -25,13 +25,14 @@ Create a configuration file named `pydantic_config_builder.yml` in your project ```yaml # Keys are output file paths -# Values are lists of source files to merge +# Values are lists of source files to merge (glob patterns supported) default.yaml: - - base.yaml - - path/to/base.yaml + - base/*.yaml # All YAML files in base directory + - path/to/base.yaml # Specific file ~/path/to/config.yaml: - - default.yaml - - /path/to/overlay.yaml + - default.yaml # Use output of another configuration + - configs/**/*.yaml # All YAML files in configs and subdirectories + - /path/to/overlay-*.yaml # All overlay files in specific directory ``` Then run the builder: diff --git a/pydantic_config_builder/__init__.py b/pydantic_config_builder/__init__.py index 3ffc498..83b8385 100644 --- a/pydantic_config_builder/__init__.py +++ b/pydantic_config_builder/__init__.py @@ -3,4 +3,4 @@ A tool to build YAML configurations by merging multiple files """ -__version__ = "0.1.0" +__version__ = "0.2.0" diff --git a/pyproject.toml b/pyproject.toml index 9450fb2..f3cba1b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pydantic-config-builder" -version = "0.1.0" +version = "0.2.0" description = "A tool to build YAML configurations by merging multiple files" authors = ["kiarina "] license = "MIT"