-
Couldn't load subscription status.
- Fork 923
Python 3.14 support #4516
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
base: master
Are you sure you want to change the base?
Python 3.14 support #4516
Changes from all commits
6ee8840
c574301
f2424fd
a9ff0be
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,6 +49,7 @@ classifiers = [ | |
| "Programming Language :: Python :: 3.11", | ||
| "Programming Language :: Python :: 3.12", | ||
| "Programming Language :: Python :: 3.13", | ||
| "Programming Language :: Python :: 3.14", | ||
| "Topic :: Scientific/Engineering :: Chemistry", | ||
| "Topic :: Scientific/Engineering :: Information Analysis", | ||
| "Topic :: Scientific/Engineering :: Physics", | ||
|
|
@@ -100,7 +101,7 @@ matcalc = [ | |
| "matgl>=1.2.7; python_version<'3.13'", | ||
| ] | ||
| mlp = ["matgl>=1.2.7 ; python_version<'3.13'"] | ||
| numba = ["numba>=0.55"] | ||
| numba = ["numba>=0.55; python_version<'3.14'"] | ||
| numpy-v1 = ["numpy>=1.25.0,<2"] # Test NP1 on Windows (quite buggy ATM) | ||
| optional = [ | ||
| "pymatgen[abinit,ase,matcalc,mlp,tblite,zeopp]", | ||
|
|
@@ -112,7 +113,7 @@ optional = [ | |
| "f90nml>=1.1.2", | ||
| "galore>=0.6.1", | ||
| "h5py>=3.11.0", | ||
| "hiphive>=1.3.1", | ||
| "hiphive>=1.3.1; python_version<'3.14'", | ||
| "jarvis-tools>=2020.7.14", | ||
| "phonopy>=2.33.3", | ||
| "seekpath>=2.0.1", | ||
|
|
@@ -123,7 +124,7 @@ symmetry = ["moyopy[interface]>=0.3", "spglib>=2.5"] | |
| # tblite only support Python 3.12+ through conda-forge | ||
| # https://github.com/tblite/tblite/issues/175 | ||
| tblite = ["tblite[ase]>=0.3.0; platform_system=='Linux' and python_version<'3.12'"] | ||
| vis = ["vtk>=6.0.0"] | ||
| vis = ["vtk>=6.0.0; python_version<'3.14'"] | ||
| zeopp = ["pyzeo; platform_system != 'Windows'"] # Note: requires Voro++ and Zeo++ to be installed | ||
|
|
||
| [project.scripts] | ||
|
|
@@ -164,10 +165,6 @@ include = ["pymatgen", "pymatgen.*"] | |
| "pymatgen.io.lammps" = ["CoeffsDataType.yaml", "templates/*.template"] | ||
| "pymatgen.symmetry" = ["*.json", "*.sqlite", "*.yaml"] | ||
|
|
||
| [tool.pdm.dev-dependencies] | ||
| lint = ["mypy>=1.10.0", "pre-commit>=3.7.1", "ruff>=0.4.9"] | ||
| test = ["pytest-cov>=5.0.0", "pytest-split>=0.9.0", "pytest>=8.2.2","pytest-xdist>=3.0.0"] | ||
|
|
||
| [tool.cibuildwheel.linux] | ||
| archs = ["auto64"] | ||
| skip = ["*musllinux*"] | ||
|
|
@@ -261,7 +258,7 @@ docstring-code-format = true | |
| addopts = "-n auto --durations=30 --quiet -r xXs --color=yes --import-mode=importlib" | ||
| filterwarnings = [ | ||
| # NOTE: the LAST matching option would be used | ||
| "ignore::UserWarning", # Ignore UserWarning | ||
| "ignore::UserWarning", | ||
| ] | ||
|
|
||
| [tool.coverage.run] | ||
|
|
@@ -277,12 +274,7 @@ omit = [ | |
| [tool.coverage.report] | ||
| exclude_also = [ | ||
| "@deprecated", | ||
| "def __repr__", | ||
| "except ImportError:", | ||
| "if TYPE_CHECKING:", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's now excluded by default:
|
||
| "if self.debug:", | ||
| "if settings.DEBUG", | ||
| "pragma: no cover", | ||
| "raise NotImplementedError", | ||
| "show_plot", | ||
| ] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1782,7 +1782,7 @@ def test_init(self): | |
| assert procar.get_occupation(0, "d")[Spin.up] == approx(0) | ||
| assert procar.get_occupation(0, "s")[Spin.up] == approx(0.35381249999999997) | ||
| assert procar.get_occupation(0, "p")[Spin.up] == approx(1.19540625) | ||
| with pytest.raises(ValueError, match="'m' is not in list"): | ||
| with pytest.raises(ValueError, match="not in list"): | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Python 3.14 changed the error message: |
||
| procar.get_occupation(1, "m") | ||
| assert procar.nbands == 10 | ||
| assert procar.nkpoints == 10 | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should test highest resolution in Ubuntu (likely mostly used) as it's the default strategy, so it would be closer to what most users get: