Skip to content

Commit bc32978

Browse files
updates
1 parent 35560e7 commit bc32978

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

local_notebooklm/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.1.0"
1+
from .version import __version__

local_notebooklm/version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "0.5.1"

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ requires = ["setuptools>=42", "wheel"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
6-
name = "local-notebook"
7-
version = "0.1.0" # You can set this directly or use dynamic version from your code
6+
name = "local-notebooklm"
7+
dynamic = ["version"] # Mark version as dynamic
88
description = "A local notebook implementation"
99
readme = "README.md"
1010
authors = [
@@ -21,6 +21,9 @@ dependencies = [
2121
# You can list dependencies here directly or use dynamic deps from requirements.txt
2222
]
2323

24+
[tool.setuptools.dynamic]
25+
version = {attr = "local_notebook.version.__version__"} # Adjust this path to match your actual module structure
26+
2427
[project.urls]
2528
"Homepage" = "https://github.com/Goekdeniz-Guelmez//Local-NotebookLM"
2629
"Bug Tracker" = "https://github.com/Goekdeniz-Guelmez//Local-NotebookLM/issues"

setup.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
from pathlib import Path
22
from setuptools import find_packages, setup
3+
import sys
4+
5+
# Add the project root to the path so we can import the version
6+
sys.path.insert(0, str(Path(__file__).parent))
7+
from local_notebooklm.version import __version__
38

49
# Get the project root directory
510
root_dir = Path(__file__).parent
@@ -13,11 +18,10 @@
1318
print("Warning: requirements.txt not found. Proceeding without dependencies.")
1419
requirements = []
1520

16-
1721
# Setup configuration
1822
setup(
1923
name="Local-NotebookLM",
20-
version="0.1.5",
24+
version=__version__, # Use version from version.py
2125
description="A Local-NotebookLM to convert PDFs into Audio.",
2226
long_description=open(root_dir / "README.md", encoding="utf-8").read(),
2327
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)