Skip to content

Commit 71be238

Browse files
committed
Update __init__.py
1 parent f56ed07 commit 71be238

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

src/adaptive_classifier/__init__.py

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,7 @@
33
from .memory import PrototypeMemory
44
from huggingface_hub import ModelHubMixin
55

6-
import os
7-
import re
8-
9-
def get_version_from_setup():
10-
try:
11-
setup_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'setup.py')
12-
with open(setup_path, 'r') as f:
13-
content = f.read()
14-
version_match = re.search(r'version=["\']([^"\']+)["\']', content)
15-
if version_match:
16-
return version_match.group(1)
17-
except Exception:
18-
pass
19-
return "unknown"
20-
21-
__version__ = get_version_from_setup()
6+
__version__ = "0.0.17"
227

238
__all__ = [
249
"AdaptiveClassifier",

0 commit comments

Comments
 (0)