File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ classifiers =
26
26
[options]
27
27
packages = setuptools_rust
28
28
zip_safe = True
29
- install_requires = setuptools>=46.1; semantic_version>=2.6.0; toml>=0.9.0 ; typing_extensions>=3.7.4.3
30
- setup_requires = setuptools>=46.1; setuptools_scm[toml]>=3.4.3
29
+ install_requires = setuptools>=46.1; semantic_version>=2.6.0; tomli>=1.2.1 ; typing_extensions>=3.7.4.3
30
+ setup_requires = setuptools>=46.1; setuptools_scm>=6.3.2
31
31
python_requires = >=3.6
32
32
33
33
[options.entry_points]
Original file line number Diff line number Diff line change 5
5
from typing import Dict , List , Optional , Union
6
6
7
7
import semantic_version
8
+ import tomli
8
9
from typing_extensions import Literal
9
10
10
11
@@ -145,10 +146,8 @@ def __init__(
145
146
146
147
def get_lib_name (self ):
147
148
"""Parse Cargo.toml to get the name of the shared library."""
148
- # We import in here to make sure the the setup_requires are already installed
149
- import toml
150
-
151
- cfg = toml .load (self .path )
149
+ with open (self .path , "rb" ) as f :
150
+ cfg = tomli .load (f )
152
151
name = cfg .get ("lib" , {}).get ("name" )
153
152
if name is None :
154
153
name = cfg .get ("package" , {}).get ("name" )
You can’t perform that action at this time.
0 commit comments