Skip to content

Commit 3d440bc

Browse files
committed
Direct user to use built in upgrade functionality
1 parent 1b1961e commit 3d440bc

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ Emojis for the following are chosen based on [gitmoji](https://gitmoji.dev/).
1616

1717
- The upgrade functionality of the CLI is now comprehensively tested ([#624](https://github.com/scribe-org/Scribe-Data/issues/624)).
1818

19+
### ♻️ Code Refactoring
20+
21+
- The upgrade message instructs the user to use the built in upgrade functionality.
22+
1923
## Scribe-Data 5.1.0
2024

2125
### ✨ Features

src/scribe_data/cli/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ def get_version_message():
7575
return f"Scribe-Data v{local_version_clean} is higher than the currently released version Scribe-Data v{latest_version_clean}. Hopefully this is a development build, and if so, thanks for your work on Scribe-Data! If not, please report this to the team at https://github.com/scribe-org/Scribe-Data/issues."
7676

7777
else:
78-
return f"Scribe-Data v{local_version_clean} (Upgrade available: Scribe-Data v{latest_version_clean}). To update: pip install --upgrade scribe-data"
78+
return f"Scribe-Data v{local_version_clean} (Upgrade available: Scribe-Data v{latest_version_clean}). To upgrade: scribe-data -u"

tests/cli/test_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def test_upgrade_available(self, mock_latest_version, mock_local_version):
6060
"""
6161
Test case where a newer version is available.
6262
"""
63-
expected_message = "Scribe-Data vX.Y.Y (Upgrade available: Scribe-Data vX.Y.Z). To update: pip install --upgrade scribe-data"
63+
expected_message = "Scribe-Data vX.Y.Y (Upgrade available: Scribe-Data vX.Y.Z). To upgrade: scribe-data -u"
6464
self.assertEqual(get_version_message(), expected_message)
6565

6666
@patch(

0 commit comments

Comments
 (0)