From 7639329289fa7b2c259373f2c4345c046dd5bc46 Mon Sep 17 00:00:00 2001 From: cecini Date: Tue, 27 Oct 2020 11:31:17 +0800 Subject: [PATCH] Update dep anki ankirspy to 2.1.36 fix the requirements file create --- poetry.lock | 6 +- pyproject.toml | 4 +- scripts/lock.sh | 10 ++- src/requirements-dev.txt | 153 ++++++++++++++++++++------------------- src/requirements.txt | 37 +++++----- 5 files changed, 110 insertions(+), 100 deletions(-) diff --git a/poetry.lock b/poetry.lock index 3810d88..4649eae 100644 --- a/poetry.lock +++ b/poetry.lock @@ -4,10 +4,10 @@ description = "Anki's library code" name = "anki" optional = false python-versions = ">=3.7" -version = "2.1.32" +version = "2.1.36" [package.dependencies] -ankirspy = "2.1.32" +ankirspy = "2.1.36" beautifulsoup4 = "*" decorator = "*" distro = "*" @@ -25,7 +25,7 @@ description = "Anki's Rust library code Python bindings" name = "ankirspy" optional = false python-versions = "*" -version = "2.1.32" +version = "2.1.36" [[package]] category = "dev" diff --git a/pyproject.toml b/pyproject.toml index f776a08..94649a9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,12 +1,12 @@ [tool.poetry] name = "anki-sync-server" -version = "0.1.0" +version = "2.2.0" description = "Self-hosted Anki Sync Server." authors = ["Vikash Kothary "] [tool.poetry.dependencies] python = "^3.7" -anki = "^2.1.32" +anki = "^2.1.36" beautifulsoup4 = "^4.9.1" requests = "^2.24.0" markdown = "^3.2.2" diff --git a/scripts/lock.sh b/scripts/lock.sh index cf7dc6d..f9d9039 100644 --- a/scripts/lock.sh +++ b/scripts/lock.sh @@ -2,8 +2,12 @@ # file: lock.sh # description: Lock dependencies and export requirements. +echo "THE FILE WAS GENERATED BY POETRY, DO NOT EDIT!\n\n" > src/requirements.txt +echo "THE FILE WAS GENERATED BY POETRY, DO NOT EDIT!\n\n" > src/requirements-dev.txt poetry lock -poetry export --without-hashes -f requirements.txt > src/requirements.txt -poetry export --dev --without-hashes -f requirements.txt > src/requirements-dev.txt +poetry export --without-hashes -f requirements.txt >> src/requirements.txt +poetry export --dev --without-hashes -f requirements.txt >> src/requirements-dev.txt + +echo "-e src/." >> src/requirements-dev.txt + -echo "-e src/." >> src/requirements-dev.txt \ No newline at end of file diff --git a/src/requirements-dev.txt b/src/requirements-dev.txt index 49dca27..8d1c5aa 100644 --- a/src/requirements-dev.txt +++ b/src/requirements-dev.txt @@ -1,85 +1,88 @@ -anki==2.1.32 -ankirspy==2.1.32 -appnope==0.1.0; sys_platform == "darwin" or platform_system == "Darwin" or python_version >= "3.3" and sys_platform == "darwin" -argon2-cffi==20.1.0 -attrs==20.1.0 -backcall==0.2.0 +THE FILE WAS GENERATED BY POETRY, DO NOT EDIT! + +Warning: The lock file is not up to date with the latest changes in pyproject.toml. You may be getting outdated dependencies. Run update to update them. +anki==2.1.36; python_version >= "3.7" +ankirspy==2.1.36; python_version >= "3.7" +appnope==0.1.0; sys_platform == "darwin" and python_version >= "3.7" or sys_platform == "darwin" and python_version >= "3.7" and platform_system == "Darwin" or platform_system == "Darwin" and python_version >= "3.7" +argon2-cffi==20.1.0; python_version >= "3.5" +attrs==20.1.0; python_version >= "3.5" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.5" +backcall==0.2.0; python_version >= "3.7" beautifulsoup4==4.9.1 -bleach==3.1.5 -certifi==2020.6.20 -cffi==1.14.2 -chardet==3.0.4 -click==7.1.2 -colorama==0.4.3; python_version >= "3.3" and sys_platform == "win32" or sys_platform == "win32" -decorator==4.4.2 -defusedxml==0.6.0 +bleach==3.1.5; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" +certifi==2020.6.20; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.7" +cffi==1.14.2; python_version >= "3.5" +chardet==3.0.4; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.7" +click==7.1.2; python_version >= "3.5" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.5" +colorama==0.4.3; python_version >= "3.7" and sys_platform == "win32" and python_full_version < "3.0.0" or python_version >= "3.7" and sys_platform == "win32" and python_full_version >= "3.5.0" +decorator==4.4.2; (python_version >= "2.6" and python_full_version < "3.0.0") or (python_full_version >= "3.2.0") +defusedxml==0.6.0; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" distro==1.5.0 -entrypoints==0.3 -future==0.18.2 -idna==2.10 -importlib-metadata==1.7.0; python_version < "3.8" -ipykernel==5.3.4 -ipython==7.17.0 -ipython-genutils==0.2.0 +entrypoints==0.3; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "2.7" +future==0.18.2; python_version >= "3.5" and python_full_version < "3.0.0" or python_full_version >= "3.3.0" and python_version >= "3.5" +idna==2.10; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.7" +importlib-metadata==1.7.0; python_version >= "3.5" and python_full_version < "3.0.0" and python_version < "3.8" or python_full_version >= "3.5.0" and python_version < "3.8" and python_version >= "3.5" +ipykernel==5.3.4; python_version >= "3.5" +ipython-genutils==0.2.0; python_version >= "3.5" +ipython==7.17.0; python_version >= "3.7" ipywidgets==7.5.1 -jedi==0.17.2 -jinja2==2.11.2 -joblib==0.16.0; python_version > "2.7" -json5==0.9.5 -jsonschema==3.2.0 +jedi==0.17.2; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.7" +jinja2==2.11.2; python_version >= "3.5" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.5" +joblib==0.16.0; python_version >= "3.6" +json5==0.9.5; python_version >= "3.5" +jsonschema==3.2.0; python_version >= "3.5" +jupyter-client==6.1.7; python_version >= "3.5" +jupyter-console==6.1.0; python_version >= "3.5" +jupyter-core==4.6.3; python_version >= "3.5" and python_full_version < "3.0.0" or python_version >= "3.5" and python_full_version >= "3.5.0" jupyter==1.0.0 -jupyter-client==6.1.7 -jupyter-console==6.1.0 -jupyter-core==4.6.3 -jupyterlab==2.2.6 -jupyterlab-server==1.2.0 -livereload==2.6.3 -lunr==0.5.8 -markdown==3.2.2 -markupsafe==1.1.1 -mistune==0.8.4 -mkdocs==1.1.2 -nbconvert==5.6.1 -nbformat==5.0.7 -nltk==3.5; python_version > "2.7" -notebook==6.1.3 -orjson==3.3.1; platform_machine == "x86_64" -packaging==20.4 -pandocfilters==1.4.2 -parso==0.7.1 -pexpect==4.8.0; python_version >= "3.3" and sys_platform != "win32" or sys_platform != "win32" -pickleshare==0.7.5 -prometheus-client==0.8.0 -prompt-toolkit==3.0.6 -protobuf==3.13.0 -psutil==5.7.2 -ptyprocess==0.6.0; sys_platform != "win32" or os_name != "nt" or python_version >= "3.3" and sys_platform != "win32" +jupyterlab-server==1.2.0; python_version >= "3.5" +jupyterlab==2.2.6; python_version >= "3.5" +livereload==2.6.3; python_version >= "3.5" +lunr==0.5.8; python_version >= "3.5" +markdown==3.2.2; python_version >= "3.5" +markupsafe==1.1.1; python_version >= "3.5" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.5" +mistune==0.8.4; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" +mkdocs==1.1.2; python_version >= "3.5" +nbconvert==5.6.1; python_version >= "3.5" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.5" +nbformat==5.0.7; python_version >= "3.5" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.5" +nltk==3.5; python_version >= "3.5" +notebook==6.1.3; python_version >= "3.5" +orjson==3.3.1; platform_machine == "x86_64" and python_version >= "3.7" +packaging==20.4; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" +pandocfilters==1.4.2; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" +parso==0.7.1; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.7" +pexpect==4.8.0; python_version >= "3.7" and sys_platform != "win32" +pickleshare==0.7.5; python_version >= "3.7" +prometheus-client==0.8.0; python_version >= "3.5" +prompt-toolkit==3.0.6; python_full_version >= "3.6.1" and python_version >= "3.7" +protobuf==3.13.0; python_version >= "3.7" +psutil==5.7.2; (python_version >= "2.6" and python_full_version < "3.0.0") or (python_full_version >= "3.4.0") +ptyprocess==0.6.0; python_version >= "3.7" and python_full_version < "3.0.0" and sys_platform != "win32" and (python_version >= "3.3" and sys_platform != "win32" or sys_platform != "win32") or python_version >= "3.7" and python_full_version < "3.0.0" and sys_platform != "win32" and (python_version >= "3.3" and sys_platform != "win32" or sys_platform != "win32") and os_name != "nt" or python_full_version >= "3.4.0" and python_version >= "3.7" and sys_platform != "win32" and (python_version >= "3.3" and sys_platform != "win32" or sys_platform != "win32") or python_full_version >= "3.4.0" and python_version >= "3.7" and sys_platform != "win32" and (python_version >= "3.3" and sys_platform != "win32" or sys_platform != "win32") and os_name != "nt" pyaudio==0.2.11 -pycparser==2.20 -pygments==2.6.1 -pyparsing==2.4.7 -pyrsistent==0.16.0 -python-dateutil==2.8.1 -pywin32==228; sys_platform == "win32" -pywinpty==0.5.7; os_name == "nt" -pyyaml==5.3.1 -pyzmq==19.0.2 +pycparser==2.20; python_version >= "3.5" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.5" +pygments==2.6.1; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.7" +pyparsing==2.4.7; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" +pyrsistent==0.16.0; python_version >= "3.5" +python-dateutil==2.8.1; python_version >= "3.5" and python_full_version < "3.0.0" or python_full_version >= "3.3.0" and python_version >= "3.5" +pywin32==228; python_version >= "2.7" and python_version < "3.0" and python_full_version < "3.0.0" and sys_platform == "win32" or python_version >= "2.7" and python_version < "3.0" and python_full_version >= "3.5.0" and sys_platform == "win32" or python_version > "3.0" and python_version < "3.1" and python_full_version < "3.0.0" and sys_platform == "win32" or python_version > "3.0" and python_version < "3.1" and python_full_version >= "3.5.0" and sys_platform == "win32" or python_version > "3.1" and python_version < "3.2" and python_full_version < "3.0.0" and sys_platform == "win32" or python_version > "3.1" and python_version < "3.2" and python_full_version >= "3.5.0" and sys_platform == "win32" or python_version > "3.2" and python_version < "3.3" and python_full_version < "3.0.0" and sys_platform == "win32" or python_version > "3.2" and python_version < "3.3" and python_full_version >= "3.5.0" and sys_platform == "win32" or python_version > "3.3" and python_version < "3.4" and python_full_version < "3.0.0" and sys_platform == "win32" or python_version > "3.3" and python_version < "3.4" and python_full_version >= "3.5.0" and sys_platform == "win32" or python_version > "3.4" and python_full_version < "3.0.0" and sys_platform == "win32" or python_version > "3.4" and python_full_version >= "3.5.0" and sys_platform == "win32" +pywinpty==0.5.7; python_version >= "3.5" and python_full_version < "3.0.0" and os_name == "nt" or python_full_version >= "3.4.0" and python_version >= "3.5" and os_name == "nt" +pyyaml==5.3.1; python_version >= "3.5" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.5" +pyzmq==19.0.2; python_version >= "3.5" and python_full_version < "3.0.0" or python_full_version >= "3.3.0" and python_version >= "3.5" qtconsole==4.7.6 qtpy==1.9.0 -regex==2020.7.14; python_version > "2.7" -requests==2.24.0 +regex==2020.7.14; python_version >= "3.5" +requests==2.24.0; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.5.0") send2trash==1.5.0 -six==1.15.0 -soupsieve==1.9.6 -terminado==0.8.3 -testpath==0.4.4 -tornado==6.0.4 -tqdm==4.48.2; python_version > "2.7" -traitlets==4.3.3 -urllib3==1.25.10 -wcwidth==0.2.5 -webencodings==0.5.1 -webob==1.8.6 +six==1.15.0; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.7" +soupsieve==1.9.6; python_version >= "3.7" +terminado==0.8.3; python_version >= "3.5" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.5" +testpath==0.4.4; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" +tornado==6.0.4; python_version >= "3.5" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.5" +tqdm==4.48.2; python_version >= "3.5" and python_full_version < "3.0.0" or python_full_version >= "3.2.0" and python_version >= "3.5" +traitlets==4.3.3; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.7" +urllib3==1.25.10; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version < "4" and python_version >= "3.7" +wcwidth==0.2.5; python_full_version >= "3.6.1" and python_version >= "3.5" +webencodings==0.5.1; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" +webob==1.8.6; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.3.0") widgetsnbextension==3.5.1 -zipp==3.1.0; python_version < "3.8" +zipp==3.1.0; python_version < "3.8" and python_version >= "3.6" and (python_version >= "3.5" and python_full_version < "3.0.0" and python_version < "3.8" or python_full_version >= "3.5.0" and python_version < "3.8" and python_version >= "3.5") -e src/. diff --git a/src/requirements.txt b/src/requirements.txt index 3a1dc74..77ba117 100644 --- a/src/requirements.txt +++ b/src/requirements.txt @@ -1,21 +1,24 @@ -anki==2.1.32 -ankirspy==2.1.32 +THE FILE WAS GENERATED BY POETRY, DO NOT EDIT! + +Warning: The lock file is not up to date with the latest changes in pyproject.toml. You may be getting outdated dependencies. Run update to update them. +anki==2.1.36; python_version >= "3.7" +ankirspy==2.1.36; python_version >= "3.7" beautifulsoup4==4.9.1 -certifi==2020.6.20 -chardet==3.0.4 -decorator==4.4.2 +certifi==2020.6.20; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.7" +chardet==3.0.4; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.7" +decorator==4.4.2; (python_version >= "2.6" and python_full_version < "3.0.0") or (python_full_version >= "3.2.0") distro==1.5.0 -idna==2.10 -importlib-metadata==1.7.0; python_version < "3.8" -markdown==3.2.2 -orjson==3.3.1; platform_machine == "x86_64" -protobuf==3.13.0 -psutil==5.7.2 +idna==2.10; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.7" +importlib-metadata==1.7.0; python_version >= "3.5" and python_full_version < "3.0.0" and python_version < "3.8" or python_full_version >= "3.5.0" and python_version < "3.8" and python_version >= "3.5" +markdown==3.2.2; python_version >= "3.5" +orjson==3.3.1; platform_machine == "x86_64" and python_version >= "3.7" +protobuf==3.13.0; python_version >= "3.7" +psutil==5.7.2; (python_version >= "2.6" and python_full_version < "3.0.0") or (python_full_version >= "3.4.0") pyaudio==0.2.11 -requests==2.24.0 +requests==2.24.0; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.5.0") send2trash==1.5.0 -six==1.15.0 -soupsieve==1.9.6 -urllib3==1.25.10 -webob==1.8.6 -zipp==3.1.0; python_version < "3.8" +six==1.15.0; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.3.0" and python_version >= "3.7" +soupsieve==1.9.6; python_version >= "3.7" +urllib3==1.25.10; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version < "4" and python_version >= "3.7" +webob==1.8.6; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.3.0") +zipp==3.1.0; python_version < "3.8" and python_version >= "3.6" and (python_version >= "3.5" and python_full_version < "3.0.0" and python_version < "3.8" or python_full_version >= "3.5.0" and python_version < "3.8" and python_version >= "3.5")