File tree 2 files changed +3
-7
lines changed
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 3
3
import itertools
4
4
import configparser
5
5
6
+ import tomli as toml
7
+
6
8
# Fallbacks for conda, which can't install tox from defaults (at
7
9
# least, not as of June 2018). Allows to parse tox.ini (i.e. to use
8
10
# tox.ini as single place where all test cmds and envs are stored)
21
23
except ImportError :
22
24
setuptools_version = None
23
25
24
- try :
25
- import tomli as toml
26
- except ImportError :
27
- # tomllib added to the stdlib in Python 3.11
28
- import tomllib as toml
29
-
30
26
toxconf = tox_config .parseconfig ('tox' )
31
27
# we later filter out any _onlytox commands...
32
28
toxconf_pre = configparser .ConfigParser ()
Original file line number Diff line number Diff line change 45
45
# pinning to avoid https://github.com/pyviz/pyctdev/issues/12
46
46
'pip >=19.1.1' ,
47
47
# Added to no longer depend on tomli vendored by pip.
48
- 'tomli>=2;python_version<"3.11" ' ,
48
+ 'tomli' ,
49
49
],
50
50
extras_require = {
51
51
'tests' : ['flake8' ],
You can’t perform that action at this time.
0 commit comments