File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11# Auto-generated by tools/update_requirements.py
22numpy ==1.17
3- packaging ==17.0
3+ packaging ==17
44setuptools
Original file line number Diff line number Diff line change 11# Auto-generated by tools/update_requirements.py
22numpy >= 1.17
3- packaging >= 17.0
3+ packaging >= 17
44setuptools
Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22import sys
3- from configparser import ConfigParser
3+ import tomli
44from pathlib import Path
55
66if sys .version_info < (3 , 6 ):
77 print ("This script requires Python 3.6 to work correctly" )
88 sys .exit (1 )
99
1010repo_root = Path (__file__ ).parent .parent
11- setup_cfg = repo_root / "setup.cfg "
11+ pyproject_toml = repo_root / "pyproject.toml "
1212reqs = repo_root / "requirements.txt"
1313min_reqs = repo_root / "min-requirements.txt"
1414
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" ]
1818
1919script_name = Path (__file__ ).relative_to (repo_root )
2020
You can’t perform that action at this time.
0 commit comments