Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR: Check for asset availability when checking for update #22598

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

mrclary
Copy link
Contributor

@mrclary mrclary commented Sep 27, 2024

Description of Changes

  • Check that the download asset is available before alerting the user to an available update. If the asset is not available, also check the next-latest release, and so on, until either no update or no asset is available.
  • Use osascript in order not to pollute shell history on macOS.
  • Ensure UpdateWorker.channel is assigned.

Issue(s) Resolved

Fixes #22566
Fixes #22572

@mrclary mrclary changed the title PR: Update manager PR: Check for asset availability when checking for update Sep 27, 2024
@ccordoba12 ccordoba12 added this to the v6.0.2 milestone Sep 29, 2024
@mrclary mrclary force-pushed the update-manager branch 2 times, most recently from 379eced to b2da67c Compare October 1, 2024 19:50
@mrclary mrclary force-pushed the update-manager branch 3 times, most recently from 68153cd to a0ec21a Compare October 10, 2024 20:20
@mrclary mrclary force-pushed the update-manager branch 2 times, most recently from b558ba3 to 6552f65 Compare October 14, 2024 21:37
Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initial review for you @mrclary.

spyder/plugins/updatemanager/tests/test_update_manager.py Outdated Show resolved Hide resolved
spyder/plugins/updatemanager/workers.py Show resolved Hide resolved
spyder/plugins/updatemanager/workers.py Outdated Show resolved Hide resolved
spyder/plugins/updatemanager/workers.py Outdated Show resolved Hide resolved
spyder/plugins/updatemanager/workers.py Outdated Show resolved Hide resolved
spyder/plugins/updatemanager/workers.py Outdated Show resolved Hide resolved
spyder/plugins/updatemanager/widgets/update.py Outdated Show resolved Hide resolved
spyder/plugins/updatemanager/tests/test_update_manager.py Outdated Show resolved Hide resolved
spyder/plugins/updatemanager/tests/test_update_manager.py Outdated Show resolved Hide resolved
spyder/plugins/updatemanager/tests/test_update_manager.py Outdated Show resolved Hide resolved
@pep8speaks
Copy link

pep8speaks commented Oct 15, 2024

Hello @mrclary! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 230:80: E501 line too long (83 > 79 characters)

Comment last updated at 2024-10-15 03:31:53 UTC

@mrclary
Copy link
Contributor Author

mrclary commented Oct 15, 2024

Initial review for you @mrclary.

@ccordoba12, thank you for suggesting the TypedDict 👍🏼

mrclary and others added 7 commits October 14, 2024 20:12
…o an available update.

Create a function that determines the asset name, update type, and url, depending on the latest release and the current Spyder version.
Fixes spyder-ide#22566
…WorkerDownloadInstaller.latest_release are now packaging.version.Version objects instead of strings.

We can now use packaging.version mechanisms for comparison, sorting, and stable release checks.
Added test_update_no_asset and test_get_asset_info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants