File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,13 @@ def configure_parser(sub_parsers):
22
22
23
23
def execute (args , p ):
24
24
import os
25
- from wheel .install import WHEEL_INFO_RE # type: ignore
25
+ from wheel .wheelfile import WHEEL_INFO_RE # type: ignore
26
26
from .wheeltools import InWheelCtx , add_platforms , WheelToolsError
27
27
from .wheel_abi import analyze_wheel_abi
28
28
29
29
wheel_abi = analyze_wheel_abi (args .WHEEL_FILE )
30
30
31
- parsed_fname = WHEEL_INFO_RE (basename (args .WHEEL_FILE ))
31
+ parsed_fname = WHEEL_INFO_RE . search (basename (args .WHEEL_FILE ))
32
32
in_fname_tags = parsed_fname .groupdict ()['plat' ].split ('.' )
33
33
34
34
logger .info ('%s receives the following tag: "%s".' ,
Original file line number Diff line number Diff line change
1
+ from unittest .mock import Mock
2
+ from pathlib import Path
3
+
4
+ from auditwheel .main_addtag import execute
5
+
6
+ HERE = Path (__file__ ).parent .resolve ()
7
+
8
+ def test_smoke (tmpdir ):
9
+ """Simple test to exercise the 'addtag' code path"""
10
+ args = Mock (WHEEL_FILE = str (HERE / "cffi-1.5.0-cp27-none-linux_x86_64.whl" ),
11
+ WHEEL_DIR = str (tmpdir / "wheelhouse/" ))
12
+ execute (args , None )
You can’t perform that action at this time.
0 commit comments