From 1ca1b4267108fcee3f7c6860045d19778519a95d Mon Sep 17 00:00:00 2001 From: Mohamed Koubaa Date: Tue, 12 Nov 2024 05:33:29 -0600 Subject: [PATCH 1/4] remove importlib-metadata requirement --- .github/dependabot.yml | 3 +-- doc/source/examples/extended_examples/hpc/requirements.txt | 1 - minimum_requirements.txt | 1 - pyproject.toml | 1 - src/ansys/mapdl/core/report.py | 5 +---- 5 files changed, 2 insertions(+), 9 deletions(-) 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/source/examples/extended_examples/hpc/requirements.txt b/doc/source/examples/extended_examples/hpc/requirements.txt index 15f2802e9a..14f02b4c49 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 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(".", "-")) From 4baf65e1c0e2a6ef73a5cf6dfc2bdd0966daac7e Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Tue, 12 Nov 2024 12:20:54 +0000 Subject: [PATCH 2/4] chore: adding changelog file 3546.documentation.md [dependabot-skip] --- doc/changelog.d/3546.documentation.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/3546.documentation.md diff --git a/doc/changelog.d/3546.documentation.md b/doc/changelog.d/3546.documentation.md new file mode 100644 index 0000000000..9a446a2e59 --- /dev/null +++ b/doc/changelog.d/3546.documentation.md @@ -0,0 +1 @@ +remove importlib-metadata requirement \ No newline at end of file From 8d674e32052fa94a5fc00dfed9326388785d7d0c Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Tue, 12 Nov 2024 12:25:14 +0000 Subject: [PATCH 3/4] chore: adding changelog file 3546.documentation.md [dependabot-skip] --- doc/changelog.d/3546.documentation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/changelog.d/3546.documentation.md b/doc/changelog.d/3546.documentation.md index 9a446a2e59..f6c4f3bef2 100644 --- a/doc/changelog.d/3546.documentation.md +++ b/doc/changelog.d/3546.documentation.md @@ -1 +1 @@ -remove importlib-metadata requirement \ No newline at end of file +[maint] remove importlib-metadata requirement \ No newline at end of file From 57eb95a2e6072ad8b9ea184e6e92e9c39def4089 Mon Sep 17 00:00:00 2001 From: Mohamed Koubaa Date: Tue, 12 Nov 2024 07:42:13 -0600 Subject: [PATCH 4/4] remove zipp too --- doc/source/examples/extended_examples/hpc/requirements.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/source/examples/extended_examples/hpc/requirements.txt b/doc/source/examples/extended_examples/hpc/requirements.txt index 14f02b4c49..59908dd907 100644 --- a/doc/source/examples/extended_examples/hpc/requirements.txt +++ b/doc/source/examples/extended_examples/hpc/requirements.txt @@ -39,4 +39,3 @@ tabulate==0.9.0 tqdm==4.66.3 urllib3==2.2.2 vtk==9.3.0 -zipp==3.19.1