Skip to content

Commit 4f2b4fb

Browse files
nits
1 parent 3bd1aab commit 4f2b4fb

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

setup.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from pathlib import Path
22
from setuptools import find_packages, setup
3+
from local_notebooklm.version import __version__ as version
34

45
# Get the project root directory
56
root_dir = Path(__file__).parent
@@ -13,21 +14,6 @@
1314
print("Warning: requirements.txt not found. Proceeding without dependencies.")
1415
requirements = []
1516

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")
3117

3218
# Setup configuration
3319
setup(

0 commit comments

Comments
 (0)