diff --git a/beautysh/__init__.py b/beautysh/__init__.py index 639aca1..ebc6493 100755 --- a/beautysh/__init__.py +++ b/beautysh/__init__.py @@ -6,7 +6,7 @@ import re import sys -import pkg_resources # part of setuptools +import importlib.metadata from colorama import Fore # correct function style detection is obtained only if following regex are @@ -348,8 +348,8 @@ def parse_function_style(self, style_name): def get_version(self): try: - return pkg_resources.require("beautysh")[0].version - except pkg_resources.DistributionNotFound: + return importlib.metadata.version("beautysh") + except importlib.metadata.PackageNotFoundError: return "Not Available" def main(self): diff --git a/pyproject.toml b/pyproject.toml index 85b98f7..6007389 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,9 @@ [tool.poetry] name = "beautysh" -version = "6.2.1" +version = "6.2.2" description = "A Bash beautifier for the masses." -authors = ["Bernardo Meurer "] +authors = ["Bernardo Meurer ", + "Adam Ryczkowski "] license = "MIT" readme = "README.md" homepage = "https://github.com/lovesegfault/beautysh" @@ -26,7 +27,7 @@ include = ["LICENSE"] beautysh = "beautysh:main" [tool.poetry.dependencies] -python = "^3.6.2" +python = "^3.8.0" colorama = "^0.4.4" types-colorama = "^0.4.3" types-setuptools = "^57.4.0"