From 129140d4da6bf96d19d75d824e86eb04b0be2aba Mon Sep 17 00:00:00 2001 From: konstin Date: Mon, 9 Dec 2024 12:20:33 +0100 Subject: [PATCH] Remove deprecate pkg_resources `pkg_resources` are deprecated in favor of `importlib.metadata`. Does this allow removing the setuptools dependency or is this used elsewhere? --- .github/workflows/build.yaml | 2 +- .gitignore | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index d84e3560..9efc0e61 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -84,7 +84,7 @@ jobs: - name: Check release version run: | - installed=$(python3 -c "import pkg_resources; print(pkg_resources.get_distribution('packse').version)") + installed=$(python3 -c "from importlib.metadata import version; print(version('packse'))") test $installed = ${{ needs.build-and-publish.outputs.build-version }} - name: Check CLI help diff --git a/.gitignore b/.gitignore index d8128014..c75db7ce 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ __pycache__ .envrc build/**/* dist/**/* +node_modules