Skip to content

Commit

Permalink
Set ruamel.yaml version to 0.17.21 (#657)
Browse files Browse the repository at this point in the history
* Set ruamel.yaml version to 0.17.21
* Add max_version logic in read in requirements and update ruamel.yaml requirement to max_version
* Fix max_version logic

---------

Co-authored-by: Audrey Stott <audrey.stott@pawsey.org.au>
  • Loading branch information
audreystott and Audrey Stott committed Jul 3, 2023
1 parent 2a2e30c commit c407e02
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ def get_reqs(lookup=None, key="INSTALL_REQUIRES"):
dependency = module_name
else:
dependency = "%s>=%s" % (module_name, module_meta["min_version"])
elif "max_version" in module_meta:
if module_meta["max_version"] is None:
dependency = module_name
else:
dependency = "%s<=%s" % (module_name, module_meta["max_version"])
install_requires.append(dependency)
return install_requires

Expand Down
2 changes: 1 addition & 1 deletion shpc/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
("spython", {"min_version": "0.2.0"}),
("Jinja2", {"min_version": None}),
("jsonschema", {"min_version": None}),
("ruamel.yaml", {"min_version": None}),
("ruamel.yaml", {"max_version": "0.17.21"}),
("requests", {"min_version": None}),
)

Expand Down

0 comments on commit c407e02

Please sign in to comment.