From 7af9bcd1eb92630f237e770c5d9b42f791959c35 Mon Sep 17 00:00:00 2001 From: FranekGit <93712627+FranekGit@users.noreply.github.com> Date: Tue, 27 Oct 2026 20:51:16 +0100 Subject: [PATCH] chore: release 2.0.0 --- CHANGELOG.md | 12 +++++++++++- README.md | 2 +- src/pse_sdk/__init__.py | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 81d20ea..24761f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,9 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased] +## [2.0.0] - 2026-10-27 ### Added +- `PSEClient.fetch(endpoint, start, end, columns=None, format="dict")`: + query any of the 90 PSE API endpoints for a date range, fetched in + 30-day chunks. Replaces the `get_*` methods - Published on PyPI as `pse-sdk`: `pip install pse-sdk`, or `pip install "pse-sdk[pandas]"` for DataFrame output - `PSEClient.endpoints()`: names of all endpoints @@ -33,6 +36,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 date and key columns of each. The Description column is dropped. - `fetch()` column and date-filter notes moved from `docs/endpoints.md` and the README to the new `docs/usage.md` +- Development uses uv: dev dependencies in a uv dependency group, + `uv.lock` and `.python-version` committed +- Package version is read from `pse_sdk.__version__` (hatch dynamic + version) +- GitHub Actions: `tests.yml` runs ruff, `gen_docs.py --check` and tests on + Python 3.10–3.14; `publish.yml` publishes to PyPI on `v*` tag push + (TestPyPI on manual run) ### Removed - **Breaking:** all 32 `get_*` methods of `PSEClient` (`get_cen`, `get_csdac`, diff --git a/README.md b/README.md index f23a664..0cfb509 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ # pse-python-sdk -![Version](https://img.shields.io/badge/version-v1.5.1-blue) +![Version](https://img.shields.io/badge/version-v2.0.0-blue) Python SDK for the PSE (Polskie Sieci Elektroenergetyczne) public reporting API. diff --git a/src/pse_sdk/__init__.py b/src/pse_sdk/__init__.py index f8efb39..093c317 100644 --- a/src/pse_sdk/__init__.py +++ b/src/pse_sdk/__init__.py @@ -1,5 +1,5 @@ from pse_sdk._client import PSEClient from pse_sdk._format import OutputFormat -__version__ = "1.5.1" +__version__ = "2.0.0" __all__ = ["OutputFormat", "PSEClient"]