Skip to content

Commit 3e0db56

Browse files
author
Liu Xue Yan
committed
Merge branch 'release/2.2'
2 parents c5be2b7 + 7b144ac commit 3e0db56

File tree

8 files changed

+43
-16
lines changed

8 files changed

+43
-16
lines changed

.dockerignore

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.git/
2+
3+
**/__pycache__
4+
*.egg-info
5+
*.egg/
6+
*.pyc
7+
8+
build
9+
dist
10+
docs/_build
11+
12+
.mypy_cache/
13+
.ruff_cache
14+
15+
*.swp
16+
17+
html/*
18+
19+
**/Dockerfile
20+
**/Dockerfile.*
21+
**/*.Dockerfile
22+
**/docker-compose.*
23+
**/*.docker-compose.*

.github/workflows/python-package.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
runs-on: ubuntu-latest
3333
strategy:
3434
matrix:
35-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
35+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
3636
steps:
3737
- name: Checkout
3838
uses: actions/checkout@v4

.pre-commit-config.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.6.0
3+
rev: v5.0.0
44
hooks:
55
- id: check-case-conflict
66
- id: check-added-large-files
@@ -20,7 +20,7 @@ repos:
2020
- id: check-docstring-first
2121

2222
- repo: https://github.com/astral-sh/ruff-pre-commit
23-
rev: v0.6.5
23+
rev: v0.7.0
2424
hooks:
2525
- id: ruff # Run the linter.
2626
types_or: [python, pyi, jupyter]
@@ -29,14 +29,14 @@ repos:
2929
types_or: [python, pyi, jupyter]
3030

3131
- repo: https://github.com/pre-commit/mirrors-mypy
32-
rev: "v1.11.2"
32+
rev: "v1.13.0"
3333
hooks:
3434
- id: mypy
3535
args: [--ignore-missing-imports, --config-file, .mypy.ini]
3636
additional_dependencies: [types-PyYAML]
3737

3838
- repo: https://github.com/python-jsonschema/check-jsonschema
39-
rev: "0.29.2"
39+
rev: "0.29.4"
4040
hooks:
4141
- id: check-github-workflows
4242
- id: check-readthedocs

CHANGELOG.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
# CHANGELOG
22

3-
## 2.2a1
3+
## 2.2
44

5-
> 📅 **Date** 2024-9-22
5+
> 📅 **Date** 2024-11-9
66
77
- New:
88

9-
- Add `flatten` argument. See [#46](https://github.com/tanbro/pyyaml-include/issues/46) for detail
9+
- Add a `flatten` argument. See [#46](https://github.com/tanbro/pyyaml-include/issues/46) for detail
1010

1111
- Bug fix:
1212

1313
- fix issue if glob_params is not int. See [#48](https://github.com/tanbro/pyyaml-include/pull/48) for detail
1414

15+
- Test:
16+
17+
- PyPy 3.9 and 3.10 in docker compose based unit-test
18+
1519
- Other update and improvement
1620

1721
## 2.1

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ In version `2.0`, [fsspec][] was introduced. With it, we can even include files
1919
pip install "pyyaml-include"
2020
```
2121

22-
Since we are using [fsspec][] to open including files from v2.0, an installation can be performed like below, if want to open remote files:
22+
Because [fsspec][] was introduced to open the including files since v2.0, an installation can be performed like below, if want to open remote files:
2323

2424
- for files on website:
2525

@@ -63,7 +63,7 @@ Consider we have such [YAML][] files:
6363

6464
To include `1.yml`, `2.yml` in `0.yml`, we shall:
6565

66-
1. Register a `yaml_include.Constructor` to [PyYAML][]'s loader class, with `!inc` as it's tag:
66+
1. Register a `yaml_include.Constructor` to [PyYAML][]'s loader class, with `!inc`(or any other tags start with `!` character) as it's tag:
6767

6868
```python
6969
import yaml
@@ -73,14 +73,14 @@ To include `1.yml`, `2.yml` in `0.yml`, we shall:
7373
yaml.add_constructor("!inc", yaml_include.Constructor(base_dir='/your/conf/dir'))
7474
```
7575

76-
1. Write `!inc` tags in `0.yaml`:
76+
1. Use `!inc` tag(s) in `0.yaml`:
7777

7878
```yaml
7979
file1: !inc include.d/1.yml
8080
file2: !inc include.d/2.yml
8181
```
8282

83-
1. Load it
83+
1. Load `0.yaml` in your Python program
8484

8585
```python
8686
with open('0.yml') as f:
@@ -91,7 +91,7 @@ To include `1.yml`, `2.yml` in `0.yml`, we shall:
9191
we'll get:
9292

9393
```python
94-
{'file1':{'name':'1'},'file2':{'name':'2'}}
94+
{'file1': {'name': '1'}, 'file2': {'name': '2'}}
9595
```
9696

9797
1. (optional) the constructor can be unregistered:

docs/README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ How to build docs
2727

2828
.. code:: sh
2929
30-
make -C docs/make html
30+
make -C docs html
3131
3232
* Windows:
3333

tests/docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: pyyaml_include-tests
22

33
services:
44
unittest:
5-
image: quay.io/pypa/manylinux_2_28_x86_64:latest
5+
image: quay.io/pypa/manylinux_2_28_x86_64
66
volumes:
77
- type: bind
88
source: ..

tests/run-compose-test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export PIP_DISABLE_PIP_VERSION_CHECK=1
55
export PIP_ROOT_USER_ACTION=ignore
66
export PIP_NO_WARN_SCRIPT_LOCATION=1
77

8-
PYTHON_LIST=(python3.8 python3.9 python3.10 python3.11 python3.12)
8+
PYTHON_LIST=(python3.8 python3.9 python3.10 python3.11 python3.12 python3.13 pypy3.9 pypy3.10)
99
for PYTHON in ${PYTHON_LIST[@]}
1010
do
1111
echo

0 commit comments

Comments
 (0)