From 07eba48d304b1b736786f16ed830986dc9e83cca Mon Sep 17 00:00:00 2001 From: Brandon Bocklund Date: Mon, 29 Jan 2024 15:07:01 -0800 Subject: [PATCH] MAINT: Remove importlib_metadata (no Python 3.7 backport needed) and update project metadata --- espei/__init__.py | 6 +----- setup.py | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/espei/__init__.py b/espei/__init__.py index 9910458d..8501ee90 100644 --- a/espei/__init__.py +++ b/espei/__init__.py @@ -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 diff --git a/setup.py b/setup.py index e60ef860..c4a31e48 100644 --- a/setup.py +++ b/setup.py @@ -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', @@ -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']}