pmri-nce 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.
- pmri_nce-0.1.0/.coverage +0 -0
- pmri_nce-0.1.0/.github/workflows/publish.yml +50 -0
- pmri_nce-0.1.0/LICENSE +674 -0
- pmri_nce-0.1.0/PKG-INFO +16 -0
- pmri_nce-0.1.0/README.md +191 -0
- pmri_nce-0.1.0/pyproject.toml +83 -0
- pmri_nce-0.1.0/src/pmri_nce/__init__.py +70 -0
- pmri_nce-0.1.0/src/pmri_nce/beans.py +144 -0
- pmri_nce-0.1.0/src/pmri_nce/command_set.py +102 -0
- pmri_nce-0.1.0/src/pmri_nce/connection.py +360 -0
- pmri_nce-0.1.0/src/pmri_nce/consist.py +620 -0
- pmri_nce-0.1.0/src/pmri_nce/detect.py +60 -0
- pmri_nce-0.1.0/src/pmri_nce/messages.py +528 -0
- pmri_nce-0.1.0/src/pmri_nce/monitors.py +151 -0
- pmri_nce-0.1.0/src/pmri_nce/opcodes.py +215 -0
- pmri_nce-0.1.0/src/pmri_nce/programmer.py +294 -0
- pmri_nce-0.1.0/src/pmri_nce/throttle.py +178 -0
- pmri_nce-0.1.0/src/pmri_nce/traffic.py +190 -0
- pmri_nce-0.1.0/src/pmri_nce/transport/__init__.py +6 -0
- pmri_nce-0.1.0/src/pmri_nce/transport/loopback.py +54 -0
- pmri_nce-0.1.0/src/pmri_nce/transport/port.py +33 -0
- pmri_nce-0.1.0/src/pmri_nce/transport/serial_port.py +81 -0
- pmri_nce-0.1.0/src/pmri_ncemonitor/__init__.py +78 -0
- pmri_nce-0.1.0/src/pmri_ncemonitor/beans.py +167 -0
- pmri_nce-0.1.0/src/pmri_ncemonitor/codec.py +113 -0
- pmri_nce-0.1.0/src/pmri_ncemonitor/connection.py +87 -0
- pmri_nce-0.1.0/src/pmri_ncemonitor/messages.py +357 -0
- pmri_nce-0.1.0/src/pmri_ncemonitor/monitor.py +81 -0
- pmri_nce-0.1.0/src/pmri_ncemonitor/parity9bit.py +77 -0
- pmri_nce-0.1.0/src/pmri_ncemonitor/replay.py +155 -0
- pmri_nce-0.1.0/src/pmri_ncemonitor/transport/__init__.py +6 -0
- pmri_nce-0.1.0/src/pmri_ncemonitor/transport/loopback.py +35 -0
- pmri_nce-0.1.0/src/pmri_ncemonitor/transport/port.py +25 -0
- pmri_nce-0.1.0/src/pmri_ncemonitor/transport/serial_port.py +99 -0
- pmri_nce-0.1.0/tests/conftest.py +42 -0
- pmri_nce-0.1.0/tests/integration/test_bus_replay.py +122 -0
- pmri_nce-0.1.0/tests/integration/test_connection.py +694 -0
- pmri_nce-0.1.0/tests/integration/test_connection_close_path.py +51 -0
- pmri_nce-0.1.0/tests/integration/test_consist_readback.py +228 -0
- pmri_nce-0.1.0/tests/integration/test_monitor_connection.py +61 -0
- pmri_nce-0.1.0/tests/unit/test_beans.py +106 -0
- pmri_nce-0.1.0/tests/unit/test_command_set.py +39 -0
- pmri_nce-0.1.0/tests/unit/test_consist_readback_parse.py +178 -0
- pmri_nce-0.1.0/tests/unit/test_detect.py +64 -0
- pmri_nce-0.1.0/tests/unit/test_loopback.py +19 -0
- pmri_nce-0.1.0/tests/unit/test_messages.py +363 -0
- pmri_nce-0.1.0/tests/unit/test_monitor_beans.py +121 -0
- pmri_nce-0.1.0/tests/unit/test_monitor_codec.py +125 -0
- pmri_nce-0.1.0/tests/unit/test_monitor_core.py +115 -0
- pmri_nce-0.1.0/tests/unit/test_monitor_lifecycle.py +58 -0
- pmri_nce-0.1.0/tests/unit/test_monitor_messages.py +76 -0
- pmri_nce-0.1.0/tests/unit/test_monitor_new_messages.py +119 -0
- pmri_nce-0.1.0/tests/unit/test_monitor_parity9bit.py +74 -0
- pmri_nce-0.1.0/tests/unit/test_monitor_replay.py +122 -0
- pmri_nce-0.1.0/tests/unit/test_monitors.py +170 -0
- pmri_nce-0.1.0/tests/unit/test_programmer.py +323 -0
- pmri_nce-0.1.0/tests/unit/test_programmer_adapters.py +94 -0
- pmri_nce-0.1.0/tests/unit/test_throttle.py +175 -0
- pmri_nce-0.1.0/tests/unit/test_traffic.py +173 -0
pmri_nce-0.1.0/.coverage
ADDED
|
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-nce
|
|
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
|