File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
# Auto-generated by tools/update_requirements.py
2
2
numpy ==1.17
3
- packaging ==17.0
3
+ packaging ==17
4
4
setuptools
Original file line number Diff line number Diff line change 1
1
# Auto-generated by tools/update_requirements.py
2
2
numpy >= 1.17
3
- packaging >= 17.0
3
+ packaging >= 17
4
4
setuptools
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
2
import sys
3
- from configparser import ConfigParser
3
+ import tomli
4
4
from pathlib import Path
5
5
6
6
if sys .version_info < (3 , 6 ):
7
7
print ("This script requires Python 3.6 to work correctly" )
8
8
sys .exit (1 )
9
9
10
10
repo_root = Path (__file__ ).parent .parent
11
- setup_cfg = repo_root / "setup.cfg "
11
+ pyproject_toml = repo_root / "pyproject.toml "
12
12
reqs = repo_root / "requirements.txt"
13
13
min_reqs = repo_root / "min-requirements.txt"
14
14
15
- config = ConfigParser ()
16
- config . read ( setup_cfg )
17
- requirements = config . get ( "options" , "install_requires" ). strip (). splitlines ()
15
+ with open ( pyproject_toml , 'rb' ) as fobj :
16
+ config = tomli . load ( fobj )
17
+ requirements = config [ "project" ][ "dependencies" ]
18
18
19
19
script_name = Path (__file__ ).relative_to (repo_root )
20
20
You can’t perform that action at this time.
0 commit comments