Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10"]
python-version: ["3.9", "3.12"]
os: [ ubuntu-22.04 ]

runs-on: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion munet/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def get_event_loop():
try:
watcher = asyncio.PidfdChildWatcher() # pylint: disable=no-member
except Exception:
watcher = asyncio.SafeChildWatcher()
watcher = asyncio.SafeChildWatcher() # pylint: disable=deprecated-class
loop = policy.get_event_loop()

logging.debug(
Expand Down
1 change: 1 addition & 0 deletions munet/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ def complete(self, text, state):
done_set = set(tokens)

# Determine the domain for completions
all_cmds = set()
if not tokens or first_token:
all_cmds = (
set(cli_builtins) | hosts | cli_run_cmds | cli_win_cmds | top_run_cmds
Expand Down
12 changes: 9 additions & 3 deletions munet/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@

def get_schema():
if get_schema.schema is None:
with importlib.resources.path("munet", "munet-schema.json") as datapath:
with importlib.resources.path( # pylint: disable=deprecated-method
"munet", "munet-schema.json"
) as datapath:
search = [str(datapath.parent)]
get_schema.schema = get_config(basename="munet-schema", search=search)
return get_schema.schema
Expand Down Expand Up @@ -131,7 +133,9 @@ def setup_logging(args, config_base="logconf"):
os.chdir(args.rundir)
try:
search = [old]
with importlib.resources.path("munet", config_base + ".yaml") as datapath:
with importlib.resources.path( # pylint: disable=deprecated-method
"munet", config_base + ".yaml"
) as datapath:
search.append(str(datapath.parent))

def logf(msg, *p, **k):
Expand Down Expand Up @@ -234,7 +238,9 @@ def load_kinds(args, search=None):
try:
if search is None:
search = [cwd]
with importlib.resources.path("munet", "kinds.yaml") as datapath:
with importlib.resources.path( # pylint: disable=deprecated-method
"munet", "kinds.yaml"
) as datapath:
search.insert(0, str(datapath.parent))

configs = []
Expand Down
Loading