Reads the current version in the __init__.
()
| 63 | |
| 64 | |
| 65 | def get_version(): |
| 66 | """Reads the current version in the __init__.""" |
| 67 | with open(REPLACE_FILES["init"], "r") as f: |
| 68 | code = f.read() |
| 69 | default_version = REPLACE_PATTERNS["init"][0].search(code).groups()[0] |
| 70 | return packaging.version.parse(default_version) |
| 71 | |
| 72 | |
| 73 | def pre_release_work(patch=False): |
no test coverage detected