This commit is contained in:
lz_db
2026-10-16 22:48:30 +08:00
parent 190de72571
commit 0b36fd3383
3161 changed files with 12787 additions and 77274 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ APP_HOST=127.0.0.1
APP_PORT=8000
# ===== 数据库 / Redis =====
DATABASE_URL=mysql+aiomysql://video:Vd0e56543fb8f66faba0a5@127.0.0.1:3306/video?charset=utf8mb4
DATABASE_URL=mysql+aiomysql://root:256kb.cn@127.0.0.1:3307/video?charset=utf8mb4
REDIS_URL=redis://127.0.0.1:6379/0
CELERY_BROKER_URL=redis://127.0.0.1:6379/1
CELERY_RESULT_BACKEND=redis://127.0.0.1:6379/2
+4 -4
View File
@@ -35,11 +35,11 @@ deactivate () {
# unset irrelevant variables
deactivate nondestructive
VIRTUAL_ENV=/root/project/video/server/.venv
VIRTUAL_ENV="/root/project/video/server/.venv"
export VIRTUAL_ENV
_OLD_VIRTUAL_PATH="$PATH"
PATH="$VIRTUAL_ENV/"bin":$PATH"
PATH="$VIRTUAL_ENV/bin:$PATH"
export PATH
# unset PYTHONHOME if set
@@ -52,9 +52,9 @@ fi
if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then
_OLD_VIRTUAL_PS1="${PS1:-}"
PS1='(.venv) '"${PS1:-}"
PS1="(.venv) ${PS1:-}"
export PS1
VIRTUAL_ENV_PROMPT='(.venv) '
VIRTUAL_ENV_PROMPT="(.venv) "
export VIRTUAL_ENV_PROMPT
fi
+4 -4
View File
@@ -8,17 +8,17 @@ alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PA
# Unset irrelevant variables.
deactivate nondestructive
setenv VIRTUAL_ENV /root/project/video/server/.venv
setenv VIRTUAL_ENV "/root/project/video/server/.venv"
set _OLD_VIRTUAL_PATH="$PATH"
setenv PATH "$VIRTUAL_ENV/"bin":$PATH"
setenv PATH "$VIRTUAL_ENV/bin:$PATH"
set _OLD_VIRTUAL_PROMPT="$prompt"
if (! "$?VIRTUAL_ENV_DISABLE_PROMPT") then
set prompt = '(.venv) '"$prompt"
setenv VIRTUAL_ENV_PROMPT '(.venv) '
set prompt = "(.venv) $prompt"
setenv VIRTUAL_ENV_PROMPT "(.venv) "
endif
alias pydoc python -m pydoc
+4 -4
View File
@@ -33,10 +33,10 @@ end
# Unset irrelevant variables.
deactivate nondestructive
set -gx VIRTUAL_ENV /root/project/video/server/.venv
set -gx VIRTUAL_ENV "/root/project/video/server/.venv"
set -gx _OLD_VIRTUAL_PATH $PATH
set -gx PATH "$VIRTUAL_ENV/"bin $PATH
set -gx PATH "$VIRTUAL_ENV/bin" $PATH
# Unset PYTHONHOME if set.
if set -q PYTHONHOME
@@ -56,7 +56,7 @@ if test -z "$VIRTUAL_ENV_DISABLE_PROMPT"
set -l old_status $status
# Output the venv prompt; color taken from the blue of the Python logo.
printf "%s%s%s" (set_color 4B8BBE) '(.venv) ' (set_color normal)
printf "%s%s%s" (set_color 4B8BBE) "(.venv) " (set_color normal)
# Restore the return status of the previous command.
echo "exit $old_status" | .
@@ -65,5 +65,5 @@ if test -z "$VIRTUAL_ENV_DISABLE_PROMPT"
end
set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV"
set -gx VIRTUAL_ENV_PROMPT '(.venv) '
set -gx VIRTUAL_ENV_PROMPT "(.venv) "
end
+1 -1
View File
@@ -1,4 +1,4 @@
#!/root/project/video/server/.venv/bin/python
#!/root/project/video/server/.venv/bin/python3.11
import sys
from alembic.config import main
if __name__ == '__main__':
+1 -1
View File
@@ -1,4 +1,4 @@
#!/root/project/video/server/.venv/bin/python
#!/root/project/video/server/.venv/bin/python3.11
import sys
from celery.__main__ import main
if __name__ == '__main__':
+1 -1
View File
@@ -1,4 +1,4 @@
#!/root/project/video/server/.venv/bin/python
#!/root/project/video/server/.venv/bin/python3.11
import sys
from cffi._cffi_gen_src import run
if __name__ == '__main__':
+1 -1
View File
@@ -1,4 +1,4 @@
#!/root/project/video/server/.venv/bin/python
#!/root/project/video/server/.venv/bin/python3.11
import sys
from dotenv.__main__ import cli
if __name__ == '__main__':
+1 -1
View File
@@ -1,4 +1,4 @@
#!/root/project/video/server/.venv/bin/python
#!/root/project/video/server/.venv/bin/python3.11
import sys
from fastapi.cli import main
if __name__ == '__main__':
+1 -1
View File
@@ -1,4 +1,4 @@
#!/root/project/video/server/.venv/bin/python
#!/root/project/video/server/.venv/bin/python3.11
import sys
from httpx import main
if __name__ == '__main__':
+1 -1
View File
@@ -1,4 +1,4 @@
#!/root/project/video/server/.venv/bin/python
#!/root/project/video/server/.venv/bin/python3.11
import sys
from idna.cli import main
if __name__ == '__main__':
+1 -1
View File
@@ -1,4 +1,4 @@
#!/root/project/video/server/.venv/bin/python
#!/root/project/video/server/.venv/bin/python3.11
import sys
from mako.cmd import cmdline
if __name__ == '__main__':
+1 -1
View File
@@ -1,4 +1,4 @@
#!/root/project/video/server/.venv/bin/python
#!/root/project/video/server/.venv/bin/python3.11
# -*- coding: utf-8 -*-
import re
import sys
+1 -1
View File
@@ -1,4 +1,4 @@
#!/root/project/video/server/.venv/bin/python
#!/root/project/video/server/.venv/bin/python3.11
# -*- coding: utf-8 -*-
import re
import sys
+1 -1
View File
@@ -1,4 +1,4 @@
#!/root/project/video/server/.venv/bin/python
#!/root/project/video/server/.venv/bin/python3.11
# -*- coding: utf-8 -*-
import re
import sys
+1 -1
View File
@@ -1 +1 @@
/root/.pyenv/versions/3.11.14/bin/python
python3.11
+1 -1
View File
@@ -1 +1 @@
python
python3.11
+1 -1
View File
@@ -1 +1 @@
python
/root/.pyenv/versions/3.11.10/bin/python3.11
+1 -1
View File
@@ -1,4 +1,4 @@
#!/root/project/video/server/.venv/bin/python
#!/root/project/video/server/.venv/bin/python3.11
import sys
from uvicorn.main import main
if __name__ == '__main__':
+1 -1
View File
@@ -1,4 +1,4 @@
#!/root/project/video/server/.venv/bin/python
#!/root/project/video/server/.venv/bin/python3.11
import sys
from watchfiles.cli import cli
if __name__ == '__main__':
+1 -1
View File
@@ -1,4 +1,4 @@
#!/root/project/video/server/.venv/bin/python
#!/root/project/video/server/.venv/bin/python3.11
import sys
from websockets.cli import main
if __name__ == '__main__':
@@ -1,15 +1,18 @@
# don't import any costly modules
import os
import sys
import os
report_url = (
"https://github.com/pypa/setuptools/issues/new?template=distutils-deprecation.yml"
)
is_pypy = '__pypy__' in sys.builtin_module_names
def warn_distutils_present():
if 'distutils' not in sys.modules:
return
if is_pypy and sys.version_info < (3, 7):
# PyPy for 3.6 unconditionally imports distutils, so bypass the warning
# https://foss.heptapod.net/pypy/pypy/-/blob/be829135bc0d758997b3566062999ee8b23872b4/lib-python/3/site.py#L250
return
import warnings
warnings.warn(
@@ -27,12 +30,7 @@ def clear_distutils():
return
import warnings
warnings.warn(
"Setuptools is replacing distutils. Support for replacing "
"an already imported distutils is deprecated. In the future, "
"this condition will fail. "
f"Register concerns at {report_url}"
)
warnings.warn("Setuptools is replacing distutils.")
mods = [
name
for name in sys.modules
@@ -47,16 +45,6 @@ def enabled():
Allow selection of distutils by environment variable.
"""
which = os.environ.get('SETUPTOOLS_USE_DISTUTILS', 'local')
if which == 'stdlib':
import warnings
warnings.warn(
"Reliance on distutils from stdlib is deprecated. Users "
"must rely on setuptools to provide the distutils module. "
"Avoid importing distutils or import setuptools first, "
"and avoid setting SETUPTOOLS_USE_DISTUTILS=stdlib. "
f"Register concerns at {report_url}"
)
return which == 'local'
@@ -90,7 +78,7 @@ def do_override():
class _TrivialRe:
def __init__(self, *patterns) -> None:
def __init__(self, *patterns):
self._patterns = patterns
def match(self, string):
@@ -102,7 +90,7 @@ class DistutilsMetaFinder:
# optimization: only consider top level modules and those
# found in the CPython test suite.
if path is not None and not fullname.startswith('test.'):
return None
return
method_name = 'spec_for_{fullname}'.format(**locals())
method = getattr(self, method_name, lambda: None)
@@ -110,7 +98,7 @@ class DistutilsMetaFinder:
def spec_for_distutils(self):
if self.is_cpython():
return None
return
import importlib
import importlib.abc
@@ -127,7 +115,7 @@ class DistutilsMetaFinder:
# setuptools from the path but only after the hook
# has been loaded. Ref #2980.
# In either case, fall back to stdlib behavior.
return None
return
class DistutilsLoader(importlib.abc.Loader):
def create_module(self, spec):
@@ -154,7 +142,7 @@ class DistutilsMetaFinder:
Ensure stdlib distutils when running under pip.
See pypa/pip#8761 for rationale.
"""
if sys.version_info >= (3, 12) or self.pip_imported_during_build():
if self.pip_imported_during_build():
return
clear_distutils()
self.spec_for_distutils = lambda: None
@@ -216,24 +204,19 @@ def add_shim():
class shim:
def __enter__(self) -> None:
def __enter__(self):
insert_shim()
def __exit__(self, exc: object, value: object, tb: object) -> None:
_remove_shim()
def __exit__(self, exc, value, tb):
remove_shim()
def insert_shim():
sys.meta_path.insert(0, DISTUTILS_FINDER)
def _remove_shim():
def remove_shim():
try:
sys.meta_path.remove(DISTUTILS_FINDER)
except ValueError:
pass
if sys.version_info < (3, 12):
# DistutilsMetaFinder can only be disabled in Python < 3.12 (PEP 632)
remove_shim = _remove_shim
@@ -1,4 +1,4 @@
../../../bin/alembic,sha256=9gXSpLx4zU0bZBka91vHDlDT0tMVWaH9aO0gF75utBU,188
../../../bin/alembic,sha256=eEZFH1kK-eAKO-tM1gEp02kIuEKmu6koVwjjmv3OoTw,192
alembic-1.20.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
alembic-1.20.0.dist-info/METADATA,sha256=vTLBGMQ5VcEGv6QlWy-1rJ20ELD3JVpMr7FLniIf9Bw,7316
alembic-1.20.0.dist-info/RECORD,,

Some files were not shown because too many files have changed in this diff Show More