Skip to content

Commit

Permalink
Support 3.13, add [ruamel] optional package dep
Browse files Browse the repository at this point in the history
  • Loading branch information
cblakkan committed Dec 28, 2024
1 parent ec646c5 commit 7f1a2f3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
packages=find_packages(),
include_package_data=True,
install_requires=["pyyaml"],
extras_requires={
'ruamel': ['ruamel.yaml']
},
python_requires=">=3.8",
entry_points={
"console_scripts": ["yamale=yamale.command_line:main"],
Expand All @@ -34,5 +37,6 @@
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
],
)
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[tox]
envlist = py38, py310
envlist = py38, py313

[gh-actions]
python =
3.8: py38
3.12: py312
3.13: py313

[testenv]
commands = py.test --cov yamale --cov-report term-missing yamale
Expand Down
2 changes: 1 addition & 1 deletion yamale/command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def _router(paths, schema_name, cpus, parser, strict=True):
def main():
parser = argparse.ArgumentParser(description="Validate yaml files.")
parser.add_argument(
"paths", metavar="PATHS", default=["./"], nargs="*", help="Paths to validate, either directories or files. Default is the current directory."
"paths", metavar="PATH", default=["./"], nargs="*", help="Paths to validate, either directories or files. Default is the current directory."
)
parser.add_argument("-V", "--version", action="version", version=__version__)
parser.add_argument("-s", "--schema", default="schema.yaml", help="filename of schema. Default is schema.yaml.")
Expand Down

0 comments on commit 7f1a2f3

Please sign in to comment.