()
| 13 | |
| 14 | # Read version from __init__.py |
| 15 | def get_version(): |
| 16 | init_file = Path(__file__).parent / "__init__.py" |
| 17 | if init_file.exists(): |
| 18 | with open(init_file, "r") as f: |
| 19 | for line in f: |
| 20 | if line.startswith("__version__"): |
| 21 | return line.split("=")[1].strip().strip("\"'") |
| 22 | return "0.1.0" |
| 23 | |
| 24 | |
| 25 | # Read long description from README |