Skip to content

Commit

Permalink
Update to YAtiML 0.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
LourensVeen committed Mar 17, 2024
1 parent 8ece935 commit 5c04b0e
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
python_requires='>=3.7, <4',
test_suite='tests',
install_requires=[
'ruamel.yaml<=0.17.21,!=0.17.5',
'yatiml>=0.10.0,<0.11.0'
'yatiml>=0.11.1,<0.12.0'
],
)
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def test_yaml8() -> str:
' keeps_state_for_next_use: helpful\n'
' micro2_fortran:\n'
' executable: bin/micro2\n'
' keeps_state_for_next_use: no\n'
' keeps_state_for_next_use: \'no\'\n'
'resources:\n'
' macro:\n'
' threads: 1\n'
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ deps =
flake8
pytest
pytest-cov
types-PyYAML

commands =
mypy
pytest
pytest {posargs}
flake8 ymmsl

[gh-actions]
Expand Down
2 changes: 1 addition & 1 deletion ymmsl/checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing import List, Optional, Union

from ruamel import yaml
import yaml
import yatiml


Expand Down
4 changes: 2 additions & 2 deletions ymmsl/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from typing import Dict # noqa: F401
from typing import Iterable, List, Optional, Union

import ruamel.yaml as yaml
import yaml
import yatiml

from ymmsl.identity import Identifier, Reference
Expand Down Expand Up @@ -308,5 +308,5 @@ def _yatiml_sweeten(cls, node: yatiml.Node) -> None:
node.set_attribute('multiplicity', items[0].get_value())

ports_node = node.get_attribute('ports').yaml_node
if len(ports_node.value) == 0:
if ports_node.tag == 'tag:yaml.org,2002:null':
node.remove_attribute('ports')
2 changes: 1 addition & 1 deletion ymmsl/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Dict, List, MutableMapping, Optional, Sequence, Union, cast)

import yatiml
from ruamel import yaml
import yaml

from ymmsl.checkpoint import Checkpoints
from ymmsl.document import Document
Expand Down
2 changes: 1 addition & 1 deletion ymmsl/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from pathlib import Path
from typing import cast, Dict, List, Optional, Union

from ruamel import yaml
import yaml
import yatiml

from ymmsl.identity import Reference
Expand Down

0 comments on commit 5c04b0e

Please sign in to comment.