Skip to content

Commit 0fb6716

Browse files
jayaddisonjfbu
andauthored
Continuous integration: resolve docutils installation step build failures (#11331)
* continuous integration: add comment explaining PYTHONWARNINGS env var to main unit test workflow * continuous integration: unit test workflow: report-but-do-not-fail when warnings about pkg_resources deprecation are encountered during docutils dependency installation * continuous integration: unit test workflow: instead of reducing the severity of all DeprecationWarnings during docutils (non-dev) installation, apply two message filters - one each for the warnings encountered so far * continuous integration: unit test workflow: add 'module' and 'line' fields for warning filters Ref: https://docs.python.org/3/library/warnings.html#describing-warning-filters --------- Co-authored-by: Jean-François B <[email protected]>
1 parent b6e6805 commit 0fb6716

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/main.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env:
1313
FORCE_COLOR: "1"
1414
PYTHONDEVMODE: "1" # -X dev
1515
PYTHONWARNDEFAULTENCODING: "1" # -X warn_default_encoding
16-
PYTHONWARNINGS: "error,always:unclosed:ResourceWarning"
16+
PYTHONWARNINGS: "error,always:unclosed:ResourceWarning::" # default: all warnings as errors, except ResourceWarnings about unclosed items
1717

1818
jobs:
1919
ubuntu:
@@ -59,6 +59,8 @@ jobs:
5959
- name: Install Docutils ${{ matrix.docutils }}
6060
run: python -m pip install --upgrade "docutils==${{ matrix.docutils }}.*"
6161
if: "!endsWith(matrix.python, '-dev')"
62+
env:
63+
PYTHONWARNINGS: "error,default:pkg_resources is deprecated:DeprecationWarning::,default:Deprecated call to `pkg_resources.declare_namespace:DeprecationWarning::"
6264
- name: Install Docutils ${{ matrix.docutils }} (ignore warnings)
6365
run: python -m pip install --upgrade "docutils==${{ matrix.docutils }}.*"
6466
if: "endsWith(matrix.python, '-dev')"

0 commit comments

Comments
 (0)