diff --git a/CHANGELOG.md b/CHANGELOG.md index 79ff5db..3f8193e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,10 +4,12 @@ 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` @@ -15,6 +17,21 @@ All notable changes to the OilPriceAPI Python SDK will be documented in this fil - 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 diff --git a/oilpriceapi/version.py b/oilpriceapi/version.py index a04df6a..0a564b0 100644 --- a/oilpriceapi/version.py +++ b/oilpriceapi/version.py @@ -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" diff --git a/pyproject.toml b/pyproject.toml index d5197ba..ac8b912 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"}