Skip to content

Commit

Permalink
Updated dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyb8 committed Mar 1, 2025
1 parent 9a2179a commit 991f227
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 7 deletions.
13 changes: 10 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -47,20 +49,23 @@ 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",
"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",
Expand Down Expand Up @@ -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",
Expand All @@ -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"
]
13 changes: 10 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -24,20 +26,23 @@ 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
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
Expand Down Expand Up @@ -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
Expand All @@ -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
13 changes: 12 additions & 1 deletion scripts/dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}')
Expand Down

0 comments on commit 991f227

Please sign in to comment.