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

Automatic deps upgrades #944

Merged
merged 6 commits into from
Sep 23, 2024
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.py[cod]
.env

# doc builds
docs/_build/*
Expand Down
7 changes: 4 additions & 3 deletions matminer/featurizers/composition/tests/test_thermo.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import unittest
from unittest import SkipTest

from pymatgen.ext.matproj import MPRester
from pymatgen.ext.matproj import MPRester, MPRestError

from matminer.featurizers.composition.tests.base import CompositionFeaturesTest
from matminer.featurizers.composition.thermo import CohesiveEnergy, CohesiveEnergyMP
Expand All @@ -11,7 +11,7 @@ class ThermoFeaturesTest(CompositionFeaturesTest):
def test_cohesive_energy(self):
try:
mpr = MPRester()
except ValueError:
except (ValueError, MPRestError):
raise SkipTest("Materials Project API key not set; Skipping cohesive energy test")

if not mpr.api_key:
Expand All @@ -21,9 +21,10 @@ def test_cohesive_energy(self):
self.assertAlmostEqual(df_cohesive_energy["cohesive energy"][0], 5.179358342, 2)

def test_cohesive_energy_mp(self):
raise SkipTest("Unable to debug issues with this test without a legacy MP key. Skipping for now.")
try:
mpr = MPRester()
except ValueError:
except (ValueError, MPRestError):
raise SkipTest("Materials Project API key not set; Skipping cohesive energy test")

if not mpr.api_key:
Expand Down
7 changes: 6 additions & 1 deletion matminer/featurizers/tests/test_conversions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from pandas import DataFrame, MultiIndex
from pymatgen.core import SETTINGS, Composition, Element, Lattice, Structure
from pymatgen.core.structure import IStructure
from pymatgen.ext.matproj import MPRestError
from pymatgen.util.testing import PymatgenTest

from matminer.featurizers.conversions import (
Expand Down Expand Up @@ -300,7 +301,11 @@ def test_conversion_multiindex_dynamic(self):
def test_composition_to_structurefromMP(self):
df = DataFrame(data={"composition": [Composition("Fe2O3"), Composition("N9Al34Fe234")]})

cto = CompositionToStructureFromMP()
try:
cto = CompositionToStructureFromMP()
except (ValueError, MPRestError):
raise unittest.SkipTest("Materials Project API key not set; Skipping cohesive energy test")

df = cto.featurize_dataframe(df, "composition")
structures = df["structure"].tolist()
self.assertTrue(isinstance(structures[0], Structure))
Expand Down
116 changes: 56 additions & 60 deletions requirements/ubuntu-latest_py3.10.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,45 +6,45 @@
#
aflow==0.0.11
# via matminer (setup.py)
alabaster==0.7.16
alabaster==1.0.0
# via sphinx
ase==3.22.1
ase==3.23.0
# via
# aflow
# dscribe
# matminer (setup.py)
astroid==3.2.2
astroid==3.3.3
# via pylint
attrs==23.2.0
attrs==24.2.0
# via
# jsonschema
# referencing
babel==2.15.0
babel==2.16.0
# via sphinx
beautifulsoup4==4.12.3
# via aflow
black==24.4.2
black==24.8.0
# via matminer (setup.py)
certifi==2024.2.2
certifi==2024.8.30
# via requests
cffi==1.16.0
cffi==1.17.1
# via cryptography
charset-normalizer==3.3.2
# via requests
citrination-client==6.5.1
# via matminer (setup.py)
click==8.1.7
# via black
contourpy==1.2.1
contourpy==1.3.0
# via matplotlib
coverage[toml]==7.5.2
coverage[toml]==7.6.1
# via
# coveralls
# matminer (setup.py)
# pytest-cov
coveralls==4.0.1
# via matminer (setup.py)
cryptography==42.0.7
cryptography==43.0.1
# via
# globus-sdk
# pyjwt
Expand All @@ -58,26 +58,24 @@ docopt==0.6.2
# via coveralls
docutils==0.21.2
# via sphinx
dscribe==2.1.0
dscribe==2.1.1
# via matminer (setup.py)
exceptiongroup==1.2.1
exceptiongroup==1.2.2
# via pytest
fair-research-login==0.3.1
# via mdf-toolbox
flake8==7.0.0
flake8==7.1.1
# via matminer (setup.py)
fonttools==4.52.1
fonttools==4.53.1
# via matplotlib
future==1.0.0
# via uncertainties
globus-sdk==3.41.0
globus-sdk==3.45.0
# via
# fair-research-login
# mdf-forge
# mdf-toolbox
httplib2==0.22.0
# via matminer (setup.py)
idna==3.7
idna==3.10
# via requests
imagesize==1.4.1
# via sphinx
Expand All @@ -96,21 +94,21 @@ joblib==1.4.2
# dscribe
# pymatgen
# scikit-learn
jsonschema==4.22.0
jsonschema==4.23.0
# via
# matminer (setup.py)
# mdf-toolbox
jsonschema-specifications==2023.12.1
# via jsonschema
kiwisolver==1.4.5
kiwisolver==1.4.7
# via matplotlib
latexcodec==3.0.0
# via pybtex
llvmlite==0.42.0
llvmlite==0.43.0
# via numba
markupsafe==2.1.5
# via jinja2
matplotlib==3.9.0
matplotlib==3.9.2
# via
# ase
# pymatgen
Expand All @@ -122,7 +120,7 @@ mdf-forge==0.8.0
# via matminer (setup.py)
mdf-toolbox==0.7.1
# via mdf-forge
monty==2024.5.24
monty==2024.7.30
# via
# matminer (setup.py)
# pymatgen
Expand All @@ -132,7 +130,7 @@ mypy-extensions==1.0.0
# via black
networkx==3.3
# via pymatgen
numba==0.59.1
numba==0.60.0
# via sparse
numpy==1.26.4
# via
Expand All @@ -150,7 +148,7 @@ numpy==1.26.4
# scipy
# sparse
# spglib
packaging==24.0
packaging==24.1
# via
# black
# matplotlib
Expand All @@ -159,49 +157,47 @@ packaging==24.0
# sphinx
palettable==3.3.3
# via pymatgen
pandas==2.2.2
pandas==2.2.3
# via
# matminer (setup.py)
# pymatgen
pathspec==0.12.1
# via black
pillow==10.3.0
pillow==10.4.0
# via matplotlib
platformdirs==4.2.2
platformdirs==4.3.6
# via
# black
# pylint
plotly==5.22.0
plotly==5.24.1
# via pymatgen
pluggy==1.5.0
# via pytest
pybind11==2.12.0
# via dscribe
pybtex==0.24.0
# via pymatgen
pycodestyle==2.11.1
pycodestyle==2.12.1
# via flake8
pycparser==2.22
# via cffi
pyflakes==3.2.0
# via flake8
pygments==2.18.0
# via sphinx
pyjwt[crypto]==2.8.0
pyjwt[crypto]==2.9.0
# via globus-sdk
pylint==3.2.2
pylint==3.3.0
# via matminer (setup.py)
pymatgen==2024.5.1
pymatgen==2024.9.17.1
# via matminer (setup.py)
pymongo==4.7.2
pymongo==4.9.1
# via matminer (setup.py)
pyparsing==3.1.2
pyparsing==3.1.4
# via
# httplib2
# matplotlib
pypif==2.1.2
# via citrination-client
pytest==8.2.1
pytest==8.3.3
# via
# matminer (setup.py)
# pytest-cov
Expand All @@ -214,17 +210,17 @@ python-dateutil==2.9.0.post0
# via
# matplotlib
# pandas
pytz==2024.1
pytz==2024.2
# via pandas
pyyaml==6.0.1
pyyaml==6.0.2
# via
# citrination-client
# pybtex
referencing==0.35.1
# via
# jsonschema
# jsonschema-specifications
requests==2.32.2
requests==2.32.3
# via
# citrination-client
# coveralls
Expand All @@ -234,19 +230,19 @@ requests==2.32.2
# mdf-toolbox
# pymatgen
# sphinx
rpds-py==0.18.1
rpds-py==0.20.0
# via
# jsonschema
# referencing
ruamel-yaml==0.18.6
# via pymatgen
ruamel-yaml-clib==0.2.8
# via ruamel-yaml
scikit-learn==1.5.0
scikit-learn==1.5.2
# via
# dscribe
# matminer (setup.py)
scipy==1.13.1
scipy==1.14.1
# via
# ase
# dscribe
Expand All @@ -262,33 +258,33 @@ six==1.16.0
# python-dateutil
snowballstemmer==2.2.0
# via sphinx
soupsieve==2.5
soupsieve==2.6
# via beautifulsoup4
sparse==0.15.4
# via dscribe
spglib==2.4.0
spglib==2.5.0
# via pymatgen
sphinx==7.3.7
sphinx==8.0.2
# via matminer (setup.py)
sphinxcontrib-applehelp==1.0.8
sphinxcontrib-applehelp==2.0.0
# via sphinx
sphinxcontrib-devhelp==1.0.6
sphinxcontrib-devhelp==2.0.0
# via sphinx
sphinxcontrib-htmlhelp==2.0.5
sphinxcontrib-htmlhelp==2.1.0
# via sphinx
sphinxcontrib-jsmath==1.0.1
# via sphinx
sphinxcontrib-qthelp==1.0.7
sphinxcontrib-qthelp==2.0.0
# via sphinx
sphinxcontrib-serializinghtml==1.1.10
sphinxcontrib-serializinghtml==2.0.0
# via sphinx
sympy==1.12
sympy==1.13.3
# via
# matminer (setup.py)
# pymatgen
tabulate==0.9.0
# via pymatgen
tenacity==8.3.0
tenacity==9.0.0
# via plotly
termcolor==2.4.0
# via aflow
Expand All @@ -301,22 +297,22 @@ tomli==2.0.1
# pylint
# pytest
# sphinx
tomlkit==0.12.5
tomlkit==0.13.2
# via pylint
tqdm==4.66.4
tqdm==4.66.5
# via
# matminer (setup.py)
# mdf-forge
# pymatgen
typing-extensions==4.12.0
typing-extensions==4.12.2
# via
# astroid
# black
tzdata==2024.1
# via pandas
ujson==5.10.0
# via matminer (setup.py)
uncertainties==3.1.7
uncertainties==3.2.2
# via pymatgen
urllib3==2.2.1
urllib3==2.2.3
# via requests
Loading
Loading