File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change 1
1
from pathlib import Path
2
2
from setuptools import find_packages , setup
3
+ from local_notebooklm .version import __version__ as version
3
4
4
5
# Get the project root directory
5
6
root_dir = Path (__file__ ).parent
13
14
print ("Warning: requirements.txt not found. Proceeding without dependencies." )
14
15
requirements = []
15
16
16
- # Import the version from the package
17
- version = {}
18
- try :
19
- with open ("local_notebooklm/version.py" ) as f :
20
- exec (f .read (), version )
21
- except FileNotFoundError :
22
- print ("Warning: Could not find version.py in local_notebooklm/" )
23
- try :
24
- with open ("local_notebooklm/version.py" ) as f :
25
- exec (f .read (), version )
26
- except FileNotFoundError :
27
- print ("Warning: Could not find version.py in local_notebook/ either. Using default version." )
28
- version ["__version__" ] = "0.1.0"
29
-
30
- version = version .get ("__version__" , "0.1.0" )
31
17
32
18
# Setup configuration
33
19
setup (
You can’t perform that action at this time.
0 commit comments