diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 2e226e80a5..259d7227d5 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -20,7 +20,7 @@ updates: package-ecosystem: "pip" # See documentation for possible values insecure-external-code-execution: allow schedule: - interval: "weekly" + interval: "weekly" day: "friday" time: "00:00" labels: @@ -34,7 +34,6 @@ updates: minimal: patterns: - "ansys-api-mapdl" - - "importlib-metadata" - "numpy" - "platformdirs" - "psutil" diff --git a/doc/changelog.d/3546.documentation.md b/doc/changelog.d/3546.documentation.md new file mode 100644 index 0000000000..f6c4f3bef2 --- /dev/null +++ b/doc/changelog.d/3546.documentation.md @@ -0,0 +1 @@ +[maint] remove importlib-metadata requirement \ No newline at end of file diff --git a/doc/source/examples/extended_examples/hpc/requirements.txt b/doc/source/examples/extended_examples/hpc/requirements.txt index 15f2802e9a..59908dd907 100644 --- a/doc/source/examples/extended_examples/hpc/requirements.txt +++ b/doc/source/examples/extended_examples/hpc/requirements.txt @@ -16,7 +16,6 @@ fonttools==4.49.0 geomdl==5.3.1 grpcio==1.62.0 idna==3.7.0 -importlib-metadata==7.0.1 kiwisolver==1.4.5 matplotlib==3.8.3 numpy==1.26.4 @@ -40,4 +39,3 @@ tabulate==0.9.0 tqdm==4.66.3 urllib3==2.2.2 vtk==9.3.0 -zipp==3.19.1 diff --git a/minimum_requirements.txt b/minimum_requirements.txt index ee9008ac42..fa142b2460 100644 --- a/minimum_requirements.txt +++ b/minimum_requirements.txt @@ -1,5 +1,4 @@ ansys-api-mapdl==0.5.2 -importlib-metadata==8.5.0 numpy==2.1.2 platformdirs==4.3.6 psutil==6.1.0 diff --git a/pyproject.toml b/pyproject.toml index e0d763d073..3540654ff7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,6 @@ dependencies = [ "ansys-tools-path>=0.3.1", "click>=8.1.3", # for CLI interface "grpcio>=1.30.0", # tested up to grpcio==1.35 - "importlib-metadata>=4.0", "matplotlib>=3.0.0", # for colormaps for pyvista "numpy>=1.14.0,<1.25.0; python_version < '3.9'", "numpy>=1.14.0,<3.0.0; python_version >= '3.9'", diff --git a/src/ansys/mapdl/core/report.py b/src/ansys/mapdl/core/report.py index 451915ce80..bfa9382185 100644 --- a/src/ansys/mapdl/core/report.py +++ b/src/ansys/mapdl/core/report.py @@ -93,10 +93,7 @@ def __init__(self, core, optional=None, additional=None, **kwargs): self.kwargs["extra_meta"] = ("GPU Details", "None") def get_version(self, package): - try: - import importlib.metadata as importlib_metadata - except ModuleNotFoundError: # pragma: no cover - import importlib_metadata + import importlib.metadata as importlib_metadata try: return importlib_metadata.version(package.replace(".", "-"))