()
| 64 | |
| 65 | # Read the version from __init__.py |
| 66 | def get_version(): |
| 67 | init_file = Path("tokendagger/__init__.py") |
| 68 | if init_file.exists(): |
| 69 | with open(init_file) as f: |
| 70 | for line in f: |
| 71 | if line.startswith("__version__"): |
| 72 | return line.split("=")[1].strip().strip('"\'') |
| 73 | return "0.1.0" |
| 74 | |
| 75 | |
| 76 | setup( |