From f93fbd09be494e45e6568647a23f848a42ed9da4 Mon Sep 17 00:00:00 2001 From: Karl Waldman Date: Fri, 10 Jul 2026 10:18:55 -0400 Subject: [PATCH] fix: drop venue-typed source enums; align examples with market_reporting (#4175) Source fields are already free-string typed (no venue enum to loosen); this aligns example/fixture source values with the API switch to market_reporting masked labels (government labels like EIA/opec.org unchanged). Version bumped (patch, unpublished). Co-Authored-By: Claude Opus 4.8 --- CHANGELOG.md | 6 ++++++ oilpriceapi/version.py | 2 +- pyproject.toml | 2 +- tests/unit/test_commodities_resource.py | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b67ab6..9a5c145 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.10.2] - 2026-07-10 + +### Changed + +- Loosen `source` typing and align examples with the API's masked source labels: the response `source` now returns `market_reporting` for non-government series (government labels like `EIA`/`opec.org` are unchanged). Model `source` fields remain a free `str` (no venue enum); test fixtures no longer use venue names such as `ICE`. See oilpriceapi-api#4175. + ## [1.10.1] - 2026-07-03 ### Changed diff --git a/oilpriceapi/version.py b/oilpriceapi/version.py index 541b68b..ab1d1aa 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.10.1" +__version__ = "1.10.2" SDK_VERSION = __version__ SDK_NAME = "oilpriceapi-python" diff --git a/pyproject.toml b/pyproject.toml index 110692e..461a809 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "oilpriceapi" -version = "1.10.1" +version = "1.10.2" description = "Official Python SDK for OilPriceAPI - Real-time and historical oil prices" authors = [ {name = "OilPriceAPI", email = "support@oilpriceapi.com"} diff --git a/tests/unit/test_commodities_resource.py b/tests/unit/test_commodities_resource.py index c87fcdc..29238fb 100644 --- a/tests/unit/test_commodities_resource.py +++ b/tests/unit/test_commodities_resource.py @@ -25,7 +25,7 @@ def mock_commodity(self): "unit": "barrel", "currency": "USD", "description": "North Sea Brent crude oil benchmark", - "source": "ICE", + "source": "market_reporting", "active": True }