Skip to content

Commit 48e7c98

Browse files
committed
fix cibuildwheel: No build identifiers selected: BuildSelector(build_config='cp39-*', skip_config='*musllinux*', requires_python=<SpecifierSet('>=3.10')>, prerelease_pythons=False)
1 parent c469dd8 commit 48e7c98

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
strategy:
4646
matrix:
4747
os: [ubuntu-latest, macos-14, windows-latest]
48-
python-version: ["39", "310", "311", "312"]
48+
python-version: ["310", "311", "312"]
4949
runs-on: ${{ matrix.os }}
5050
steps:
5151
- name: Check out repo

src/pymatgen/io/abinit/pseudos.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,11 @@ class Pseudo(MSONable, abc.ABC):
9292
"""
9393

9494
@classmethod
95-
def as_pseudo(cls, obj):
96-
"""
97-
Convert obj into a pseudo. Accepts:
95+
def as_pseudo(cls, obj: Self | str) -> Self:
96+
"""Convert obj into a Pseudo.
9897
99-
* Pseudo object.
100-
* string defining a valid path.
98+
Args:
99+
obj (str | Pseudo): Path to the pseudo file or a Pseudo object.
101100
"""
102101
return obj if isinstance(obj, cls) else cls.from_file(obj)
103102

@@ -227,7 +226,7 @@ def compute_md5(self):
227226
text = file.read()
228227
# usedforsecurity=False needed in FIPS mode (Federal Information Processing Standards)
229228
# https://github.com/materialsproject/pymatgen/issues/2804
230-
md5 = hashlib.new("md5", usedforsecurity=False) # hashlib.md5(usedforsecurity=False) is py39+
229+
md5 = hashlib.md5(usedforsecurity=False)
231230
md5.update(text.encode("utf-8"))
232231
return md5.hexdigest()
233232

src/pymatgen/io/cp2k/inputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2327,7 +2327,7 @@ def get_hash(self) -> str:
23272327
"""Get a hash of this object."""
23282328
# usedforsecurity=False needed in FIPS mode (Federal Information Processing Standards)
23292329
# https://github.com/materialsproject/pymatgen/issues/2804
2330-
md5 = hashlib.new("md5", usedforsecurity=False) # hashlib.md5(usedforsecurity=False) is py39+
2330+
md5 = hashlib.md5(usedforsecurity=False)
23312331
md5.update(self.get_str().lower().encode("utf-8"))
23322332
return md5.hexdigest()
23332333

src/pymatgen/io/vasp/inputs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2028,7 +2028,7 @@ def md5_computed_file_hash(self) -> str:
20282028
"""MD5 hash of the entire PotcarSingle."""
20292029
# usedforsecurity=False needed in FIPS mode (Federal Information Processing Standards)
20302030
# https://github.com/materialsproject/pymatgen/issues/2804
2031-
md5 = hashlib.new("md5", usedforsecurity=False) # hashlib.md5(usedforsecurity=False) is py39+
2031+
md5 = hashlib.md5(usedforsecurity=False)
20322032
md5.update(self.data.encode("utf-8"))
20332033
return md5.hexdigest()
20342034

@@ -2064,7 +2064,7 @@ def md5_header_hash(self) -> str:
20642064
self.hash_str = hash_str
20652065
# usedforsecurity=False needed in FIPS mode (Federal Information Processing Standards)
20662066
# https://github.com/materialsproject/pymatgen/issues/2804
2067-
md5 = hashlib.new("md5", usedforsecurity=False) # hashlib.md5(usedforsecurity=False) is py39+
2067+
md5 = hashlib.md5(usedforsecurity=False)
20682068
md5.update(hash_str.lower().encode("utf-8"))
20692069
return md5.hexdigest()
20702070

0 commit comments

Comments
 (0)