diff --git a/pyproject.toml b/pyproject.toml index 19b91f5..0a9d1b5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ license = "MIT" readme = "README.md" [tool.poetry.dependencies] -python = "^3.9" +python = "^3.7" docopt = "^0.6.2" rns = "^0.5.0" #{ git = "https://github.com/acehoss/Reticulum.git", branch = "feature/channel" } #{ path = "../Reticulum/", develop = true } # tomli = "^2.0.1" diff --git a/rnsh/__init__.py b/rnsh/__init__.py index 2d1eb6d..99afd9f 100644 --- a/rnsh/__init__.py +++ b/rnsh/__init__.py @@ -31,8 +31,8 @@ def _get_version(): import tomli return tomli.load(open(os.path.join(os.path.dirname(module_dir), "pyproject.toml"), "rb"))["tool"]["poetry"]["version"] except: - from importlib.metadata import version - return version(__package__) + return "0.0.0" + except: return "0.0.0" diff --git a/rnsh/initiator.py b/rnsh/initiator.py index 8a82290..9f62ab8 100644 --- a/rnsh/initiator.py +++ b/rnsh/initiator.py @@ -28,7 +28,6 @@ import asyncio import base64 import enum import functools -import importlib.metadata import logging as __logging import os import queue diff --git a/rnsh/listener.py b/rnsh/listener.py index 07b6a0e..d3e617f 100644 --- a/rnsh/listener.py +++ b/rnsh/listener.py @@ -28,7 +28,6 @@ import asyncio import base64 import enum import functools -import importlib.metadata import logging as __logging import os import queue diff --git a/rnsh/rnsh.py b/rnsh/rnsh.py index 5f11040..b4f41d8 100644 --- a/rnsh/rnsh.py +++ b/rnsh/rnsh.py @@ -28,7 +28,6 @@ import asyncio import base64 import enum import functools -import importlib.metadata import logging as __logging import os import queue diff --git a/tests/test_rnsh.py b/tests/test_rnsh.py index 9057d6f..6132268 100644 --- a/tests/test_rnsh.py +++ b/tests/test_rnsh.py @@ -13,7 +13,6 @@ import os def test_version(): - # version = importlib.metadata.version(rnsh.__version__) assert rnsh.__version__ != "0.0.0" assert rnsh.__version__ != "0.0.1"