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
4 changes: 2 additions & 2 deletions .github/workflows/build_and_validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ concurrency:

env:
PROJECT_NAME: data_diff_viewer
POETRY_VERSION: "1.7.1"
POETRY_VERSION: "2.1.1"

jobs:
Build-and-Validate:
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"]
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ inside the HTML file, and write the result as a new HTML page at the specified l

## Changelog

### v0.4

Breaking Changes:
- Dropped support for Python 3.8 and 3.9
- Added support for Python 3.13 and 3.14

### v0.3.2

Bugfix:
Expand Down
2 changes: 1 addition & 1 deletion data_diff_viewer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.3.2"
__version__ = "0.4.0"

from data_diff_viewer.diff_summary import DiffSummary
from data_diff_viewer.package import generate_report_string
Expand Down
7 changes: 3 additions & 4 deletions data_diff_viewer/utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import base64
from importlib import resources
from pathlib import Path

import pkg_resources


def encode_file_to_base64_string(file_path: Path) -> str:
"""Read a byte file and encode it as base64.
Expand All @@ -28,9 +27,9 @@ def read_resource(resource_path: str) -> str:
The content of the resource as a string.

"""
from data_diff_viewer import PACKAGE_NAME
from data_diff_viewer import PACKAGE_NAME # noqa: PLC0415

return pkg_resources.resource_string(PACKAGE_NAME, resource_path).decode("utf-8")
return resources.files(PACKAGE_NAME).joinpath(resource_path).read_text(encoding="utf-8")


def _ref(_: object) -> None:
Expand Down
Loading
Loading