Skip to content

Commit

Permalink
Changed playwright to only be a dependency if python version is less …
Browse files Browse the repository at this point in the history
…than 3.12 due to an incompatibility in its dependencies
  • Loading branch information
robfalck committed Oct 14, 2023
1 parent e364c27 commit 02f397e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from packaging.version import Version
from platform import python_version
from setuptools import find_packages, setup

# Setup optional dependencies
Expand Down Expand Up @@ -27,11 +29,13 @@
'testflo>=1.3.6',
'matplotlib',
'numpydoc>=1.1',
'playwright>=1.20',
'aiounittest'
]
}

# playwright dependencies are currently incompatible with python 3.12
if Version(python_version()) < Version('3.12.0'):
optional_dependencies['test'].extend(['playwright>=1.20', 'aiounittest'])

# Add an optional dependency that concatenates all others
optional_dependencies['all'] = sorted([
dependency
Expand Down

0 comments on commit 02f397e

Please sign in to comment.