diff --git a/pyproject.toml b/pyproject.toml index db338d1..dd8b191 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,14 +27,16 @@ dependencies = [ "arch==7.0.0", "async-timeout==4.0.3", "attrs==23.2.0", + "backports.tarfile==1.2.0", "beautifulsoup4==4.12.3", "Brotli==1.1.0", "certifi==2024.7.4", - "cffi==1.16.0", + "cffi==1.17.1", "chardet==5.2.0", "charset-normalizer==3.3.2", "contourpy==1.2.1", "cramjam==2.8.3", + "cryptography==44.0.1", "cssselect2==0.7.0", "cycler==0.12.1", "databento==0.33.0", @@ -47,10 +49,13 @@ dependencies = [ "frozenlist==1.4.1", "fsspec==2024.9.0", "html5lib==1.1", + "ibapi==10.30.1", "idna==3.7", + "importlib_metadata==8.6.1", "jaraco.classes==3.4.0", "jaraco.context==6.0.1", "jaraco.functools==4.1.0", + "jeepney==0.8.0", "joblib==1.4.2", "keyring==25.6.0", "kiwisolver==1.4.5", @@ -58,9 +63,9 @@ dependencies = [ "lxml==5.2.1", "markdown-it-py==3.0.0", "matplotlib==3.9.0", - "mbinary==1.0.22", + "mbinary==1.0.26", "mdurl==0.1.2", - "midas_client==1.0.18", + "midas_client==1.0.21", "more-itertools==10.5.0", "multidict==6.0.5", "multitasking==0.0.11", @@ -95,6 +100,7 @@ dependencies = [ "scikit-learn==1.4.2", "scipy==1.13.0", "seaborn==0.13.2", + "SecretStorage==3.3.3", "six==1.16.0", "soupsieve==2.5", "statsmodels==0.14.2", @@ -109,6 +115,7 @@ dependencies = [ "XlsxWriter==3.2.0", "yarl==1.9.4", "yfinance==0.2.38", + "zipp==3.21.0", "zopfli==0.2.3", "zstandard==0.22.0" ] diff --git a/requirements.txt b/requirements.txt index 3bf731c..04404f6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,14 +4,16 @@ appdirs==1.4.4 arch==7.0.0 async-timeout==4.0.3 attrs==23.2.0 +backports.tarfile==1.2.0 beautifulsoup4==4.12.3 Brotli==1.1.0 certifi==2024.7.4 -cffi==1.16.0 +cffi==1.17.1 chardet==5.2.0 charset-normalizer==3.3.2 contourpy==1.2.1 cramjam==2.8.3 +cryptography==44.0.1 cssselect2==0.7.0 cycler==0.12.1 databento==0.33.0 @@ -24,10 +26,13 @@ frozendict==2.4.2 frozenlist==1.4.1 fsspec==2024.9.0 html5lib==1.1 +ibapi==10.30.1 idna==3.7 +importlib_metadata==8.6.1 jaraco.classes==3.4.0 jaraco.context==6.0.1 jaraco.functools==4.1.0 +jeepney==0.8.0 joblib==1.4.2 keyring==25.6.0 kiwisolver==1.4.5 @@ -35,9 +40,9 @@ korean-lunar-calendar==0.3.1 lxml==5.2.1 markdown-it-py==3.0.0 matplotlib==3.9.0 -mbinary==1.0.22 +mbinary==1.0.26 mdurl==0.1.2 -midas_client==1.0.18 +midas_client==1.0.21 more-itertools==10.5.0 multidict==6.0.5 multitasking==0.0.11 @@ -72,6 +77,7 @@ rich==13.9.4 scikit-learn==1.4.2 scipy==1.13.0 seaborn==0.13.2 +SecretStorage==3.3.3 six==1.16.0 soupsieve==2.5 statsmodels==0.14.2 @@ -86,5 +92,6 @@ webencodings==0.5.1 XlsxWriter==3.2.0 yarl==1.9.4 yfinance==0.2.38 +zipp==3.21.0 zopfli==0.2.3 zstandard==0.22.0 diff --git a/scripts/dependencies.sh b/scripts/dependencies.sh index 4742abc..bc5e76e 100755 --- a/scripts/dependencies.sh +++ b/scripts/dependencies.sh @@ -4,7 +4,18 @@ PYPROJECT="pyproject.toml" TMPFILE="tmpfile.toml" # Process the file: remove only the dependencies section under [project] -gsed '/\[project\]/,/^\[/{/dependencies = \[/,/]/d}' "$PYPROJECT" >"$TMPFILE" +# gsed '/\[project\]/,/^\[/{/dependencies = \[/,/]/d}' "$PYPROJECT" >"$TMPFILE" + +# Process the file: remove only the dependencies section under [project] +if [[ "$(uname)" == "Darwin" ]]; then + # macOS + SED_COMMAND="gsed" +else + # Linux (or other Unix-like systems) + SED_COMMAND="sed" +fi + +$SED_COMMAND '/\[project\]/,/^\[/{/dependencies = \[/,/]/d}' "$PYPROJECT" >"$TMPFILE" # Fetch dependencies from pip freeze, excluding build-related tools DEPENDENCIES=$(pip freeze | grep -Ev '^(setuptools|wheel|twine|build|bump2version|ibapi[ @])' | awk '{printf " \"%s\",\n", $0}')