From c96816ce040a20b0ab46103f98f9e9b60841e6fc Mon Sep 17 00:00:00 2001 From: Justin Xiao Date: Mon, 15 Apr 2024 12:25:17 -0700 Subject: [PATCH] fix: fix building failed on railway Signed-off-by: Justin Xiao --- .gitignore | 3 +- .idea/copilot/chatSessions/00000000000.xd | Bin 5947 -> 0 bytes .idea/copilot/chatSessions/blobs/version | Bin 4 -> 0 bytes ...heckout_at_2024_3_28__01_08__Changes_1.xml | 4 - .../shelved.patch" | 123 ----- .idea/workspace.xml | 88 +++- poetry.lock | 450 ++++++++++-------- pyproject.toml | 2 +- 8 files changed, 331 insertions(+), 339 deletions(-) delete mode 100644 .idea/copilot/chatSessions/00000000000.xd delete mode 100644 .idea/copilot/chatSessions/blobs/version delete mode 100644 .idea/shelf/Uncommitted_changes_before_Checkout_at_2024_3_28__01_08__Changes_1.xml delete mode 100644 ".idea/shelf/Uncommitted_changes_before_Checkout_at_2024_3_28_\344\270\213\345\215\210_01_08_[Changes]1/shelved.patch" diff --git a/.gitignore b/.gitignore index cf9aa89..e83f559 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .env __pycache__ -logs \ No newline at end of file +logs +.idea \ No newline at end of file diff --git a/.idea/copilot/chatSessions/00000000000.xd b/.idea/copilot/chatSessions/00000000000.xd deleted file mode 100644 index 50e9ae8c66e0348a861a583c717eefe5cb76383e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5947 zcmcgwZERE589u&F{C$%U64)p$DPb!h62^Sm)R`!NIYOeGM^U ztIvsj{24oed?y4F^3C@;t*Vf!wHiMLvHZ2 zZkBxBd(L_8`*Gg)yyrcaU=qMM5Def~Fd^_f(1Qac2oEI08p@h5Ya*vsOF9THPXR^*32-c%QY#4_IruOYyaNtIKV7xWpRk zNsCxp13$Y{6g*Cgqt+{kqTSiyWrGL>K+@EuJan7G)ppSC5Dp2>4)LTHae*F+C&%(I zf>X4M{#w!R7QDbDNb%gXBB0tMoDn=;0e~TjCr0vs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fpS?!IC#GGE%yCfZ`A-D?29BH78|Seom%qHE>UX z`3j>9n3p$*^S2wXDkYUsVm%uV6NKYaJ*}` zbt82E>|ODFGrWIQ;eB(?`*3?(b_dEF_@Dw8052&`n_>FWW6~kdonqRn1AUK4PtWB@ z2cIspFoVh5($oQP|1t|@j2UEHQFuSs!f8d!BNSct=du=Rk2*enR!09c5>g0PK%9W4;s1X%b& zP!QjpfE_Ooy9=-rt9gnA{p4z%%8d*7da*R8CHYs`=Ga%mMEP>}-M9X28x- zeCI}<5g-d3zZP!RLU&#{S`GCY7g!*;3jby!=1c?VplRGRZCW(lHhp0Fh~3+Z zADHf$er@{P^heWu)0d{dnZDvV-oTgh8~DxqcD|n9!@t0{@UQdl@NIl2@8Qq!gpctT z_%U`Z;ivhJ`1}07N;a45&)oe>epGV4)VthMZ1 z*<9IYWe?YET=VK0pDO*8V9k{Do#5!zg#)wsrOds@YnO7Yzn626-a|w>NXubmAl;Y2 zVnQB&s$up?Mwj1JGP?Ye|D(|@vkT4hg? z?JHhpp5ZpZmIz|a9*JnJ5-HIyNT>65AmFuahk+{ZvAUc+#!}oO!CUZet1wq_RF3P4 zA5>U#n%(2;Pc6+w#quR_XX=jjI%;t*g7X^-MoNF oZ{BrQY4g5zUEaLz>rXO&UAK~F*S)8_c`LgAN9Jp9EOp=fHzUPIhyVZp diff --git a/.idea/copilot/chatSessions/blobs/version b/.idea/copilot/chatSessions/blobs/version deleted file mode 100644 index 720d64f4baafc33efdf971f02084aca5f25b34a5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4 LcmZQzU|<9Q00jU7 diff --git a/.idea/shelf/Uncommitted_changes_before_Checkout_at_2024_3_28__01_08__Changes_1.xml b/.idea/shelf/Uncommitted_changes_before_Checkout_at_2024_3_28__01_08__Changes_1.xml deleted file mode 100644 index be459d2..0000000 --- a/.idea/shelf/Uncommitted_changes_before_Checkout_at_2024_3_28__01_08__Changes_1.xml +++ /dev/null @@ -1,4 +0,0 @@ - - \ No newline at end of file diff --git "a/.idea/shelf/Uncommitted_changes_before_Checkout_at_2024_3_28_\344\270\213\345\215\210_01_08_[Changes]1/shelved.patch" "b/.idea/shelf/Uncommitted_changes_before_Checkout_at_2024_3_28_\344\270\213\345\215\210_01_08_[Changes]1/shelved.patch" deleted file mode 100644 index 3a2732f..0000000 --- "a/.idea/shelf/Uncommitted_changes_before_Checkout_at_2024_3_28_\344\270\213\345\215\210_01_08_[Changes]1/shelved.patch" +++ /dev/null @@ -1,123 +0,0 @@ -Index: .vscode/settings.json -IDEA additional info: -Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP -<+>{\r\n \"python.analysis.extraPaths\": [\r\n \"./src\"\r\n ],\r\n \"[python]\": {\r\n \"editor.defaultFormatter\": \"ms-python.black-formatter\",\r\n \"editor.rulers\": [100],\r\n \"editor.formatOnSave\": true,\r\n \"editor.codeActionsOnSave\": {\r\n \"source.fixAll.ruff\": true,\r\n \"source.organizeImports.ruff\": true,\r\n },\r\n \"editor.formatOnType\": true\r\n }\r\n}\r\n -Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP -<+>UTF-8 -=================================================================== -diff --git a/.vscode/settings.json b/.vscode/settings.json ---- a/.vscode/settings.json -+++ b/.vscode/settings.json -@@ -7,8 +7,8 @@ - "editor.rulers": [100], - "editor.formatOnSave": true, - "editor.codeActionsOnSave": { -- "source.fixAll.ruff": true, -- "source.organizeImports.ruff": true, -+ "source.fixAll.ruff": "explicit", -+ "source.organizeImports.ruff": "explicit" - }, - "editor.formatOnType": true - } -Index: .idea/inspectionProfiles/profiles_settings.xml -=================================================================== -diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml -new file mode 100644 ---- /dev/null -+++ b/.idea/inspectionProfiles/profiles_settings.xml -@@ -0,0 +1,6 @@ -+ -+ -+ -+ -Index: .idea/vcs.xml -=================================================================== -diff --git a/.idea/vcs.xml b/.idea/vcs.xml -new file mode 100644 ---- /dev/null -+++ b/.idea/vcs.xml -@@ -0,0 +1,6 @@ -+ -+ -+ -+ -+ -+ -Index: pyproject.toml -IDEA additional info: -Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP -<+>[tool.poetry]\r\nname = \"langchain-linebot\"\r\nversion = \"0.1.0\"\r\ndescription = \"A LineBot implemented using LangChain, featuring conversation isolation and memory, and implemented using clean architecture for practice.\"\r\nauthors = [\"Justin Xiao \"]\r\nlicense = \"MIT license\"\r\nreadme = \"README.md\"\r\n\r\n[tool.poetry.dependencies]\r\npython = \"^3.10\"\r\ncerberus = \"^1.3.5\"\r\nflask = \"^2.3.3\"\r\nflask-sqlalchemy = \"^3.1.1\"\r\nlangchain = \"^0.0.301\"\r\nline-bot-sdk = \"^3.5.0\"\r\nmarshmallow = \"^3.20.1\"\r\npydantic = \"^2.4.0\"\r\npython-dotenv = \"^1.0.0\"\r\nsqlalchemy = \"^2.0.21\"\r\nwerkzeug = \"^2.3.7\"\r\nyfinance = \"^0.2.30\"\r\npsycopg2 = \"^2.9.7\"\r\nopenai = \"^0.28.0\"\r\ntiktoken = \"^0.5.1\"\r\ngoogle-search-results = \"^2.4.2\"\r\n\r\n[tool.poetry.group.dev.dependencies]\r\npytest = \"^7.4.2\"\r\npytest-cov = \"^4.1.0\"\r\npytest-cover = \"^3.0.0\"\r\npytest-coverage = \"^0.0\"\r\npytest-flask = \"^1.2.0\"\r\npytest-mock = \"^3.11.1\"\r\n\r\n[build-system]\r\nrequires = [\"poetry-core\"]\r\nbuild-backend = \"poetry.core.masonry.api\"\r\n\r\n# https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html\r\n[tool.black]\r\nline-length = 100\r\n\r\n# https://beta.ruff.rs/docs/settings/\r\n[tool.ruff]\r\nline-length = 100\r\n# https://beta.ruff.rs/docs/rules/\r\nselect = [\"E\", \"W\", \"F\"]\r\nignore = [\"F401\", \"E501\"]\r\n# Exclude a variety of commonly ignored directories.\r\nrespect-gitignore = true\r\nignore-init-module-imports = true\r\n -Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP -<+>UTF-8 -=================================================================== -diff --git a/pyproject.toml b/pyproject.toml ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -7,7 +7,7 @@ - readme = "README.md" - - [tool.poetry.dependencies] --python = "^3.10" -+python = "3.8.17" - cerberus = "^1.3.5" - flask = "^2.3.3" - flask-sqlalchemy = "^3.1.1" -Index: .idea/.gitignore -=================================================================== -diff --git a/.idea/.gitignore b/.idea/.gitignore -new file mode 100644 ---- /dev/null -+++ b/.idea/.gitignore -@@ -0,0 +1,10 @@ -+# Default ignored files -+/shelf/ -+/workspace.xml -+# Editor-based HTTP Client requests -+/httpRequests/ -+# Datasource local storage ignored files -+/dataSources/ -+/dataSources.local.xml -+# GitHub Copilot persisted chat sessions -+/copilot/chatSessions -Index: .idea/yuwen-yorozuya-linebot.iml -=================================================================== -diff --git a/.idea/yuwen-yorozuya-linebot.iml b/.idea/yuwen-yorozuya-linebot.iml -new file mode 100644 ---- /dev/null -+++ b/.idea/yuwen-yorozuya-linebot.iml -@@ -0,0 +1,17 @@ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -\ No newline at end of file -Index: .idea/modules.xml -=================================================================== -diff --git a/.idea/modules.xml b/.idea/modules.xml -new file mode 100644 ---- /dev/null -+++ b/.idea/modules.xml -@@ -0,0 +1,8 @@ -+ -+ -+ -+ -+ -+ -+ -+ diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 16722f4..7cbe1da 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,11 +4,9 @@