Skip to content

Commit

Permalink
remove sparse as dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
bobmyhill committed May 25, 2024
1 parent c1c808f commit 98ad27e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
3 changes: 0 additions & 3 deletions burnman/classes/solutionmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
from ..utils.chemistry import process_solution_chemistry
from .. import constants
import warnings
import sparse
import string
from copy import deepcopy
from .material import material_property, cached_property
from dataclasses import make_dataclass

Expand Down
1 change: 0 additions & 1 deletion docs/pip_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ nbsphinx
cvxpy
jupyter
autograd
sparse

# ReadTheDocs cannot build pycddlib successfully
# because it requires gmp.h, installable only via sudo apt-get install.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ python = "^3.8"
numpy = "^1.24"
scipy = "^1.10"
sympy = "^1.12"
sparse = "^0.14"
cvxpy = "^1.3"
matplotlib = "^3.7"
numba = "^0.57"

[tool.poetry.dev-dependencies]
ipython = "^8.5"
Expand Down
11 changes: 5 additions & 6 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,16 @@ then
fi

$PYTHON --version
echo ""
echo "Dependency tree:"
$PYTHON -m pip install -q pipdeptree
$PYTHON -m pipdeptree -p burnman -d 1 2> /dev/null
echo ""

# Quietly install burnman in development mode
echo "Installing BurnMan in development mode ..."
$PYTHON -m pip install -q -e .
echo ""

echo "Dependency tree:"
$PYTHON -m pip install -q pipdeptree .
$PYTHON -m pipdeptree -p burnman -d 1 2> /dev/null
echo ""

# Quietly install optional modules after burnman
echo "Installing optional cvxpy, pycddlib, autograd and jupyter modules ..."
$PYTHON -m pip install -q cvxpy pycddlib autograd jupyter
Expand Down

0 comments on commit 98ad27e

Please sign in to comment.