-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build with numpy2 * release np <2 pin for runtime dep * TEST: force numpy 2 for test purpose * pytest only show 20 durations instead of ALL * test NumPy 1 * test finished, remove np<2 pin * fix: DeprecationWarning: pkg_resources is deprecated as an API * remove numpy from build dependency
- Loading branch information
1 parent
6df36ea
commit cc3573b
Showing
4 changed files
with
5 additions
and
7 deletions.
There are no files selected for viewing
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,9 +1,9 @@ | ||
"""data mining materials properties""" | ||
|
||
from pkg_resources import DistributionNotFound, get_distribution | ||
from importlib.metadata import PackageNotFoundError, version | ||
|
||
try: | ||
__version__ = get_distribution("matminer").version | ||
except DistributionNotFound: # pragma: no cover | ||
__version__ = version("matminer") | ||
except PackageNotFoundError: # pragma: no cover | ||
# package is not installed | ||
pass |
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