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 .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ serialize =
{major}.{minor}

[bumpversion:file:pyproject.toml]
search = version="{current_version}"
replace = version="{new_version}"
search = version = "{current_version}"
replace = version = "{new_version}"

[bumpversion:file:fast_dp/__init__.py]
search = __version__ = "{current_version}"
Expand Down
3 changes: 2 additions & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
History
=======

2.0.0 (xxxx-xx-xx)
2.0.0 (2026-03-04)
------------------
* fast_dp no longer supports Python 2.7 or 3.5
* change default plugin for Eiger data to durin-plugin.so
* migrate from pkg_resources to importlib.resources

1.6.2 (2020-03-14)
------------------
Expand Down
9 changes: 4 additions & 5 deletions fast_dp/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

import json
import os

import pkg_resources
from importlib.resources import files


def write_json(
Expand Down Expand Up @@ -34,9 +33,9 @@ def write_json(

def get_ispyb_template():
"""Read the ispyb.xml template from the package resources."""
xml_template = pkg_resources.resource_string(
"fast_dp", "templates/ispyb.xml"
).decode("utf-8")
template_path = files("fast_dp") / "templates" / "ispyb.xml"
xml_template = template_path.read_text(encoding="utf-8")

assert xml_template, "Error retrieving XML template"
return xml_template

Expand Down
Loading