-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from ZLLentz/enh_ssh_data
ENH: ssh/scp data for tcbsd PLCs
- Loading branch information
Showing
12 changed files
with
613 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{% set package_name = "pmpsdb_client" %} | ||
{% set import_name = "pmpsdb_client" %} | ||
{% set version = load_file_regex(load_file=os.path.join(import_name, "_version.py"), regex_pattern=".*version = '(\S+)'").group(1) %} | ||
|
||
package: | ||
name: {{ package_name }} | ||
version : {{ version }} | ||
|
||
source: | ||
path: .. | ||
|
||
build: | ||
number: 0 | ||
noarch: python | ||
script: {{ PYTHON }} -m pip install . -vv | ||
|
||
requirements: | ||
build: | ||
- python >=3.9 | ||
- pip | ||
- setuptools_scm | ||
run: | ||
- python >=3.9 | ||
- fabric | ||
- ophyd | ||
- pcdscalc | ||
- pcdsutils | ||
- prettytable | ||
- qtpy | ||
run_constrained: | ||
- pyqt =5 | ||
|
||
test: | ||
requires: | ||
- pytest | ||
- pyqt=5.15 | ||
imports: | ||
- {{ import_name }} | ||
|
||
about: | ||
home: https://github.com/pcdshub/pcdsdevices | ||
license: SLAC Open License | ||
summary: IOC definitions for LCLS Beamline Devices |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
PyQt5 | ||
pytest | ||
setuptools-scm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
""" | ||
This module defines important data structures centrally. | ||
This helps us compare the same kinds of data to each other, | ||
even when this data comes from different sources. | ||
Note that all the dataclasses are frozen: editing these data | ||
structures is not in scope for this library, it is only intended | ||
to move these files around and compare them to each other. | ||
""" | ||
import dataclasses | ||
import datetime | ||
|
||
|
||
@dataclasses.dataclass(frozen=True) | ||
class FileInfo: | ||
""" | ||
Generalized file info. | ||
Only contains fields available to both ftp and ssh. | ||
This class has no constructor helpers here. | ||
Each data source will need to implement a unique | ||
constructor for this. | ||
""" | ||
filename: str | ||
size: int | ||
last_changed: datetime.datetime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.