(version)
| 82 | |
| 83 | |
| 84 | def update_package(version): |
| 85 | content = pathlib.Path("praw/const.py").read_text() |
| 86 | |
| 87 | updated = re.sub(r'__version__ = "([^"]+)"', f'__version__ = "{version}"', content) |
| 88 | if content == updated: |
| 89 | sys.stderr.write("Package version string not changed\n") |
| 90 | return False |
| 91 | |
| 92 | pathlib.Path("praw/const.py").write_text(updated) |
| 93 | |
| 94 | print(version) |
| 95 | return True |
| 96 | |
| 97 | |
| 98 | def valid_version(version): |
no outgoing calls
no test coverage detected
searching dependent graphs…