From 33f815d95a084c400db381f13777ec91f7ec70df Mon Sep 17 00:00:00 2001 From: Marcus Read Date: Tue, 14 Jan 2025 17:15:23 +0000 Subject: [PATCH] Update dependencies --- etc/requirements.txt | 20 +++--- .../requirements_tests.txt | 38 +++++------ etc/requirements_dev.txt | 64 +++++++++---------- src/market_prices/utils/calendar_utils.py | 4 +- 4 files changed, 64 insertions(+), 62 deletions(-) diff --git a/etc/requirements.txt b/etc/requirements.txt index 67b507c..1b1c8e3 100644 --- a/etc/requirements.txt +++ b/etc/requirements.txt @@ -6,13 +6,13 @@ # beautifulsoup4==4.12.3 # via yahooquery -certifi==2024.8.30 +certifi==2024.12.14 # via requests -charset-normalizer==3.3.2 +charset-normalizer==3.4.1 # via requests colorama==0.4.6 # via tqdm -exchange-calendars==4.5.6 +exchange-calendars==4.7 # via market-prices (pyproject.toml) idna==3.10 # via requests @@ -20,7 +20,7 @@ korean-lunar-calendar==0.3.1 # via exchange-calendars lxml==4.9.4 # via yahooquery -numpy==2.1.1 +numpy==2.2.1 # via # exchange-calendars # market-prices (pyproject.toml) @@ -40,22 +40,22 @@ requests==2.32.3 # via # requests-futures # yahooquery -requests-futures==1.0.1 +requests-futures==1.0.2 # via yahooquery -six==1.16.0 +six==1.17.0 # via python-dateutil soupsieve==2.6 # via beautifulsoup4 -toolz==0.12.1 +toolz==1.0.0 # via exchange-calendars -tqdm==4.66.5 +tqdm==4.67.1 # via yahooquery -tzdata==2024.1 +tzdata==2024.2 # via # exchange-calendars # market-prices (pyproject.toml) # pandas -urllib3==2.2.3 +urllib3==2.3.0 # via requests valimp==0.3 # via market-prices (pyproject.toml) diff --git a/etc/requirements_dependabot/requirements_tests.txt b/etc/requirements_dependabot/requirements_tests.txt index 97a0b95..aff0157 100644 --- a/etc/requirements_dependabot/requirements_tests.txt +++ b/etc/requirements_dependabot/requirements_tests.txt @@ -4,19 +4,19 @@ # # pip-compile --extra=tests --output-file=etc/requirements_dependabot/requirements_tests.txt pyproject.toml # -attrs==24.2.0 +attrs==24.3.0 # via hypothesis beautifulsoup4==4.12.3 # via yahooquery -black==24.8.0 +black==24.10.0 # via market-prices (pyproject.toml) blosc2==2.7.1 # via tables -certifi==2024.8.30 +certifi==2024.12.14 # via requests -charset-normalizer==3.3.2 +charset-normalizer==3.4.1 # via requests -click==8.1.7 +click==8.1.8 # via black colorama==0.4.6 # via @@ -27,7 +27,7 @@ exceptiongroup==1.2.2 # via # hypothesis # pytest -exchange-calendars==4.5.6 +exchange-calendars==4.7 # via market-prices (pyproject.toml) flake8==7.1.1 # via @@ -35,7 +35,7 @@ flake8==7.1.1 # market-prices (pyproject.toml) flake8-docstrings==1.7.0 # via market-prices (pyproject.toml) -hypothesis==6.112.1 +hypothesis==6.123.17 # via market-prices (pyproject.toml) idna==3.10 # via requests @@ -51,13 +51,13 @@ msgpack==1.1.0 # via blosc2 mypy-extensions==1.0.0 # via black -ndindex==1.8 +ndindex==1.9.2 # via blosc2 -numexpr==2.10.1 +numexpr==2.10.2 # via # blosc2 # tables -numpy==2.1.1 +numpy==2.2.1 # via # blosc2 # exchange-calendars @@ -65,7 +65,7 @@ numpy==2.1.1 # numexpr # pandas # tables -packaging==24.1 +packaging==24.2 # via # black # pytest @@ -93,7 +93,7 @@ pyflakes==3.2.0 # via flake8 pyluach==2.2.0 # via exchange-calendars -pytest==8.3.3 +pytest==8.3.4 # via # market-prices (pyproject.toml) # pytest-mock @@ -107,9 +107,9 @@ requests==2.32.3 # via # requests-futures # yahooquery -requests-futures==1.0.1 +requests-futures==1.0.2 # via yahooquery -six==1.16.0 +six==1.17.0 # via python-dateutil snowballstemmer==2.2.0 # via pydocstyle @@ -119,24 +119,24 @@ soupsieve==2.6 # via beautifulsoup4 tables==3.10.1 # via market-prices (pyproject.toml) -tomli==2.0.1 +tomli==2.2.1 # via # black # pytest -toolz==0.12.1 +toolz==1.0.0 # via exchange-calendars -tqdm==4.66.5 +tqdm==4.67.1 # via yahooquery typing-extensions==4.12.2 # via # black # tables -tzdata==2024.1 +tzdata==2024.2 # via # exchange-calendars # market-prices (pyproject.toml) # pandas -urllib3==2.2.3 +urllib3==2.3.0 # via requests valimp==0.3 # via market-prices (pyproject.toml) diff --git a/etc/requirements_dev.txt b/etc/requirements_dev.txt index d95fe87..1f7a10b 100644 --- a/etc/requirements_dev.txt +++ b/etc/requirements_dev.txt @@ -4,25 +4,25 @@ # # pip-compile --extra=dev --output-file=etc/requirements_dev.txt pyproject.toml # -astroid==3.3.3 +astroid==3.3.8 # via pylint -attrs==24.2.0 +attrs==24.3.0 # via hypothesis beautifulsoup4==4.12.3 # via yahooquery -black==24.8.0 +black==24.10.0 # via market-prices (pyproject.toml) blosc2==2.7.1 # via tables -build==1.2.2 +build==1.2.2.post1 # via pip-tools -certifi==2024.8.30 +certifi==2024.12.14 # via requests cfgv==3.4.0 # via pre-commit -charset-normalizer==3.3.2 +charset-normalizer==3.4.1 # via requests -click==8.1.7 +click==8.1.8 # via # black # pip-tools @@ -33,15 +33,15 @@ colorama==0.4.6 # pylint # pytest # tqdm -dill==0.3.8 +dill==0.3.9 # via pylint -distlib==0.3.8 +distlib==0.3.9 # via virtualenv exceptiongroup==1.2.2 # via # hypothesis # pytest -exchange-calendars==4.5.6 +exchange-calendars==4.7 # via market-prices (pyproject.toml) filelock==3.16.1 # via virtualenv @@ -51,9 +51,9 @@ flake8==7.1.1 # market-prices (pyproject.toml) flake8-docstrings==1.7.0 # via market-prices (pyproject.toml) -hypothesis==6.112.1 +hypothesis==6.123.17 # via market-prices (pyproject.toml) -identify==2.6.1 +identify==2.6.5 # via pre-commit idna==3.10 # via requests @@ -71,22 +71,22 @@ mccabe==0.7.0 # pylint msgpack==1.1.0 # via blosc2 -mypy==1.11.2 +mypy==1.14.1 # via market-prices (pyproject.toml) mypy-extensions==1.0.0 # via # black # market-prices (pyproject.toml) # mypy -ndindex==1.8 +ndindex==1.9.2 # via blosc2 nodeenv==1.9.1 # via pre-commit -numexpr==2.10.1 +numexpr==2.10.2 # via # blosc2 # tables -numpy==2.1.1 +numpy==2.2.1 # via # blosc2 # exchange-calendars @@ -95,7 +95,7 @@ numpy==2.1.1 # pandas # pandas-stubs # tables -packaging==24.1 +packaging==24.2 # via # black # build @@ -106,7 +106,7 @@ pandas==2.2.3 # exchange-calendars # market-prices (pyproject.toml) # yahooquery -pandas-stubs==2.2.2.240909 +pandas-stubs==2.2.3.241126 # via market-prices (pyproject.toml) pathspec==0.12.1 # via black @@ -119,7 +119,7 @@ platformdirs==4.3.6 # virtualenv pluggy==1.5.0 # via pytest -pre-commit==3.8.0 +pre-commit==4.0.1 # via market-prices (pyproject.toml) py-cpuinfo==9.0.0 # via @@ -131,15 +131,15 @@ pydocstyle==6.3.0 # via flake8-docstrings pyflakes==3.2.0 # via flake8 -pylint==3.3.0 +pylint==3.3.3 # via market-prices (pyproject.toml) pyluach==2.2.0 # via exchange-calendars -pyproject-hooks==1.1.0 +pyproject-hooks==1.2.0 # via # build # pip-tools -pytest==8.3.3 +pytest==8.3.4 # via # market-prices (pyproject.toml) # pytest-mock @@ -155,9 +155,9 @@ requests==2.32.3 # via # requests-futures # yahooquery -requests-futures==1.0.1 +requests-futures==1.0.2 # via yahooquery -six==1.16.0 +six==1.17.0 # via python-dateutil snowballstemmer==2.2.0 # via pydocstyle @@ -167,7 +167,7 @@ soupsieve==2.6 # via beautifulsoup4 tables==3.10.1 # via market-prices (pyproject.toml) -tomli==2.0.1 +tomli==2.2.1 # via # black # build @@ -177,11 +177,11 @@ tomli==2.0.1 # pytest tomlkit==0.13.2 # via pylint -toolz==0.12.1 +toolz==1.0.0 # via exchange-calendars -tqdm==4.66.5 +tqdm==4.67.1 # via yahooquery -types-pytz==2024.2.0.20240913 +types-pytz==2024.2.0.20241221 # via pandas-stubs typing-extensions==4.12.2 # via @@ -189,18 +189,18 @@ typing-extensions==4.12.2 # black # mypy # tables -tzdata==2024.1 +tzdata==2024.2 # via # exchange-calendars # market-prices (pyproject.toml) # pandas -urllib3==2.2.3 +urllib3==2.3.0 # via requests valimp==0.3 # via market-prices (pyproject.toml) -virtualenv==20.26.5 +virtualenv==20.28.1 # via pre-commit -wheel==0.44.0 +wheel==0.45.1 # via pip-tools yahooquery==2.3.7 # via market-prices (pyproject.toml) diff --git a/src/market_prices/utils/calendar_utils.py b/src/market_prices/utils/calendar_utils.py index 023b1cf..b90b52b 100644 --- a/src/market_prices/utils/calendar_utils.py +++ b/src/market_prices/utils/calendar_utils.py @@ -29,7 +29,9 @@ def get_exchange_info() -> pd.DataFrame: Information on exchanges for which calendars are available. Calendar codes given by column 'ISO Code'. """ - return pd.read_html("https://pypi.org/project/exchange-calendars/")[1] + # 25/01/14 - for whatever reason seems that tables cannot currently be fetched + # from the prior address "https://pypi.org/project/exchange-calendars/". + return pd.read_html("https://github.com/gerrymanoim/exchange_calendars")[2] def minutes_in_period(