We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f56ed07 commit 71be238Copy full SHA for 71be238
1 file changed
src/adaptive_classifier/__init__.py
@@ -3,22 +3,7 @@
3
from .memory import PrototypeMemory
4
from huggingface_hub import ModelHubMixin
5
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()
+__version__ = "0.0.17"
22
23
__all__ = [
24
"AdaptiveClassifier",
0 commit comments