refactor: migrate versioning to __version__.py and remove deprecated _version.py

This commit is contained in:
UncleCode
2024-11-16 15:30:24 +08:00
parent d0014c6793
commit 5098442086
8 changed files with 5 additions and 13 deletions

View File

@@ -28,7 +28,7 @@ __location__ = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file
with open(os.path.join(__location__, "requirements.txt")) as f:
requirements = f.read().splitlines()
with open("crawl4ai/_version.py") as f:
with open("crawl4ai/__version__.py") as f:
for line in f:
if line.startswith("__version__"):
version = line.split("=")[1].strip().strip('"')