Skip to content

Commit

Permalink
MAINT: Remove importlib_metadata (no Python 3.7 backport needed) and …
Browse files Browse the repository at this point in the history
…update project metadata
  • Loading branch information
bocklund committed Jan 29, 2024
1 parent 61eafcd commit 07eba48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions espei/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@
del get_version
except ImportError:
# Fall back on the metadata of the installed package
try:
from importlib.metadata import version
except ImportError:
# backport for Python<3.8
from importlib_metadata import version
from importlib.metadata import version
__version__ = version("espei")
del version

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def readme(fname):
'dask[complete]>=2',
'distributed>=2',
'emcee<3',
'importlib_metadata', # drop for Python>=3.8
'matplotlib',
'numpy>=1.20',
'pycalphad>=0.10.4',
Expand Down Expand Up @@ -66,6 +65,7 @@ def readme(fname):
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
entry_points={'console_scripts': [
'espei = espei.espei_script:main']}
Expand Down

0 comments on commit 07eba48

Please sign in to comment.