Refactor version management and remove deprecated gitignore.dev file

This commit is contained in:
UncleCode
2024-11-04 16:51:59 +08:00
parent be8f4fc59a
commit e6c914d2fa
5 changed files with 8 additions and 194 deletions

View File

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