From e870399af1fd282b6d2de8a864f7b3b0c466b820 Mon Sep 17 00:00:00 2001 From: K4YT3X Date: Tue, 6 Jul 2021 00:56:12 +0000 Subject: [PATCH] moved src to video2x for PyPI --- pyproject.toml | 3 ++ setup.cfg | 34 ++++++++++++++++++ {src => video2x}/README.md | 0 {src => video2x}/bilogger.py | 0 {src => video2x}/build.ps1 | 0 {src => video2x}/exceptions.py | 0 {src => video2x}/generate_pot.ps1 | 0 {src => video2x}/image_cleaner.py | 0 {src => video2x}/images/video2x-banner.png | Bin {src => video2x}/images/video2x-banner.psd | Bin .../images/video2x-github-social-preview.png | Bin .../images/video2x-github-social-preview.psd | Bin {src => video2x}/images/video2x-icon.psd | Bin {src => video2x}/images/video2x-logo.psd | Bin .../images/video2x-workflow-en_US.png | Bin .../images/video2x-workflow-en_US.psd | Bin .../images/video2x-workflow-zh_CN.png | Bin .../images/video2x-workflow-zh_CN.psd | Bin {src => video2x}/images/video2x.ico | Bin {src => video2x}/images/video2x.png | Bin .../locale/zh_CN/LC_MESSAGES/video2x.mo | Bin .../locale/zh_CN/LC_MESSAGES/zh_CN.mo | Bin .../locale/zh_CN/LC_MESSAGES/zh_CN.po | 0 {src => video2x}/progress_monitor.py | 0 .../pyinstaller/7z1900-extra/7za.dll | Bin .../pyinstaller/7z1900-extra/7za.exe | Bin .../pyinstaller/7z1900-extra/7zxa.dll | Bin .../pyinstaller/7z1900-extra/Far/7-ZipEng.hlf | 0 .../pyinstaller/7z1900-extra/Far/7-ZipEng.lng | 0 .../pyinstaller/7z1900-extra/Far/7-ZipFar.dll | Bin .../7z1900-extra/Far/7-ZipFar64.dll | Bin .../pyinstaller/7z1900-extra/Far/7-ZipRus.hlf | 0 .../pyinstaller/7z1900-extra/Far/7-ZipRus.lng | 0 .../pyinstaller/7z1900-extra/Far/7zToFar.ini | 0 .../pyinstaller/7z1900-extra/Far/far7z.reg | 0 .../pyinstaller/7z1900-extra/Far/far7z.txt | 0 .../pyinstaller/7z1900-extra/License.txt | 0 .../pyinstaller/7z1900-extra/history.txt | 0 .../pyinstaller/7z1900-extra/readme.txt | 0 .../pyinstaller/7z1900-extra/x64/7za.dll | Bin .../pyinstaller/7z1900-extra/x64/7za.exe | Bin .../pyinstaller/7z1900-extra/x64/7zxa.dll | Bin .../pyinstaller/hooks/hook-patoolib.py | 0 {src => video2x}/requirements.txt | 0 {src => video2x}/upscaler.py | 0 {src => video2x}/video2x.pot | 0 {src => video2x}/video2x.py | 0 {src => video2x}/video2x.yaml | 0 {src => video2x}/video2x_gui.py | 0 {src => video2x}/video2x_gui.pyproject | 0 {src => video2x}/video2x_gui.ui | 0 {src => video2x}/video2x_setup.py | 0 {src => video2x}/video2x_setup_ubuntu.sh | 0 {src => video2x}/wrappers/anime4kcpp.py | 0 {src => video2x}/wrappers/ffmpeg.py | 0 {src => video2x}/wrappers/gifski.py | 0 .../wrappers/realsr_ncnn_vulkan.py | 0 {src => video2x}/wrappers/srmd_ncnn_vulkan.py | 0 {src => video2x}/wrappers/waifu2x_caffe.py | 0 .../wrappers/waifu2x_converter_cpp.py | 0 .../wrappers/waifu2x_ncnn_vulkan.py | 0 61 files changed, 37 insertions(+) create mode 100644 pyproject.toml create mode 100644 setup.cfg rename {src => video2x}/README.md (100%) rename {src => video2x}/bilogger.py (100%) rename {src => video2x}/build.ps1 (100%) rename {src => video2x}/exceptions.py (100%) rename {src => video2x}/generate_pot.ps1 (100%) rename {src => video2x}/image_cleaner.py (100%) rename {src => video2x}/images/video2x-banner.png (100%) rename {src => video2x}/images/video2x-banner.psd (100%) rename {src => video2x}/images/video2x-github-social-preview.png (100%) rename {src => video2x}/images/video2x-github-social-preview.psd (100%) rename {src => video2x}/images/video2x-icon.psd (100%) rename {src => video2x}/images/video2x-logo.psd (100%) rename {src => video2x}/images/video2x-workflow-en_US.png (100%) rename {src => video2x}/images/video2x-workflow-en_US.psd (100%) rename {src => video2x}/images/video2x-workflow-zh_CN.png (100%) rename {src => video2x}/images/video2x-workflow-zh_CN.psd (100%) rename {src => video2x}/images/video2x.ico (100%) rename {src => video2x}/images/video2x.png (100%) rename {src => video2x}/locale/zh_CN/LC_MESSAGES/video2x.mo (100%) rename {src => video2x}/locale/zh_CN/LC_MESSAGES/zh_CN.mo (100%) rename {src => video2x}/locale/zh_CN/LC_MESSAGES/zh_CN.po (100%) rename {src => video2x}/progress_monitor.py (100%) rename {src => video2x}/pyinstaller/7z1900-extra/7za.dll (100%) rename {src => video2x}/pyinstaller/7z1900-extra/7za.exe (100%) rename {src => video2x}/pyinstaller/7z1900-extra/7zxa.dll (100%) rename {src => video2x}/pyinstaller/7z1900-extra/Far/7-ZipEng.hlf (100%) rename {src => video2x}/pyinstaller/7z1900-extra/Far/7-ZipEng.lng (100%) rename {src => video2x}/pyinstaller/7z1900-extra/Far/7-ZipFar.dll (100%) rename {src => video2x}/pyinstaller/7z1900-extra/Far/7-ZipFar64.dll (100%) rename {src => video2x}/pyinstaller/7z1900-extra/Far/7-ZipRus.hlf (100%) rename {src => video2x}/pyinstaller/7z1900-extra/Far/7-ZipRus.lng (100%) rename {src => video2x}/pyinstaller/7z1900-extra/Far/7zToFar.ini (100%) rename {src => video2x}/pyinstaller/7z1900-extra/Far/far7z.reg (100%) rename {src => video2x}/pyinstaller/7z1900-extra/Far/far7z.txt (100%) rename {src => video2x}/pyinstaller/7z1900-extra/License.txt (100%) rename {src => video2x}/pyinstaller/7z1900-extra/history.txt (100%) rename {src => video2x}/pyinstaller/7z1900-extra/readme.txt (100%) rename {src => video2x}/pyinstaller/7z1900-extra/x64/7za.dll (100%) rename {src => video2x}/pyinstaller/7z1900-extra/x64/7za.exe (100%) rename {src => video2x}/pyinstaller/7z1900-extra/x64/7zxa.dll (100%) rename {src => video2x}/pyinstaller/hooks/hook-patoolib.py (100%) rename {src => video2x}/requirements.txt (100%) rename {src => video2x}/upscaler.py (100%) rename {src => video2x}/video2x.pot (100%) rename {src => video2x}/video2x.py (100%) rename {src => video2x}/video2x.yaml (100%) rename {src => video2x}/video2x_gui.py (100%) rename {src => video2x}/video2x_gui.pyproject (100%) rename {src => video2x}/video2x_gui.ui (100%) rename {src => video2x}/video2x_setup.py (100%) rename {src => video2x}/video2x_setup_ubuntu.sh (100%) rename {src => video2x}/wrappers/anime4kcpp.py (100%) rename {src => video2x}/wrappers/ffmpeg.py (100%) rename {src => video2x}/wrappers/gifski.py (100%) rename {src => video2x}/wrappers/realsr_ncnn_vulkan.py (100%) rename {src => video2x}/wrappers/srmd_ncnn_vulkan.py (100%) rename {src => video2x}/wrappers/waifu2x_caffe.py (100%) rename {src => video2x}/wrappers/waifu2x_converter_cpp.py (100%) rename {src => video2x}/wrappers/waifu2x_ncnn_vulkan.py (100%) diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..10ace73 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools>=44", "wheel", "setuptools_scm[toml]>=3.4.3"] +build-backend = "setuptools.build_meta" diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..e49d3b7 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,34 @@ +# Name: Video2X PyPI setup file +# Creator: K4YT3X +# Date Created: June 17, 2021 +# Last Modified: July 5, 2021 + +# build & publish commands +# pip3 install --user -U setuptools wheel twine build +# python3 -m build -nx . +# python3 -m twine upload --repository pypi dist/* + +[metadata] +name = video2x +version = 5.0.0-beta +author = K4YT3X +author_email = k4yt3x@k4yt3x.com +license = GNU General Public License v3.0 +description = A lossless video/GIF/image upscaler +url = https://github.com/k4yt3x/video2x +long_description = file: README.md +long_description_content_type = text/markdown +classifiers = + Topic :: Multimedia :: Video + Environment :: Console + Programming Language :: Python + Programming Language :: Python :: 3 + Operating System :: OS Independent + +[options] +packages = find: +install_requires = ffmpeg-python; loguru; opencv-python; pillow; rich; tqdm +python_requires = >=3.6 + +[options.entry_points] +console_scripts = video2x = video2x:main diff --git a/src/README.md b/video2x/README.md similarity index 100% rename from src/README.md rename to video2x/README.md diff --git a/src/bilogger.py b/video2x/bilogger.py similarity index 100% rename from src/bilogger.py rename to video2x/bilogger.py diff --git a/src/build.ps1 b/video2x/build.ps1 similarity index 100% rename from src/build.ps1 rename to video2x/build.ps1 diff --git a/src/exceptions.py b/video2x/exceptions.py similarity index 100% rename from src/exceptions.py rename to video2x/exceptions.py diff --git a/src/generate_pot.ps1 b/video2x/generate_pot.ps1 similarity index 100% rename from src/generate_pot.ps1 rename to video2x/generate_pot.ps1 diff --git a/src/image_cleaner.py b/video2x/image_cleaner.py similarity index 100% rename from src/image_cleaner.py rename to video2x/image_cleaner.py diff --git a/src/images/video2x-banner.png b/video2x/images/video2x-banner.png similarity index 100% rename from src/images/video2x-banner.png rename to video2x/images/video2x-banner.png diff --git a/src/images/video2x-banner.psd b/video2x/images/video2x-banner.psd similarity index 100% rename from src/images/video2x-banner.psd rename to video2x/images/video2x-banner.psd diff --git a/src/images/video2x-github-social-preview.png b/video2x/images/video2x-github-social-preview.png similarity index 100% rename from src/images/video2x-github-social-preview.png rename to video2x/images/video2x-github-social-preview.png diff --git a/src/images/video2x-github-social-preview.psd b/video2x/images/video2x-github-social-preview.psd similarity index 100% rename from src/images/video2x-github-social-preview.psd rename to video2x/images/video2x-github-social-preview.psd diff --git a/src/images/video2x-icon.psd b/video2x/images/video2x-icon.psd similarity index 100% rename from src/images/video2x-icon.psd rename to video2x/images/video2x-icon.psd diff --git a/src/images/video2x-logo.psd b/video2x/images/video2x-logo.psd similarity index 100% rename from src/images/video2x-logo.psd rename to video2x/images/video2x-logo.psd diff --git a/src/images/video2x-workflow-en_US.png b/video2x/images/video2x-workflow-en_US.png similarity index 100% rename from src/images/video2x-workflow-en_US.png rename to video2x/images/video2x-workflow-en_US.png diff --git a/src/images/video2x-workflow-en_US.psd b/video2x/images/video2x-workflow-en_US.psd similarity index 100% rename from src/images/video2x-workflow-en_US.psd rename to video2x/images/video2x-workflow-en_US.psd diff --git a/src/images/video2x-workflow-zh_CN.png b/video2x/images/video2x-workflow-zh_CN.png similarity index 100% rename from src/images/video2x-workflow-zh_CN.png rename to video2x/images/video2x-workflow-zh_CN.png diff --git a/src/images/video2x-workflow-zh_CN.psd b/video2x/images/video2x-workflow-zh_CN.psd similarity index 100% rename from src/images/video2x-workflow-zh_CN.psd rename to video2x/images/video2x-workflow-zh_CN.psd diff --git a/src/images/video2x.ico b/video2x/images/video2x.ico similarity index 100% rename from src/images/video2x.ico rename to video2x/images/video2x.ico diff --git a/src/images/video2x.png b/video2x/images/video2x.png similarity index 100% rename from src/images/video2x.png rename to video2x/images/video2x.png diff --git a/src/locale/zh_CN/LC_MESSAGES/video2x.mo b/video2x/locale/zh_CN/LC_MESSAGES/video2x.mo similarity index 100% rename from src/locale/zh_CN/LC_MESSAGES/video2x.mo rename to video2x/locale/zh_CN/LC_MESSAGES/video2x.mo diff --git a/src/locale/zh_CN/LC_MESSAGES/zh_CN.mo b/video2x/locale/zh_CN/LC_MESSAGES/zh_CN.mo similarity index 100% rename from src/locale/zh_CN/LC_MESSAGES/zh_CN.mo rename to video2x/locale/zh_CN/LC_MESSAGES/zh_CN.mo diff --git a/src/locale/zh_CN/LC_MESSAGES/zh_CN.po b/video2x/locale/zh_CN/LC_MESSAGES/zh_CN.po similarity index 100% rename from src/locale/zh_CN/LC_MESSAGES/zh_CN.po rename to video2x/locale/zh_CN/LC_MESSAGES/zh_CN.po diff --git a/src/progress_monitor.py b/video2x/progress_monitor.py similarity index 100% rename from src/progress_monitor.py rename to video2x/progress_monitor.py diff --git a/src/pyinstaller/7z1900-extra/7za.dll b/video2x/pyinstaller/7z1900-extra/7za.dll similarity index 100% rename from src/pyinstaller/7z1900-extra/7za.dll rename to video2x/pyinstaller/7z1900-extra/7za.dll diff --git a/src/pyinstaller/7z1900-extra/7za.exe b/video2x/pyinstaller/7z1900-extra/7za.exe similarity index 100% rename from src/pyinstaller/7z1900-extra/7za.exe rename to video2x/pyinstaller/7z1900-extra/7za.exe diff --git a/src/pyinstaller/7z1900-extra/7zxa.dll b/video2x/pyinstaller/7z1900-extra/7zxa.dll similarity index 100% rename from src/pyinstaller/7z1900-extra/7zxa.dll rename to video2x/pyinstaller/7z1900-extra/7zxa.dll diff --git a/src/pyinstaller/7z1900-extra/Far/7-ZipEng.hlf b/video2x/pyinstaller/7z1900-extra/Far/7-ZipEng.hlf similarity index 100% rename from src/pyinstaller/7z1900-extra/Far/7-ZipEng.hlf rename to video2x/pyinstaller/7z1900-extra/Far/7-ZipEng.hlf diff --git a/src/pyinstaller/7z1900-extra/Far/7-ZipEng.lng b/video2x/pyinstaller/7z1900-extra/Far/7-ZipEng.lng similarity index 100% rename from src/pyinstaller/7z1900-extra/Far/7-ZipEng.lng rename to video2x/pyinstaller/7z1900-extra/Far/7-ZipEng.lng diff --git a/src/pyinstaller/7z1900-extra/Far/7-ZipFar.dll b/video2x/pyinstaller/7z1900-extra/Far/7-ZipFar.dll similarity index 100% rename from src/pyinstaller/7z1900-extra/Far/7-ZipFar.dll rename to video2x/pyinstaller/7z1900-extra/Far/7-ZipFar.dll diff --git a/src/pyinstaller/7z1900-extra/Far/7-ZipFar64.dll b/video2x/pyinstaller/7z1900-extra/Far/7-ZipFar64.dll similarity index 100% rename from src/pyinstaller/7z1900-extra/Far/7-ZipFar64.dll rename to video2x/pyinstaller/7z1900-extra/Far/7-ZipFar64.dll diff --git a/src/pyinstaller/7z1900-extra/Far/7-ZipRus.hlf b/video2x/pyinstaller/7z1900-extra/Far/7-ZipRus.hlf similarity index 100% rename from src/pyinstaller/7z1900-extra/Far/7-ZipRus.hlf rename to video2x/pyinstaller/7z1900-extra/Far/7-ZipRus.hlf diff --git a/src/pyinstaller/7z1900-extra/Far/7-ZipRus.lng b/video2x/pyinstaller/7z1900-extra/Far/7-ZipRus.lng similarity index 100% rename from src/pyinstaller/7z1900-extra/Far/7-ZipRus.lng rename to video2x/pyinstaller/7z1900-extra/Far/7-ZipRus.lng diff --git a/src/pyinstaller/7z1900-extra/Far/7zToFar.ini b/video2x/pyinstaller/7z1900-extra/Far/7zToFar.ini similarity index 100% rename from src/pyinstaller/7z1900-extra/Far/7zToFar.ini rename to video2x/pyinstaller/7z1900-extra/Far/7zToFar.ini diff --git a/src/pyinstaller/7z1900-extra/Far/far7z.reg b/video2x/pyinstaller/7z1900-extra/Far/far7z.reg similarity index 100% rename from src/pyinstaller/7z1900-extra/Far/far7z.reg rename to video2x/pyinstaller/7z1900-extra/Far/far7z.reg diff --git a/src/pyinstaller/7z1900-extra/Far/far7z.txt b/video2x/pyinstaller/7z1900-extra/Far/far7z.txt similarity index 100% rename from src/pyinstaller/7z1900-extra/Far/far7z.txt rename to video2x/pyinstaller/7z1900-extra/Far/far7z.txt diff --git a/src/pyinstaller/7z1900-extra/License.txt b/video2x/pyinstaller/7z1900-extra/License.txt similarity index 100% rename from src/pyinstaller/7z1900-extra/License.txt rename to video2x/pyinstaller/7z1900-extra/License.txt diff --git a/src/pyinstaller/7z1900-extra/history.txt b/video2x/pyinstaller/7z1900-extra/history.txt similarity index 100% rename from src/pyinstaller/7z1900-extra/history.txt rename to video2x/pyinstaller/7z1900-extra/history.txt diff --git a/src/pyinstaller/7z1900-extra/readme.txt b/video2x/pyinstaller/7z1900-extra/readme.txt similarity index 100% rename from src/pyinstaller/7z1900-extra/readme.txt rename to video2x/pyinstaller/7z1900-extra/readme.txt diff --git a/src/pyinstaller/7z1900-extra/x64/7za.dll b/video2x/pyinstaller/7z1900-extra/x64/7za.dll similarity index 100% rename from src/pyinstaller/7z1900-extra/x64/7za.dll rename to video2x/pyinstaller/7z1900-extra/x64/7za.dll diff --git a/src/pyinstaller/7z1900-extra/x64/7za.exe b/video2x/pyinstaller/7z1900-extra/x64/7za.exe similarity index 100% rename from src/pyinstaller/7z1900-extra/x64/7za.exe rename to video2x/pyinstaller/7z1900-extra/x64/7za.exe diff --git a/src/pyinstaller/7z1900-extra/x64/7zxa.dll b/video2x/pyinstaller/7z1900-extra/x64/7zxa.dll similarity index 100% rename from src/pyinstaller/7z1900-extra/x64/7zxa.dll rename to video2x/pyinstaller/7z1900-extra/x64/7zxa.dll diff --git a/src/pyinstaller/hooks/hook-patoolib.py b/video2x/pyinstaller/hooks/hook-patoolib.py similarity index 100% rename from src/pyinstaller/hooks/hook-patoolib.py rename to video2x/pyinstaller/hooks/hook-patoolib.py diff --git a/src/requirements.txt b/video2x/requirements.txt similarity index 100% rename from src/requirements.txt rename to video2x/requirements.txt diff --git a/src/upscaler.py b/video2x/upscaler.py similarity index 100% rename from src/upscaler.py rename to video2x/upscaler.py diff --git a/src/video2x.pot b/video2x/video2x.pot similarity index 100% rename from src/video2x.pot rename to video2x/video2x.pot diff --git a/src/video2x.py b/video2x/video2x.py similarity index 100% rename from src/video2x.py rename to video2x/video2x.py diff --git a/src/video2x.yaml b/video2x/video2x.yaml similarity index 100% rename from src/video2x.yaml rename to video2x/video2x.yaml diff --git a/src/video2x_gui.py b/video2x/video2x_gui.py similarity index 100% rename from src/video2x_gui.py rename to video2x/video2x_gui.py diff --git a/src/video2x_gui.pyproject b/video2x/video2x_gui.pyproject similarity index 100% rename from src/video2x_gui.pyproject rename to video2x/video2x_gui.pyproject diff --git a/src/video2x_gui.ui b/video2x/video2x_gui.ui similarity index 100% rename from src/video2x_gui.ui rename to video2x/video2x_gui.ui diff --git a/src/video2x_setup.py b/video2x/video2x_setup.py similarity index 100% rename from src/video2x_setup.py rename to video2x/video2x_setup.py diff --git a/src/video2x_setup_ubuntu.sh b/video2x/video2x_setup_ubuntu.sh similarity index 100% rename from src/video2x_setup_ubuntu.sh rename to video2x/video2x_setup_ubuntu.sh diff --git a/src/wrappers/anime4kcpp.py b/video2x/wrappers/anime4kcpp.py similarity index 100% rename from src/wrappers/anime4kcpp.py rename to video2x/wrappers/anime4kcpp.py diff --git a/src/wrappers/ffmpeg.py b/video2x/wrappers/ffmpeg.py similarity index 100% rename from src/wrappers/ffmpeg.py rename to video2x/wrappers/ffmpeg.py diff --git a/src/wrappers/gifski.py b/video2x/wrappers/gifski.py similarity index 100% rename from src/wrappers/gifski.py rename to video2x/wrappers/gifski.py diff --git a/src/wrappers/realsr_ncnn_vulkan.py b/video2x/wrappers/realsr_ncnn_vulkan.py similarity index 100% rename from src/wrappers/realsr_ncnn_vulkan.py rename to video2x/wrappers/realsr_ncnn_vulkan.py diff --git a/src/wrappers/srmd_ncnn_vulkan.py b/video2x/wrappers/srmd_ncnn_vulkan.py similarity index 100% rename from src/wrappers/srmd_ncnn_vulkan.py rename to video2x/wrappers/srmd_ncnn_vulkan.py diff --git a/src/wrappers/waifu2x_caffe.py b/video2x/wrappers/waifu2x_caffe.py similarity index 100% rename from src/wrappers/waifu2x_caffe.py rename to video2x/wrappers/waifu2x_caffe.py diff --git a/src/wrappers/waifu2x_converter_cpp.py b/video2x/wrappers/waifu2x_converter_cpp.py similarity index 100% rename from src/wrappers/waifu2x_converter_cpp.py rename to video2x/wrappers/waifu2x_converter_cpp.py diff --git a/src/wrappers/waifu2x_ncnn_vulkan.py b/video2x/wrappers/waifu2x_ncnn_vulkan.py similarity index 100% rename from src/wrappers/waifu2x_ncnn_vulkan.py rename to video2x/wrappers/waifu2x_ncnn_vulkan.py