Skip to content

[v7r2]Client: protect documentation generation against py3 - #5233

Merged
atsareg merged 1 commit into
DIRACGrid:rel-v7r2from
chaen:rel-v7r2_FIX_addFunctions
Jul 2, 2021
Merged

[v7r2]Client: protect documentation generation against py3#5233
atsareg merged 1 commit into
DIRACGrid:rel-v7r2from
chaen:rel-v7r2_FIX_addFunctions

Conversation

@chaen

@chaenchaen commented Jun 29, 2021

Copy link
Copy Markdown
Contributor

This change of importlib_resources (python/importlib_resources#221) introduced a change of behavior (python/importlib_resources#230)

With importlib_resources >= 5.2.0, path would not throw an error if the resource does not exist, but fp.read_text would raise FileNotFoundError, so i just shifted the block in the try/except

BEGINRELEASENOTES
*Core
CHANGE: protect client doc generation against new importlib_resources

ENDRELEASENOTES

@chaen
chaenforce-pushed the rel-v7r2_FIX_addFunctions branch from 12b8f69 to 0923c8cCompareJune 29, 2021 18:58
@chaen
chaen requested a review from chrisburrJune 29, 2021 18:59
@chaenchaen changed the title [WIP][v7r2]Client: protect documentation generation against py3[v7r2]Client: protect documentation generation against py3Jul 1, 2021
@chaen
chaen marked this pull request as ready for review July 1, 2021 08:27
@chaen
chaen requested review from atsareg and fstagni as code ownersJuly 1, 2021 08:27
@atsareg
atsareg merged commit 524815a into DIRACGrid:rel-v7r2Jul 2, 2021
@chaen
chaen deleted the rel-v7r2_FIX_addFunctions branch August 11, 2022 12:57
Sign up for freeto 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.

3 participants

@chaen@chrisburr@atsareg