-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from simpeg/pyproject_update
Switch to pyproject.toml based install
- Loading branch information
Showing
23 changed files
with
245 additions
and
197 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node: $Format:%H$ | ||
node-date: $Format:%cI$ | ||
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$ | ||
ref-names: $Format:%D$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.git_archival.txt export-subst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.coverage | ||
coverage.xml | ||
coverage_html_report/ | ||
*.pyc | ||
*.so | ||
build/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
prune .github | ||
prune docs | ||
prune tests | ||
exclude .gitignore MANIFEST.in .pre-commit-config.yaml | ||
exclude .git_archival.txt .gitattributes Makefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,11 @@ | ||
.PHONY: build coverage lint graphs tests docs mumps mumps_mac mumps_install_mac | ||
|
||
build: | ||
python setup.py build_ext --inplace | ||
.PHONY: coverage tests docs | ||
|
||
coverage: | ||
pytest --cov-config=.coveragerc --cov-report=xml --cov=pymatsolver -s -v | ||
|
||
lint: | ||
pylint --output-format=html pymatsolver > pylint.html | ||
|
||
graphs: | ||
pyreverse -my -A -o pdf -p pymatsolver pymatsolver/**.py pymatsolver/**/**.py | ||
pytest --cov --cov-config=pyproject.toml -s -v | ||
coverage xml | ||
|
||
tests: | ||
pytest | ||
|
||
docs: | ||
cd docs;make html | ||
|
||
mumps: | ||
cd pymatsolver/mumps;make build | ||
|
||
mumps_mac: | ||
cd pymatsolver/mumps;make build_mac | ||
|
||
mumps_install_mac: | ||
brew install mumps --with-scotch5 --without-mpi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
from ..wrappers import WrapDirect | ||
from scipy.sparse.linalg import spsolve, splu | ||
|
||
from ..wrappers import WrapDirect | ||
from .pardiso import Pardiso | ||
from .mumps import Mumps | ||
|
||
Solver = WrapDirect(spsolve, factorize=False, name="Solver") | ||
SolverLU = WrapDirect(splu, factorize=True, name="SolverLU") | ||
|
||
__all__ = ["Solver", "SolverLU"] | ||
try: | ||
from .pardiso import Pardiso | ||
__all__ += ["Pardiso"] | ||
except ImportError: | ||
pass | ||
|
||
try: | ||
from .mumps import Mumps | ||
__all__ += ["Mumps"] | ||
except ImportError: | ||
pass | ||
__all__ = ["Solver", "SolverLU", "Pardiso", "Mumps"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.