Skip to content

Bump to v2.2.4 - #47

Merged
rkouakou06 merged 8 commits into
masterfrom
dev
Jun 16, 2026
Merged

Bump to v2.2.4#47
rkouakou06 merged 8 commits into
masterfrom
dev

Conversation

@rkouakou06

Copy link
Copy Markdown
Collaborator
  • Replacement of pkg_resources with importlib.resources for retrieving the path of the example database.
    This change fixes the issue preventing the GUI from starting.

  • Update Python versions in tox.ini environment list

Comment thread tox.ini

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's look like you miss the 3 on python versions upper to 3.10.
The documentation of tox tag the pyNM and pyN.M as legacy maybe prevert futur release by using N.M notations
https://tox.wiki/en/latest/tutorial/getting-started.html#environment-names-and-python-versions

Comment thread isocor/ui/isocordb.py Outdated
self.db_path = self.default_db
self.example_db = pkg_resources.resource_filename('isocor', 'data/')
# self.example_db = pkg_resources.resource_filename('isocor', 'data/')
self.example_db = importlib.resources.files('isocor') / 'data/'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would use .joinpath('data') instead of / 'data' syntax but it good as it.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the suggestion :-). Indeed, joinpath() is more explicit and improve readability.

@rkouakou06
rkouakou06 merged commit 87fff6a into master Jun 16, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants