mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[core] Fix support for upcoming Python 3.12 (#8130)
This also adds the following test runners: - `3.12-dev` on `ubuntu-latest` - `3.12-dev` on `windows-latest` - `pypy-3.10` on `ubuntu-latest` Authored by: Grub4K
This commit is contained in:
		| @@ -10,14 +10,14 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | ||||
| import argparse | ||||
| import contextlib | ||||
| import sys | ||||
| from datetime import datetime | ||||
| from datetime import datetime, timezone | ||||
| 
 | ||||
| from devscripts.utils import read_version, run_process, write_file | ||||
| 
 | ||||
| 
 | ||||
| def get_new_version(version, revision): | ||||
|     if not version: | ||||
|         version = datetime.utcnow().strftime('%Y.%m.%d') | ||||
|         version = datetime.now(timezone.utc).strftime('%Y.%m.%d') | ||||
| 
 | ||||
|     if revision: | ||||
|         assert revision.isdigit(), 'Revision must be a number' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Simon Sawicki
					Simon Sawicki