We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85b01e9 commit 22ad464Copy full SHA for 22ad464
requirements-dev.txt
@@ -3,3 +3,4 @@ pytest
3
pytest-cov
4
nibabel
5
networkx
6
+tomli; python_version < '3.11'
tools/update_requirements.py
@@ -2,15 +2,18 @@
2
import sys
from pathlib import Path
-import tomli
+try:
+ import tomllib
7
+except ImportError:
8
+ import tomli as tomllib
9
10
repo_root = Path(__file__).parent.parent
11
pyproject_toml = repo_root / 'pyproject.toml'
12
reqs = repo_root / 'requirements.txt'
13
min_reqs = repo_root / 'min-requirements.txt'
14
15
with open(pyproject_toml, 'rb') as fobj:
- config = tomli.load(fobj)
16
+ config = tomllib.load(fobj)
17
project = config['project']
18
requirements = project['dependencies'] + project['optional-dependencies']['full']
19
0 commit comments