Skip to content

chore: Updated a function to be compatible with setuptools 82#88

Merged
jacquesfize merged 1 commit intodevelopfrom
chore/compatibility_setuptools82
Mar 4, 2026
Merged

chore: Updated a function to be compatible with setuptools 82#88
jacquesfize merged 1 commit intodevelopfrom
chore/compatibility_setuptools82

Conversation

@christophe-ramet
Copy link
Contributor

@christophe-ramet christophe-ramet commented Feb 27, 2026

Linked to PnX-SI/UsersHub#246

Tested in geonature shell :

sql_file = "dashboard.sql"

from importlib.resources import files
resource_file = files("gn_module_dashboard.migrations") / "data" / sql_file
operations = resource_file.read_text(encoding="utf-8")

import pkg_resources
operations2 = pkg_resources.resource_string("gn_module_dashboard.migrations", f"data/{sql_file}").decode("utf-8")
 
operations == operations2
 >> True

@jacquesfize jacquesfize merged commit 6b40525 into develop Mar 4, 2026
4 checks passed
@jacquesfize jacquesfize added this to the 1.6.1 milestone Mar 4, 2026
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