Reads the current version in the __init__.
()
| 95 | |
| 96 | |
| 97 | def get_version(): |
| 98 | """Reads the current version in the __init__.""" |
| 99 | with open(REPLACE_FILES["init"], "r") as f: |
| 100 | code = f.read() |
| 101 | default_version = REPLACE_PATTERNS["init"][0].search(code).groups()[0] |
| 102 | return packaging.version.parse(default_version) |
| 103 | |
| 104 | |
| 105 | def pre_release_work(patch=False): |
no outgoing calls
no test coverage detected