From b7ae747089de0c2eba7e52684b32ec7ca92c2822 Mon Sep 17 00:00:00 2001 From: Cordell Blakkan Date: Tue, 5 Mar 2024 11:58:40 -0500 Subject: [PATCH] Prep for 5.0.0; Run tests on 3.8, 3.12 --- .github/workflows/run-tests.yml | 2 +- .gitignore | 2 +- README.md | 2 +- requirements.txt | 2 +- tox.ini | 6 +++--- yamale/VERSION | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 7fc4844..c18b85c 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.8, 3.10] + python-version: ["3.8", "3.12"] steps: - uses: actions/checkout@v2 diff --git a/.gitignore b/.gitignore index 64feae4..3954662 100644 --- a/.gitignore +++ b/.gitignore @@ -32,7 +32,7 @@ pip-delete-this-directory.txt # Unit test / coverage reports .tox/ xunit/ -.coverage +.coverage* .cache nosetests.xml coverage.xml diff --git a/README.md b/README.md index b16e89a..4af77ce 100644 --- a/README.md +++ b/README.md @@ -420,7 +420,7 @@ validator. - keywords: - `allow_empty`: Allow the subset to be empty (and is, therefore, also optional). This overrides the `required` flag. - + Examples: - `subset(int(), str())`: Validators against an integer, a string, or a list of either. - `subset(int(), str(), allow_empty=True)`: Same as above, but allows the empty set and makes the subset optional. diff --git a/requirements.txt b/requirements.txt index 534bbce..ed71f87 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -tox==3.15.2 +tox==4.13.0 diff --git a/tox.ini b/tox.ini index f7917e3..fff02c0 100644 --- a/tox.ini +++ b/tox.ini @@ -4,11 +4,11 @@ envlist = py38, py310 [gh-actions] python = 3.8: py38 - 3.10: py310 + 3.12: py312 [testenv] commands = py.test --cov yamale --cov-report term-missing yamale deps = ruamel.yaml<1 - pytest<6 - pytest-cov<3 + pytest<7 + pytest-cov<4 diff --git a/yamale/VERSION b/yamale/VERSION index c5106e6..0062ac9 100644 --- a/yamale/VERSION +++ b/yamale/VERSION @@ -1 +1 @@ -4.0.4 +5.0.0