Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
- uses: pre-commit/action@v3.0.1

Expand All @@ -25,13 +25,13 @@ jobs:
python-version: ["3.10", "3.13"]

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Install uv and set the Python version
uses: astral-sh/setup-uv@v6
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
- name: Enable caching
uses: astral-sh/setup-uv@v6
uses: astral-sh/setup-uv@v7
with:
enable-cache: true

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
environment:
name: pypi
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v6
uses: astral-sh/setup-uv@v7
- name: Install Python
run: uv python install
- name: Build
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ dependencies = [

[dependency-groups]
test = [
"attrs",
"hypothesis",
"pytest",
"pytest-mock",
Expand Down
27 changes: 13 additions & 14 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
# This file was autogenerated by uv via the following command:
# uv export --format requirements-txt --no-editable --no-hashes --no-dev -o requirements.txt

beautifulsoup4==4.14.2
# uv export --format requirements-txt --no-emit-project --no-dev --no-hashes -o requirements.txt
beautifulsoup4==4.14.3
# via yahooquery
certifi==2025.8.3
certifi==2026.1.4
# via
# curl-cffi
# requests
cffi==2.0.0
# via curl-cffi
charset-normalizer==3.4.3
charset-normalizer==3.4.4
# via requests
colorama==0.4.6 ; sys_platform == 'win32'
# via tqdm
curl-cffi==0.13.0
curl-cffi==0.14.0
# via yahooquery
exchange-calendars==4.11.1
exchange-calendars==4.12
# via market-prices
idna==3.10
idna==3.11
# via requests
korean-lunar-calendar==0.3.1
# via exchange-calendars
Expand All @@ -28,7 +27,7 @@ numpy==2.2.6 ; python_full_version < '3.11'
# exchange-calendars
# market-prices
# pandas
numpy==2.3.3 ; python_full_version >= '3.11'
numpy==2.4.1 ; python_full_version >= '3.11'
# via
# exchange-calendars
# market-prices
Expand All @@ -52,22 +51,22 @@ requests-futures==1.0.2
# via yahooquery
six==1.17.0
# via python-dateutil
soupsieve==2.8
soupsieve==2.8.1
# via beautifulsoup4
toolz==1.0.0
toolz==1.1.0
# via exchange-calendars
tqdm==4.67.1
# via yahooquery
typing-extensions==4.15.0
# via beautifulsoup4
tzdata==2025.2
tzdata==2025.3
# via
# exchange-calendars
# market-prices
# pandas
urllib3==2.5.0
urllib3==2.6.3
# via requests
valimp==0.3
valimp==0.4
# via market-prices
yahooquery==2.4.1
# via market-prices
8 changes: 0 additions & 8 deletions setup.py

This file was deleted.

11 changes: 9 additions & 2 deletions tests/test_daterange.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,15 @@ def do_bounds_from_start(
# a session
duration = pd.Timedelta(0)
end = start + duration
if end >= today:
return start, today
if end >= today: # 'fixed' 25/05/15, further revised 26/01/13
diff_months = (
ds_interval.as_offset_ms.rollforward(end).to_period("M")
- start.to_period("M")
).n
excess_months = diff_months % ds_interval.freq_value
if not excess_months:
# if there is an excess then end will have to fall prior to today
return start, today
last_indice_right = ds_interval.as_offset_ms.rollback(end + one_day)
diff_months = (last_indice_right.to_period("M") - start.to_period("M")).n
_, excess_months = divmod(diff_months, ds_interval.freq_value)
Expand Down
Loading