Skip to content

Commit 553780a

Browse files
committed
Allow < upper bound
1 parent e48f6f8 commit 553780a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

notebooks/check_env.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
"""Check the setup for the workshop."""
22

3-
from functools import partial
4-
from packaging.version import Version
53
import importlib
64
import json
75
import os
86
import sys
7+
from functools import partial
8+
9+
from packaging.version import Version
910

1011
try:
1112
import yaml
@@ -74,6 +75,8 @@ def run_env_check(raise_exc=False):
7475
pkg, versions = line.split('>=')
7576
if ',<=' in versions:
7677
version = versions.split(',<=')
78+
elif ',<' in versions:
79+
version = versions.split(',<')
7780
else:
7881
version = [versions, None]
7982
else:

0 commit comments

Comments
 (0)