mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 22:55:18 +00:00 
			
		
		
		
	[core] Release workflow and Updater cleanup (#8640)
- Only use trusted publishing with PyPI and remove support for PyPI tokens from release workflow - Clean up improper actions syntax in the build workflow inputs - Refactor Updater to allow for consistent unit testing with `UPDATE_SOURCES` Authored by: bashonly
This commit is contained in:
		| @@ -11,6 +11,14 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | ||||
| from test.helper import FakeYDL, report_warning | ||||
| from yt_dlp.update import Updater, UpdateInfo | ||||
| 
 | ||||
| 
 | ||||
| # XXX: Keep in sync with yt_dlp.update.UPDATE_SOURCES | ||||
| TEST_UPDATE_SOURCES = { | ||||
|     'stable': 'yt-dlp/yt-dlp', | ||||
|     'nightly': 'yt-dlp/yt-dlp-nightly-builds', | ||||
|     'master': 'yt-dlp/yt-dlp-master-builds', | ||||
| } | ||||
| 
 | ||||
| TEST_API_DATA = { | ||||
|     'yt-dlp/yt-dlp/latest': { | ||||
|         'tag_name': '2023.12.31', | ||||
| @@ -104,6 +112,7 @@ class FakeUpdater(Updater): | ||||
| 
 | ||||
|     _channel = 'stable' | ||||
|     _origin = 'yt-dlp/yt-dlp' | ||||
|     _update_sources = TEST_UPDATE_SOURCES | ||||
| 
 | ||||
|     def _download_update_spec(self, *args, **kwargs): | ||||
|         return TEST_LOCKFILE_ACTUAL | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 bashonly
					bashonly