Skip to content

Commit

Permalink
Suppress install of lxml on Python 3.11 until wheels are available. Ref
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jun 8, 2022
1 parent 3163d9c commit ffaa263
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import importlib

import pytest

import cssutils
Expand All @@ -9,6 +11,12 @@
]


try:
importlib.import_module('lxml')
except ImportError:
collect_ignore += ['examples/style.py']


@pytest.fixture(autouse=True)
def hermetic_profiles():
"""
Expand Down
4 changes: 3 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ testing =

# local
mock
lxml
lxml; \
# workaround for #25
python_version < "3.11"
cssselect
importlib_resources; python_version < "3.9"

Expand Down

0 comments on commit ffaa263

Please sign in to comment.