[~] Refactor
This commit is contained in:
		
							parent
							
								
									fadd95cef3
								
							
						
					
					
						commit
						27af208437
					
				
							
								
								
									
										12
									
								
								Makefile
									
									
									
									
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										12
									
								
								Makefile
									
									
									
									
									
								
							@ -1,14 +1,20 @@
 | 
			
		||||
.PHONY: python_clean_online_fxreader_vpn
 | 
			
		||||
 | 
			
		||||
host_deps:
 | 
			
		||||
	./m host_deps
 | 
			
		||||
 | 
			
		||||
python_clean:
 | 
			
		||||
python_clean_online_fxreader_vpn:
 | 
			
		||||
	rm -fr \
 | 
			
		||||
		deps/com.github.aiortc.aiortc/src/online_fxreader/vpn/dist;
 | 
			
		||||
 | 
			
		||||
python_clean: python_clean_online_fxreader_vpn
 | 
			
		||||
	rm -fr \
 | 
			
		||||
		~/.local/bin/env3 \
 | 
			
		||||
		deps/com.github.aiortc.aiortc/dist \
 | 
			
		||||
		deps/com.github.aiortc.aiortc/src/online_fxreader/vpn/dist;
 | 
			
		||||
 | 
			
		||||
python_put:
 | 
			
		||||
	[[ -f ~/.local/bin/env3 ]] || (\
 | 
			
		||||
	[[ -d ~/.local/bin/env3 ]] || (\
 | 
			
		||||
		uv venv --system-site-packages --seed ~/.local/bin/env3 && \
 | 
			
		||||
		~/.local/bin/env3/bin/python3 -m pip install uv \
 | 
			
		||||
	);
 | 
			
		||||
@ -16,7 +22,7 @@ python_put:
 | 
			
		||||
		deps/com.github.aiortc.aiortc/ \
 | 
			
		||||
		deps/com.github.aiortc.aiortc/src/online_fxreader/vpn; do \
 | 
			
		||||
		echo $$f; \
 | 
			
		||||
		[[ -f $$f/dist ]] && continue; \
 | 
			
		||||
		[[ -d $$f/dist ]] && continue; \
 | 
			
		||||
		python3 -m build --installer uv $$f; \
 | 
			
		||||
		~/.local/bin/env3/bin/python3 -m uv pip install $$f/dist/*.whl; \
 | 
			
		||||
	done
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										5
									
								
								_m.py
									
									
									
									
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										5
									
								
								_m.py
									
									
									
									
									
								
							@ -224,7 +224,10 @@ def mypy(argv: list[str]) -> None:
 | 
			
		||||
 | 
			
		||||
    h = {
 | 
			
		||||
        k : len(v)
 | 
			
		||||
        for k, v in g.items()
 | 
			
		||||
        for k, v in sorted(
 | 
			
		||||
            list(g.items()),
 | 
			
		||||
            key=lambda x: x[0],
 | 
			
		||||
        )
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if options.format == MypyFormat.vscode:
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										2
									
								
								deps/com.github.aiortc.aiortc
									
									
									
									
										vendored
									
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										2
									
								
								deps/com.github.aiortc.aiortc
									
									
									
									
										vendored
									
									
								
							@ -1 +1 @@
 | 
			
		||||
Subproject commit 4aed4f16309082285e27082ea52ee2251e8159c6
 | 
			
		||||
Subproject commit 241b7adf7900533d552507419f1d0e2807c9bbb6
 | 
			
		||||
@ -1590,6 +1590,7 @@ def vpn(argv: list[str]) -> None:
 | 
			
		||||
    subprocess.check_call([
 | 
			
		||||
        'sudo',
 | 
			
		||||
        *python_path,
 | 
			
		||||
        '-B',
 | 
			
		||||
        '-m',
 | 
			
		||||
        'online_fxreader.vpn.vpn',
 | 
			
		||||
        *argv,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user