Skip to content

Commit

Permalink
chore: remove use of deprecated pkg_resources
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremad committed Nov 22, 2023
1 parent dba94e5 commit 7b85e41
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 32 deletions.
29 changes: 1 addition & 28 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions py_loop/looper.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import importlib.metadata
import subprocess
import time
from typing import Any, List

import cli_ui as ui
import pkg_resources


class InvalidCommand(Exception):
Expand Down Expand Up @@ -104,4 +104,4 @@ def loop(self) -> None:

@classmethod
def version(cls) -> str:
return pkg_resources.require("py-loop")[0].version
return importlib.metadata.version("py-loop")
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ authors = ["jerem <jeremy.tellaa@tanker.io>"]
[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
cli-ui = "^0.17.2"
setuptools = "^69.0.2"

[tool.poetry.group.dev.dependencies]
twine = "^4.0.2"
Expand All @@ -17,7 +16,6 @@ flake8 = "6.1.0"
mypy = "1.7.0"
pytest = "^7.4.3"
pytest-cov = "^4.01.0"
types-setuptools = "^68.2.0.1"
isort = "^5.12.0"

[build-system]
Expand Down

0 comments on commit 7b85e41

Please sign in to comment.