ominfra 0.0.0.dev125__py3-none-any.whl → 0.0.0.dev127__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) 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 +1825 -1217
  7. ominfra/supervisor/collections.py +52 -0
  8. ominfra/supervisor/context.py +2 -336
  9. ominfra/supervisor/datatypes.py +1 -63
  10. ominfra/supervisor/dispatchers.py +22 -338
  11. ominfra/supervisor/dispatchersimpl.py +342 -0
  12. ominfra/supervisor/groups.py +33 -110
  13. ominfra/supervisor/groupsimpl.py +86 -0
  14. ominfra/supervisor/inject.py +45 -13
  15. ominfra/supervisor/main.py +1 -1
  16. ominfra/supervisor/pipes.py +83 -0
  17. ominfra/supervisor/poller.py +6 -3
  18. ominfra/supervisor/privileges.py +65 -0
  19. ominfra/supervisor/processes.py +18 -0
  20. ominfra/supervisor/{process.py → processesimpl.py} +99 -317
  21. ominfra/supervisor/setup.py +38 -0
  22. ominfra/supervisor/setupimpl.py +261 -0
  23. ominfra/supervisor/signals.py +24 -16
  24. ominfra/supervisor/spawning.py +31 -0
  25. ominfra/supervisor/spawningimpl.py +347 -0
  26. ominfra/supervisor/supervisor.py +54 -78
  27. ominfra/supervisor/types.py +122 -39
  28. ominfra/supervisor/users.py +64 -0
  29. {ominfra-0.0.0.dev125.dist-info → ominfra-0.0.0.dev127.dist-info}/METADATA +3 -3
  30. {ominfra-0.0.0.dev125.dist-info → ominfra-0.0.0.dev127.dist-info}/RECORD +34 -23
  31. {ominfra-0.0.0.dev125.dist-info → ominfra-0.0.0.dev127.dist-info}/LICENSE +0 -0
  32. {ominfra-0.0.0.dev125.dist-info → ominfra-0.0.0.dev127.dist-info}/WHEEL +0 -0
  33. {ominfra-0.0.0.dev125.dist-info → ominfra-0.0.0.dev127.dist-info}/entry_points.txt +0 -0
  34. {ominfra-0.0.0.dev125.dist-info → ominfra-0.0.0.dev127.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
  ##