File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 92
92
--count --max-complexity=62 --max-line-length=127 --statistics
93
93
black datajoint --check -v
94
94
black tests --check -v
95
+ black tests_old --check -v
95
96
publish-docs :
96
97
if : |
97
98
github.event_name == 'push' &&
Original file line number Diff line number Diff line change 1
1
import datajoint as dj
2
- from distutils . version import LooseVersion
2
+ from packaging import version
3
3
import pytest
4
4
import os
5
5
@@ -36,9 +36,9 @@ def connection_test(connection_root):
36
36
permission = "ALL PRIVILEGES"
37
37
38
38
# Create MySQL users
39
- if LooseVersion (
39
+ if version . parse (
40
40
connection_root .query ("select @@version;" ).fetchone ()[0 ]
41
- ) >= LooseVersion ("8.0.0" ):
41
+ ) >= version . parse ("8.0.0" ):
42
42
# create user if necessary on mysql8
43
43
connection_root .query (
44
44
f"""
You can’t perform that action at this time.
0 commit comments