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
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]

steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ All notable changes to the OilPriceAPI Python SDK will be documented in this fil

## [Unreleased]

### Changed

- **Dropped Python 3.8 and 3.9 support.** Both versions are end-of-life (Python 3.8
reached EOL in October 2021, Python 3.9 in October 2025) and are no longer
available on the latest Ubuntu GitHub Actions runners (ubuntu-26.04). The package
now requires Python 3.10 or later. Added support for Python 3.13 and 3.14 in CI.
- Updated `requires-python` from `>=3.8` to `>=3.10` in `pyproject.toml`
- Removed Python 3.8 and 3.9 classifiers, added 3.13 and 3.14 classifiers
- Removed conditional `typing-extensions` dependency (only needed for Python < 3.10)
- Updated tool configuration targets (black, ruff, mypy) to reflect the new minimum

## [1.17.0] - 2026-10-03

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions oilpriceapi/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ async def get_multiple(
prices = []
failures = []

for chunk, result in zip(chunks, results):
for chunk, result in zip(chunks, results, strict=False):
if isinstance(result, list):
prices.extend(result)
continue
Expand All @@ -552,7 +552,7 @@ async def get_multiple(
retry = await asyncio.gather(
*(self.get(code) for code in chunk), return_exceptions=True
)
for code, item in zip(chunk, retry):
for code, item in zip(chunk, retry, strict=False):
if isinstance(item, Price):
prices.append(item)
else:
Expand Down
20 changes: 9 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[build-system]
# Setuptools 77+ warns on the legacy license table, while the older backend
# available on supported Python 3.8 cannot parse the replacement string form.
# Setuptools 77+ warns on the legacy license table
requires = ["setuptools>=70.1,<77", "wheel"]
build-backend = "setuptools.build_meta"

Expand Down Expand Up @@ -30,22 +29,21 @@ classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Office/Business :: Financial",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
requires-python = ">=3.8"
requires-python = ">=3.10"
dependencies = [
"httpx>=0.24.0",
"pydantic>=2.0.0",
"python-dateutil>=2.8.0",
"typing-extensions>=4.5.0; python_version < '3.10'",
]

[project.optional-dependencies]
Expand Down Expand Up @@ -113,12 +111,12 @@ oilpriceapi = ["py.typed"]

[tool.black]
line-length = 100
target-version = ['py38', 'py39', 'py310', 'py311']
target-version = ['py310', 'py311', 'py312', 'py313']
include = '\.pyi?$'

[tool.ruff]
line-length = 100
target-version = "py38"
target-version = "py310"

[tool.ruff.lint]
select = [
Expand All @@ -139,9 +137,9 @@ ignore = [
fixable = ["ALL"]

[tool.mypy]
# Type-check target; mypy 2.x requires >=3.10 (it rejects "3.8"). The package
# itself still supports Python >=3.8 (see requires-python above); python_version
# here only controls which language features mypy assumes when type-checking.
# Type-check target; mypy 2.x requires >=3.10. The package supports Python >=3.10
# (see requires-python above); python_version here only controls which language
# features mypy assumes when type-checking.
python_version = "3.10"
strict = true
warn_return_any = true
Expand Down
Loading