Skip to content

Commit 990923c

Browse files
revert: Manually define version
This fixes #141 where compiling python with nuitka with --standalone flag causes runtime errors with importlib.metadata. This patch also removes the now unneeded importlib-metadata dependency Thanks to Abdullah Albanna <[email protected]> who raised this issue and helped out in debugging. --- Fixes #141 Co-authored-by: Abdullah Albanna <[email protected]> Signed-off-by: AlexNg <[email protected]>
1 parent a6858ff commit 990923c

File tree

4 files changed

+2
-48
lines changed

4 files changed

+2
-48
lines changed

poetry.lock

Lines changed: 1 addition & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ thread = "thread.__main__:app"
4242
[tool.poetry.dependencies]
4343
python = "^3.9"
4444
typing-extensions = "^4.9.0"
45-
importlib-metadata = { version = ">=4.4", python = "<3.10" }
4645

4746
[tool.poetry.group.dev.dependencies]
4847
pytest = ">=7.4.3,<9.0.0"

src/thread/utils/meta.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/thread/version.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
from .utils.meta import metadata
2-
3-
__version__ = metadata.version('thread')
1+
__version__ = '2.0.4'
42
__all__ = ['__version__']

0 commit comments

Comments
 (0)