ominfra 0.0.0.dev126__py3-none-any.whl → 0.0.0.dev128__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. ominfra/clouds/aws/auth.py +1 -1
  2. ominfra/deploy/_executor.py +1 -1
  3. ominfra/deploy/poly/_main.py +1 -1
  4. ominfra/pyremote/_runcommands.py +1 -1
  5. ominfra/scripts/journald2aws.py +2 -2
  6. ominfra/scripts/supervisor.py +4736 -4166
  7. ominfra/supervisor/configs.py +34 -11
  8. ominfra/supervisor/context.py +7 -345
  9. ominfra/supervisor/dispatchers.py +21 -324
  10. ominfra/supervisor/dispatchersimpl.py +343 -0
  11. ominfra/supervisor/groups.py +33 -111
  12. ominfra/supervisor/groupsimpl.py +86 -0
  13. ominfra/supervisor/inject.py +45 -20
  14. ominfra/supervisor/main.py +3 -3
  15. ominfra/supervisor/pipes.py +85 -0
  16. ominfra/supervisor/poller.py +42 -38
  17. ominfra/supervisor/privileges.py +65 -0
  18. ominfra/supervisor/process.py +6 -742
  19. ominfra/supervisor/processimpl.py +516 -0
  20. ominfra/supervisor/setup.py +38 -0
  21. ominfra/supervisor/setupimpl.py +262 -0
  22. ominfra/supervisor/spawning.py +32 -0
  23. ominfra/supervisor/spawningimpl.py +350 -0
  24. ominfra/supervisor/supervisor.py +67 -84
  25. ominfra/supervisor/types.py +101 -47
  26. ominfra/supervisor/utils/__init__.py +0 -0
  27. ominfra/supervisor/utils/collections.py +52 -0
  28. ominfra/supervisor/utils/diag.py +31 -0
  29. ominfra/supervisor/utils/fds.py +46 -0
  30. ominfra/supervisor/utils/fs.py +47 -0
  31. ominfra/supervisor/utils/os.py +45 -0
  32. ominfra/supervisor/utils/ostypes.py +9 -0
  33. ominfra/supervisor/utils/signals.py +60 -0
  34. ominfra/supervisor/utils/strings.py +105 -0
  35. ominfra/supervisor/utils/users.py +67 -0
  36. {ominfra-0.0.0.dev126.dist-info → ominfra-0.0.0.dev128.dist-info}/METADATA +3 -3
  37. {ominfra-0.0.0.dev126.dist-info → ominfra-0.0.0.dev128.dist-info}/RECORD +41 -25
  38. ominfra/supervisor/datatypes.py +0 -175
  39. ominfra/supervisor/signals.py +0 -52
  40. ominfra/supervisor/utils.py +0 -206
  41. {ominfra-0.0.0.dev126.dist-info → ominfra-0.0.0.dev128.dist-info}/LICENSE +0 -0
  42. {ominfra-0.0.0.dev126.dist-info → ominfra-0.0.0.dev128.dist-info}/WHEEL +0 -0
  43. {ominfra-0.0.0.dev126.dist-info → ominfra-0.0.0.dev128.dist-info}/entry_points.txt +0 -0
  44. {ominfra-0.0.0.dev126.dist-info → ominfra-0.0.0.dev128.dist-info}/top_level.txt +0 -0
@@ -67,7 +67,7 @@ class AwsSigner:
67
67
  }
68
68
  if url_parts.port is not None:
69
69
  if url_parts.port != default_ports.get(url_parts.scheme):
70
- host = '%s:%d' % (host, url_parts.port)
70
+ host = f'{host}:{int(url_parts.port)}'
71
71
  return host
72
72
 
73
73
  @staticmethod
@@ -368,7 +368,7 @@ class StandardLogFormatter(logging.Formatter):
368
368
  return ct.strftime(datefmt) # noqa
369
369
  else:
370
370
  t = ct.strftime('%Y-%m-%d %H:%M:%S')
371
- return '%s.%03d' % (t, record.msecs)
371
+ return '%s.%03d' % (t, record.msecs) # noqa
372
372
 
373
373
 
374
374
  ##
@@ -388,7 +388,7 @@ class StandardLogFormatter(logging.Formatter):
388
388
  return ct.strftime(datefmt) # noqa
389
389
  else:
390
390
  t = ct.strftime('%Y-%m-%d %H:%M:%S')
391
- return '%s.%03d' % (t, record.msecs)
391
+ return '%s.%03d' % (t, record.msecs) # noqa
392
392
 
393
393
 
394
394
  ##
@@ -451,7 +451,7 @@ class StandardLogFormatter(logging.Formatter):
451
451
  return ct.strftime(datefmt) # noqa
452
452
  else:
453
453
  t = ct.strftime('%Y-%m-%d %H:%M:%S')
454
- return '%s.%03d' % (t, record.msecs)
454
+ return '%s.%03d' % (t, record.msecs) # noqa
455
455
 
456
456
 
457
457
  ##
@@ -1252,7 +1252,7 @@ class AwsSigner:
1252
1252
  }
1253
1253
  if url_parts.port is not None:
1254
1254
  if url_parts.port != default_ports.get(url_parts.scheme):
1255
- host = '%s:%d' % (host, url_parts.port)
1255
+ host = f'{host}:{int(url_parts.port)}'
1256
1256
  return host
1257
1257
 
1258
1258
  @staticmethod
@@ -1818,7 +1818,7 @@ class StandardLogFormatter(logging.Formatter):
1818
1818
  return ct.strftime(datefmt) # noqa
1819
1819
  else:
1820
1820
  t = ct.strftime('%Y-%m-%d %H:%M:%S')
1821
- return '%s.%03d' % (t, record.msecs)
1821
+ return '%s.%03d' % (t, record.msecs) # noqa
1822
1822
 
1823
1823
 
1824
1824
  ##