diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 2d26d19..f42ea72 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: python: [3.6, 3.7, 3.8] - sphinx: [1.*, 2.*, 3.*] + sphinx: [1.*, 2.*, 3.*, 4.*] steps: - uses: actions/checkout@v2 - name: Setup Python @@ -41,7 +41,7 @@ jobs: strategy: matrix: python: [3.6, 3.7, 3.8] - sphinx: [ 1.*, 2.*, 3.*] + sphinx: [ 1.*, 2.*, 3.*, 4.*] steps: - uses: actions/checkout@v2 - name: Setup Python diff --git a/sphinxcontrib/wavedrom_render_image.py b/sphinxcontrib/wavedrom_render_image.py index 925f4e0..1ae0288 100644 --- a/sphinxcontrib/wavedrom_render_image.py +++ b/sphinxcontrib/wavedrom_render_image.py @@ -6,6 +6,7 @@ import cairosvg from wavedrom import render from sphinx.errors import SphinxError +import errno # This exception was not always available.. try: @@ -13,10 +14,9 @@ except ImportError: JSONDecodeError = ValueError -from sphinx.util.osutil import ( - ensuredir, - ENOENT, -) +from sphinx.util.osutil import ensuredir + +ENOENT = getattr(errno, 'ENOENT', 0) def determine_format(supported): """