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
19 changes: 18 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,34 @@ All notable changes to the OilPriceAPI Python SDK will be documented in this fil

## [Unreleased]

## [1.18.0] - 2026-11-15

### 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
reached EOL in October 2024, 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

### Fixed

- **The history-gate 402 now carries its upgrade link (#163).** From
2026-11-16 12:00 UTC `/v1/prices/historical` and `/v1/prices/history`
return 402 `UPGRADE_REQUIRED` for accounts without history access, joining
the `past_*` endpoints. The API sends the link as `upgrade.url`;
`PaymentRequiredError.remediation_url` now reads it (a top-level
`remediation_url` or `upgrade_url` still wins). `oilprice historical`
prints the upgrade link instead of a bare `[402]`, and suggests
`oilprice price` only when latest prices are still available (#164).
- `viz.create_small_multiples()` no longer raises when every commodity fits
in one row, which was the default call with three or fewer codes (#158).
- Constructing a client no longer imports matplotlib or emits
`ImportWarning`; `client.viz` is built on first use (#151).

## [1.17.0] - 2026-10-03

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion oilpriceapi/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
Used in __init__.py, client.py, and async_client.py.
"""

__version__ = "1.17.0"
__version__ = "1.18.0"
SDK_VERSION = __version__
SDK_NAME = "oilpriceapi-python"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "oilpriceapi"
version = "1.17.0"
version = "1.18.0"
description = "Official Python SDK for source-timestamped OilPriceAPI energy data"
authors = [
{name = "OilPriceAPI", email = "support@oilpriceapi.com"}
Expand Down
Loading