Skip to content

Commit

Permalink
Remove deprecate pkg_resources
Browse files Browse the repository at this point in the history
`pkg_resources` are deprecated in favor of `importlib.metadata`.

Does this allow removing the setuptools dependency or is this used elsewhere?
  • Loading branch information
konstin committed Dec 9, 2024
1 parent 70abfe8 commit 129140d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ __pycache__
.envrc
build/**/*
dist/**/*
node_modules

0 comments on commit 129140d

Please sign in to comment.