rtems-proxy 0.3.0__tar.gz → 0.5.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/PKG-INFO +1 -1
  2. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/src/rtems_proxy/__main__.py +0 -1
  3. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/src/rtems_proxy/_version.py +2 -2
  4. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/src/rtems_proxy/rsync.sh.jinja +1 -1
  5. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/src/rtems_proxy/telnet.py +9 -1
  6. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/src/rtems_proxy/utils.py +0 -2
  7. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/src/rtems_proxy.egg-info/PKG-INFO +1 -1
  8. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.copier-answers.yml +0 -0
  9. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.devcontainer/devcontainer.json +0 -0
  10. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.github/CONTRIBUTING.md +0 -0
  11. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.github/actions/install_requirements/action.yml +0 -0
  12. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.github/dependabot.yml +0 -0
  13. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.github/pages/index.html +0 -0
  14. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.github/pages/make_switcher.py +0 -0
  15. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.github/workflows/_check.yml +0 -0
  16. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.github/workflows/_dist.yml +0 -0
  17. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.github/workflows/_pypi.yml +0 -0
  18. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.github/workflows/_release.yml +0 -0
  19. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.github/workflows/_test.yml +0 -0
  20. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.github/workflows/_tox.yml +0 -0
  21. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.github/workflows/ci.yml +0 -0
  22. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.gitignore +0 -0
  23. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.pre-commit-config.yaml +0 -0
  24. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.vscode/extensions.json +0 -0
  25. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.vscode/launch.json +0 -0
  26. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.vscode/settings.json +0 -0
  27. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.vscode/tasks.json +0 -0
  28. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/Dockerfile +0 -0
  29. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/LICENSE +0 -0
  30. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/README.md +0 -0
  31. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/catalog-info.yaml +0 -0
  32. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/proxy-start.sh +0 -0
  33. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/pyproject.toml +0 -0
  34. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/requirements.txt +0 -0
  35. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/setup.cfg +0 -0
  36. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/src/rtems_proxy/__init__.py +0 -0
  37. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/src/rtems_proxy/copy.py +0 -0
  38. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/src/rtems_proxy/globals.py +0 -0
  39. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/src/rtems_proxy.egg-info/SOURCES.txt +0 -0
  40. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/src/rtems_proxy.egg-info/dependency_links.txt +0 -0
  41. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/src/rtems_proxy.egg-info/entry_points.txt +0 -0
  42. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/src/rtems_proxy.egg-info/requires.txt +0 -0
  43. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/src/rtems_proxy.egg-info/top_level.txt +0 -0
  44. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/tests/conftest.py +0 -0
  45. {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/tests/test_cli.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rtems-proxy
3
- Version: 0.3.0
3
+ Version: 0.5.0
4
4
  Summary: Support for a K8S proxy container in controlling and monitoring RTEMS EPICS IOCs
5
5
  Author-email: Giles Knap <giles.knap@diamond.ac.uk>
6
6
  License: Apache License
@@ -1,5 +1,4 @@
1
1
  from pathlib import Path
2
- from time import sleep
3
2
  from typing import Optional
4
3
 
5
4
  import typer
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.3.0'
16
- __version_tuple__ = version_tuple = (0, 3, 0)
15
+ __version__ = version = '0.5.0'
16
+ __version_tuple__ = version_tuple = (0, 5, 0)
@@ -10,9 +10,9 @@ export IOC_PATH={{ ioc_path }}
10
10
  pkill -f rsync-background &>/dev/null
11
11
 
12
12
  ibek dev instance $IOC_PATH
13
+ bash /epics/ioc/install.sh
13
14
 
14
15
  mkdir -p $RTEMS_TFTP_PATH
15
- cd $RTEMS_TFTP_PATH
16
16
 
17
17
  # get previous contents
18
18
  rsync -rt "rsync://$RTEMS_TFTP_IP:12002/files/$IOC_GROUP/$IOC_NAME/" $RTEMS_TFTP_PATH 2>/dev/null
@@ -92,6 +92,8 @@ class TelnetRTEMS:
92
92
  bootloader. Because there is a possibility that we are in the middle
93
93
  of a reboot, we will retry for one before giving up.
94
94
  """
95
+ assert self._child, "must call connect before check_prompt"
96
+
95
97
  while retries > 0:
96
98
  try:
97
99
  # see if we are in the IOC shell
@@ -123,6 +125,8 @@ class TelnetRTEMS:
123
125
  Reboot the board from IOC shell or bootloader and choose appropriate
124
126
  options to get to the state requested by the into argument.
125
127
  """
128
+ assert self._child, "must call connect before reboot"
129
+
126
130
  self.report(f"Rebooting into {into.name}")
127
131
  current_state = self.check_prompt()
128
132
  if current_state == RtemsState.MOT:
@@ -144,10 +148,12 @@ class TelnetRTEMS:
144
148
  it into the IOC shell. If the IOC is running, do a reboot only if
145
149
  requested (in order to pick up new binaries/startup/epics db)
146
150
  """
151
+ assert self._child, "must call connect before get_epics_prompt"
152
+
147
153
  current = self.check_prompt()
148
154
  if current != RtemsState.IOC:
149
155
  sleep(0.2)
150
- self._child.reboot(RtemsState.IOC)
156
+ self.reboot(RtemsState.IOC)
151
157
  self.ioc_rebooted = True
152
158
  self._child.expect(self.IOC_STARTED, timeout=50)
153
159
  else:
@@ -163,6 +169,8 @@ class TelnetRTEMS:
163
169
  Get to the bootloader prompt, if the IOC shell is running then exit
164
170
  and send appropriate commands to get to the bootloader
165
171
  """
172
+ assert self._child, "must call connect before get_boot_prompt"
173
+
166
174
  current = self.check_prompt()
167
175
  if current != RtemsState.MOT:
168
176
  # get out of the IOC and return to MOT
@@ -36,8 +36,6 @@ def run_command(
36
36
 
37
37
  if p_result.returncode != 0 and not error_OK:
38
38
  typer.echo("\nCommand Failed:")
39
- if not globals.EC_VERBOSE:
40
- typer.echo(command)
41
39
  typer.echo(output)
42
40
  typer.echo(error_out)
43
41
  raise typer.Exit(1)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rtems-proxy
3
- Version: 0.3.0
3
+ Version: 0.5.0
4
4
  Summary: Support for a K8S proxy container in controlling and monitoring RTEMS EPICS IOCs
5
5
  Author-email: Giles Knap <giles.knap@diamond.ac.uk>
6
6
  License: Apache License
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes