Skip to content

Commit

Permalink
Merge pull request #1727 from pyiron/dependabot/pip/monty-2025.1.9
Browse files Browse the repository at this point in the history
Bump monty from 2024.12.10 to 2025.1.9
  • Loading branch information
jan-janssen authored Jan 21, 2025
2 parents ee61bed + 9316aee commit 0c56578
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .ci_support/environment-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
- h5io_browser =0.1.6
- h5py =3.12.1
- jinja2 =3.1.5
- monty =2024.12.10
- monty =2025.1.9
- numpy =2.2.2
- pandas =2.2.3
- pint =0.24.4
Expand Down
2 changes: 1 addition & 1 deletion .ci_support/environment-mini.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dependencies:
- cloudpickle =3.1.1
- h5io_browser =0.1.6
- h5py =3.12.1
- monty =2024.12.10
- monty =2025.1.9
- numpy =2.2.2
- pandas =2.2.3
- psutil =6.1.1
Expand Down
2 changes: 1 addition & 1 deletion .ci_support/environment-old.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dependencies:
- h5io_browser =0.0.14
- h5py =3.6.0
- jinja2 =2.11.3
- monty =2021.3.3
- monty =2025.1.3
- numpy =1.23.5
- pandas =2.0.0
- pint =0.18
Expand Down
2 changes: 1 addition & 1 deletion .ci_support/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies:
- h5io_browser =0.1.6
- h5py =3.12.1
- jinja2 =3.1.5
- monty =2024.12.10
- monty =2025.1.9
- numpy =2.2.2
- pandas =2.2.3
- pint =0.24.4
Expand Down
2 changes: 1 addition & 1 deletion binder/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dependencies:
- h5io_browser =0.1.6
- h5py =3.12.1
- jinja2 =3.1.5
- monty =2024.12.10
- monty =2025.1.9
- numpy =2.2.2
- pandas =2.2.3
- pint =0.24.4
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies = [
"h5io_browser==0.1.6",
"h5py==3.12.1",
"numpy==2.2.2",
"monty==2024.12.10",
"monty==2025.1.9",
"pandas==2.2.3",
"psutil==6.1.1",
"pyfileindex==0.0.33",
Expand Down
9 changes: 6 additions & 3 deletions tests/unit/job/test_genericJob.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def test_compress_file_list(self):
os.makedirs(ham.working_directory, exist_ok=True)
for file in file_lst:
with open(os.path.join(ham.working_directory, file), "w") as f:
f.writelines(["content: " + file])
f.writelines(["content: " + file + "\n"])
for file in file_lst:
self.assertTrue(file in ham.files.list())
for file in file_lst:
Expand All @@ -115,7 +115,10 @@ def test_compress_file_list(self):
)
with contextlib.redirect_stdout(io.StringIO(newline=os.linesep)) as f:
ham.files.file_to_compress.tail()
self.assertEqual(f.getvalue().replace("\r", ""), "content: file_to_compress\n")
self.assertEqual(
f.getvalue().replace("\r", "").replace("\n", ""),
"content: file_to_compress",
)
ham.remove()

def test_job_name(self):
Expand Down Expand Up @@ -762,7 +765,7 @@ def test_tail(self):
job.decompress()
content = ["Content", "More", "Lines"]
with open(os.path.join(job.working_directory, "test_file"), "w") as f:
f.write(os.linesep.join(content))
f.write(os.linesep.join(content) + "\n")

for i in range(len(content)):
with self.subTest(i=i):
Expand Down

0 comments on commit 0c56578

Please sign in to comment.