File tree Expand file tree Collapse file tree 6 files changed +13
-7
lines changed Expand file tree Collapse file tree 6 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ include LICENSE.txt
33include *.md
44include Makefile
55include *.py
6- recursive-include iocage *.py
6+ recursive-include libioc *.py
Original file line number Diff line number Diff line change @@ -1743,7 +1743,7 @@ def _exec_host_command(
17431743 )
17441744 except StopIteration as return_statement :
17451745 output : libioc .helpers .CommandOutput
1746- output = return_statement .value
1746+ output = return_statement .value # noqa: T484
17471747 return output
17481748 except (KeyboardInterrupt , SystemExit ):
17491749 raise libioc .errors .JailExecutionAborted (
Original file line number Diff line number Diff line change 3535
3636
3737def _get_userland_version () -> float :
38- return float (libioc .helpers .get_os_version ()["userland" ])
38+ return float (libioc .helpers .get_os_version ()["userland" ])
3939
4040
4141def _parse (text : str ) -> JailStatesDict :
Original file line number Diff line number Diff line change @@ -99,8 +99,8 @@ def __iter__(
9999 for child_dataset in children :
100100 name = self ._get_asset_name_from_dataset (child_dataset )
101101 if has_filters and (filters .match_key ("name" , name ) is False ):
102- # Skip all jails that do not even match the name
103- continue
102+ # Skip all jails that do not even match the name
103+ continue
104104
105105 # ToDo: Do not load jail if filters do not require to
106106 resource = self ._get_resource_from_dataset (child_dataset )
Original file line number Diff line number Diff line change 3131except ModuleNotFoundError :
3232 from pip .req import parse_requirements
3333
34+ try :
35+ import setuptools_scm .integration
36+ setuptools_scm .integration .find_files = lambda _ : []
37+ except ImportError :
38+ pass
39+
3440
3541def _read_requirements (
3642 filename : str = "requirements.txt"
Original file line number Diff line number Diff line change @@ -96,12 +96,12 @@ def cleanup() -> None:
9696 data = read_jail_config_json (f"{ dataset .mountpoint } /config.json" )
9797
9898 try :
99- assert data ["basejail" ] is "no"
99+ assert data ["basejail" ] == "no"
100100 except KeyError :
101101 pass
102102
103103 try :
104- assert (data ["basejail" ] is "" ) or (data ["basejail" ] == "none" )
104+ assert (data ["basejail" ] == "" ) or (data ["basejail" ] == "none" )
105105 except KeyError :
106106 pass
107107
You can’t perform that action at this time.
0 commit comments