Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump monty from 2024.12.10 to 2025.1.9 #1727

Merged
merged 7 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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", ""),
pmrv marked this conversation as resolved.
Show resolved Hide resolved
"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
Loading