Skip to content

Commit

Permalink
resources-fix-2.0.2 (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
maddenp-noaa authored Mar 21, 2024
1 parent f5e5394 commit a09747b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion recipe/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
"pyyaml =6.0.*"
]
},
"version": "2.0.1"
"version": "2.0.2"
}
4 changes: 2 additions & 2 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package:
name: uwtools
version: 2.0.1
version: 2.0.2
source:
path: ../src
build:
include_recipe: false
noarch: python
number: 0 # <= always reset to 0 when version changes
requirements:
host:
build:
- pip
run:
- f90nml 1.4.*
Expand Down
8 changes: 2 additions & 6 deletions recipe/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@
cli() {
msg Testing CLI program
(
set -eu
clis=( uw )
for x in ${clis[*]}; do
which $x
$x --help &>/dev/null
done
set -eux
uw --help >/dev/null
)
msg OK
}
Expand Down
1 change: 1 addition & 0 deletions src/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
graft uwtools/resources/
1 change: 1 addition & 0 deletions src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

kwargs = {
"entry_points": {"console_scripts": ["uw = %s.cli:main" % name_py]},
"include_package_data": True,
"name": name_conda,
"packages": find_packages(exclude=["%s.tests" % name_py], include=[name_py, "%s.*" % name_py]),
"version": meta["version"],
Expand Down
3 changes: 1 addition & 2 deletions src/uwtools/utils/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ def __getattr__(self, attr: str) -> Any:

def __iter__(self):
self._reset()
for line in self._stringio.read().split("\n"):
yield line
yield from self._stringio.read().split("\n")

def _reset(self) -> None:
self._stringio = StringIO(self._stdin)
Expand Down

0 comments on commit a09747b

Please sign in to comment.