mirror of
https://github.com/Aider-AI/aider.git
synced 2025-08-03 02:12:15 +00:00
![]() # Aider chat conversation: USER: we need to parse `current_version` and ignore the -dev if it is present ASSISTANT: To implement this, we need to modify the `scripts/versionbump.py` file. Here is the proposed change: ```python scripts/versionbump.py <<<<<<< ORIGINAL current_version = re.search(r'__version__ = "(.+?)"', content).group(1) if new_version <= version.parse(current_version): raise ValueError( f"New version {new_version} must be greater than the current version {current_version}" ) ======= current_version = re.search(r'__version__ = "(.+?)"', content).group(1).split('-dev')[0] if new_version <= version.parse(current_version): raise ValueError( f"New version {new_version} must be greater than the current version {current_version}" ) >>>>>>> UPDATED ``` This change will ensure that the '-dev' suffix is discarded when parsing the `current_version`. |
||
---|---|---|
.. | ||
versionbump.py |