Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion libbs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
__version__ = "3.3.4"
from importlib.metadata import version as _get_version, PackageNotFoundError as _PackageNotFoundError
try:
__version__ = _get_version("libbs")
except _PackageNotFoundError:
__version__ = "unknown"


import logging
Expand Down
10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ classifiers = [
license = {text = "BSD 2 Clause"}
description = "Your Only Decompiler API Lib - A generic API to script in and out of decompilers"
urls = {Homepage = "https://github.com/binsync/libbs"}
version = "3.3.4"
requires-python = ">= 3.10"
dependencies = [
"toml",
Expand All @@ -27,7 +28,6 @@ dependencies = [
"filelock",
"networkx"
]
dynamic = ["version"]

[project.readme]
file = "README.md"
Expand All @@ -41,18 +41,20 @@ test = [
"ipdb"
]
ghidra = [
"PySide6-Essentials>=6.4.2,!=6.7.0"
"PySide6-Essentials>=6.4.2,!=6.7.0; python_version < '3.15'"
]

[project.scripts]
libbs = "libbs.__main__:main"

[tool.pytest.ini_options]
# faulthandler conflicts with JPype's JVM on Windows
addopts = "-p no:faulthandler"

[tool.setuptools]
include-package-data = true
license-files = ["LICENSE"]

[tool.setuptools.packages]
find = {namespaces = false}

[tool.setuptools.dynamic]
version = {attr = "libbs.__version__"}