mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	Preparing for release
This commit is contained in:
		@@ -1,3 +1,5 @@
 | 
			
		||||
# Unused
 | 
			
		||||
 | 
			
		||||
#!/usr/bin/env python
 | 
			
		||||
from __future__ import unicode_literals
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +0,0 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
wget http://central.maven.org/maven2/org/python/jython-installer/2.7.1/jython-installer-2.7.1.jar
 | 
			
		||||
java -jar jython-installer-2.7.1.jar -s -d "$HOME/jython"
 | 
			
		||||
$HOME/jython/bin/jython -m pip install nose
 | 
			
		||||
@@ -13,14 +13,14 @@ if isinstance(helptext, bytes):
 | 
			
		||||
with io.open(README_FILE, encoding='utf-8') as f:
 | 
			
		||||
    oldreadme = f.read()
 | 
			
		||||
 | 
			
		||||
header = oldreadme[:oldreadme.index('# OPTIONS')]
 | 
			
		||||
# footer = oldreadme[oldreadme.index('# CONFIGURATION'):]
 | 
			
		||||
header = oldreadme[:oldreadme.index('## General Options:')]
 | 
			
		||||
footer = oldreadme[oldreadme.index('# CONFIGURATION'):]
 | 
			
		||||
 | 
			
		||||
options = helptext[helptext.index('  General Options:') + 19:]
 | 
			
		||||
options = helptext[helptext.index('  General Options:'):]
 | 
			
		||||
options = re.sub(r'(?m)^  (\w.+)$', r'## \1', options)
 | 
			
		||||
options = '# OPTIONS\n' + options + '\n'
 | 
			
		||||
options = options + '\n'
 | 
			
		||||
 | 
			
		||||
with io.open(README_FILE, 'w', encoding='utf-8') as f:
 | 
			
		||||
    f.write(header)
 | 
			
		||||
    f.write(options)
 | 
			
		||||
    # f.write(footer)
 | 
			
		||||
    f.write(footer)
 | 
			
		||||
 
 | 
			
		||||
@@ -1,3 +1,4 @@
 | 
			
		||||
# Unused
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
# IMPORTANT: the following assumptions are made
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										17
									
								
								devscripts/run_tests.bat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								devscripts/run_tests.bat
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
			
		||||
@echo off
 | 
			
		||||
 | 
			
		||||
rem Keep this list in sync with the `offlinetest` target in Makefile
 | 
			
		||||
set DOWNLOAD_TESTS="age_restriction^|download^|iqiyi_sdk_interpreter^|socks^|subtitles^|write_annotations^|youtube_lists^|youtube_signature"
 | 
			
		||||
 | 
			
		||||
if "%YTDL_TEST_SET%" == "core" (
 | 
			
		||||
    set test_set="-I test_("%DOWNLOAD_TESTS%")\.py"
 | 
			
		||||
    set multiprocess_args=""
 | 
			
		||||
) else if "%YTDL_TEST_SET%" == "download" (
 | 
			
		||||
    set test_set="-I test_(?!"%DOWNLOAD_TESTS%").+\.py"
 | 
			
		||||
    set multiprocess_args="--processes=4 --process-timeout=540"
 | 
			
		||||
) else (
 | 
			
		||||
    echo YTDL_TEST_SET is not set or invalid
 | 
			
		||||
    exit /b 1
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
nosetests test --verbose %test_set:"=% %multiprocess_args:"=%
 | 
			
		||||
@@ -1,3 +1,5 @@
 | 
			
		||||
# Unused
 | 
			
		||||
 | 
			
		||||
#!/usr/bin/env python
 | 
			
		||||
from __future__ import unicode_literals
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user