pmri-dccex 0.1.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 (29) hide show
  1. pmri_dccex-0.1.0/.coverage +0 -0
  2. pmri_dccex-0.1.0/.github/workflows/publish.yml +50 -0
  3. pmri_dccex-0.1.0/LICENSE +674 -0
  4. pmri_dccex-0.1.0/PKG-INFO +15 -0
  5. pmri_dccex-0.1.0/README.md +92 -0
  6. pmri_dccex-0.1.0/pyproject.toml +57 -0
  7. pmri_dccex-0.1.0/src/pmri_dccex/__init__.py +37 -0
  8. pmri_dccex-0.1.0/src/pmri_dccex/beans.py +167 -0
  9. pmri_dccex-0.1.0/src/pmri_dccex/codec.py +83 -0
  10. pmri_dccex-0.1.0/src/pmri_dccex/connection.py +162 -0
  11. pmri_dccex-0.1.0/src/pmri_dccex/exrail.py +303 -0
  12. pmri_dccex-0.1.0/src/pmri_dccex/programmer.py +249 -0
  13. pmri_dccex-0.1.0/src/pmri_dccex/throttle.py +88 -0
  14. pmri_dccex-0.1.0/src/pmri_dccex/traffic.py +73 -0
  15. pmri_dccex-0.1.0/src/pmri_dccex/transport/__init__.py +7 -0
  16. pmri_dccex-0.1.0/src/pmri_dccex/transport/loopback.py +34 -0
  17. pmri_dccex-0.1.0/src/pmri_dccex/transport/port.py +16 -0
  18. pmri_dccex-0.1.0/src/pmri_dccex/transport/serial_port.py +48 -0
  19. pmri_dccex-0.1.0/src/pmri_dccex/transport/tcp_port.py +45 -0
  20. pmri_dccex-0.1.0/tests/conftest.py +42 -0
  21. pmri_dccex-0.1.0/tests/integration/test_connection.py +63 -0
  22. pmri_dccex-0.1.0/tests/integration/test_connection_lifecycle.py +31 -0
  23. pmri_dccex-0.1.0/tests/unit/test_beans.py +155 -0
  24. pmri_dccex-0.1.0/tests/unit/test_codec.py +57 -0
  25. pmri_dccex-0.1.0/tests/unit/test_consist_advanced.py +196 -0
  26. pmri_dccex-0.1.0/tests/unit/test_exrail.py +326 -0
  27. pmri_dccex-0.1.0/tests/unit/test_programmer.py +199 -0
  28. pmri_dccex-0.1.0/tests/unit/test_throttle.py +102 -0
  29. pmri_dccex-0.1.0/tests/unit/test_traffic.py +42 -0
Binary file
@@ -0,0 +1,50 @@
1
+ on:
2
+ release:
3
+ types: [created]
4
+
5
+ jobs:
6
+ build:
7
+ name: Build distribution
8
+ runs-on: ubuntu-latest
9
+
10
+
11
+ steps:
12
+ - uses: actions/checkout@v6
13
+ with:
14
+ persist-credentials: false
15
+ - name: Set up Python
16
+ uses: actions/setup-python@v6
17
+ with:
18
+ python-version: "3.x"
19
+ - name: Install pypa/build
20
+ run: >-
21
+ python3 -m
22
+ pip install
23
+ build
24
+ --user
25
+ - name: Build a wheel and a source distribution
26
+ run: python3 -m build
27
+ - name: Store the distribution packages
28
+ uses: actions/upload-artifact@v5
29
+ with:
30
+ name: python-package-distributions
31
+ path: dist/
32
+ publish-to-pypi:
33
+ name: Publish release to PyPI
34
+ #if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
35
+ needs:
36
+ - build
37
+ runs-on: ubuntu-latest
38
+ environment:
39
+ name: pypi
40
+ url: https://pypi.org/p/pmri-dccex
41
+ permissions:
42
+ id-token: write
43
+ steps:
44
+ - name: Download all the dists
45
+ uses: actions/download-artifact@v6
46
+ with:
47
+ name: python-package-distributions
48
+ path: dist/
49
+ - name: Publish distribution to PyPI
50
+ uses: pypa/gh-action-pypi-publish@release/v1