Skip to content

Commit 476c1ae

Browse files
committed
Merge branch 'main' of https://github.com/NTIA/scos-tekrsa into nan_y_factor_cal
2 parents 5a58dc6 + b4c5af2 commit 476c1ae

File tree

9 files changed

+32
-31
lines changed

9 files changed

+32
-31
lines changed

.github/workflows/build-docker-image.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Set up Docker Buildx
22-
uses: docker/setup-buildx-action@v2
22+
uses: docker/setup-buildx-action@v3
2323
- name: Build tekrsa_usb Docker image
24-
uses: docker/build-push-action@v4
24+
uses: docker/build-push-action@v6
2525
with:
2626
push: false
2727
tags: tekrsa_usb

.github/workflows/tox.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ jobs:
3131
fail-fast: false
3232
matrix:
3333
os:
34-
- ubuntu-20.04
34+
- ubuntu-22.04
3535
py:
36-
- "3.8"
3736
- "3.9"
3837
- "3.10"
3938
- "3.11"
39+
- "3.12"
4040
steps:
4141
- name: Set up Python ${{ matrix.py }}
42-
uses: actions/setup-python@v4
42+
uses: actions/setup-python@v5
4343
with:
4444
python-version: ${{ matrix.py }}
4545
- name: Checkout scos-tekrsa
46-
uses: actions/checkout@v3
46+
uses: actions/checkout@v4
4747
- name: Install tox-gh
4848
run: python -m pip install tox-gh
4949
- name: Set up test suite

.pre-commit-config.yaml

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
default_language_version:
2-
python: python3.8
31
repos:
42
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.5.0
3+
rev: v5.0.0
64
hooks:
75
- id: check-ast
86
types: [file, python]
@@ -18,10 +16,10 @@ repos:
1816
- id: end-of-file-fixer
1917
- id: trailing-whitespace
2018
- repo: https://github.com/asottile/pyupgrade
21-
rev: v3.15.2
19+
rev: v3.19.0
2220
hooks:
2321
- id: pyupgrade
24-
args: ["--py38-plus"]
22+
args: ["--py39-plus"]
2523
- repo: https://github.com/pycqa/isort
2624
rev: 5.13.2
2725
hooks:
@@ -30,12 +28,12 @@ repos:
3028
types: [file, python]
3129
args: ["--profile", "black", "--filter-files", "--gitignore"]
3230
- repo: https://github.com/psf/black
33-
rev: 24.4.2
31+
rev: 24.10.0
3432
hooks:
3533
- id: black
3634
types: [file, python]
3735
- repo: https://github.com/igorshubovych/markdownlint-cli
38-
rev: v0.40.0
36+
rev: v0.42.0
3937
hooks:
4038
- id: markdownlint
4139
types: [file, markdown]

README.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Tektronix RSA devices, along with supporting test code
5757

5858
## Running in SCOS Sensor
5959

60-
Requires `git`, `python>=3.8`, `pip>=18.1`, and `pip-tools>=6.6.2`
60+
Requires `git`, `python>=3.9`, `pip>=18.1`, and `pip-tools>=6.6.2`
6161

6262
Below are the steps to run SCOS Sensor with the SCOS Tektronix RSA plugin:
6363

@@ -107,7 +107,8 @@ file:
107107
(such as `scos_usrp`), then add the `scos_tekrsa` dependency:
108108

109109
```text
110-
scos_tekrsa @ git+https://github.com/NTIA/[email protected]
110+
# Be sure to provide the correct tag for the desired version
111+
scos_tekrsa @ git+https://github.com/NTIA/[email protected]
111112
```
112113

113114
1. Compile requirements by running:
@@ -149,7 +150,7 @@ from Tektronix. Place the three files `libRSA_API.so`, `libcyusb_shared.so`, and
149150

150151
Set up a development environment using a tool like
151152
[Conda](https://docs.conda.io/en/latest/)
152-
or [venv](https://docs.python.org/3/library/venv.html#module-venv), with `python>=3.8`.
153+
or [venv](https://docs.python.org/3/library/venv.html#module-venv), with `python>=3.9`.
153154
Then, from the cloned directory, install the development dependencies by running:
154155

155156
```bash
@@ -195,7 +196,9 @@ Registry, run:
195196
```bash
196197
docker build -f docker/Dockerfile -t tekrsa_usb .
197198
docker tag tekrsa_usb ghcr.io/ntia/scos-tekrsa/tekrsa_usb:X.X.X
199+
docker tag tekrsa_usb ghcr.io/ntia/scos-tekrsa/tekrsa_usb:latest
198200
docker push ghcr.io/ntia/scos-tekrsa/tekrsa_usb:X.X.X
201+
docker push ghcr.io/ntia/scos-tekrsa/tekrsa_usb:latest
199202
```
200203

201204
### Running Tests
@@ -217,7 +220,8 @@ TEKTRONIX and TEK are registered trademarks of Tektronix, Inc.
217220

218221
## Contact
219222

220-
For technical questions about `scos_tekrsa`, contact Anthony Romaniello, <[email protected]>
223+
For technical questions about `scos_tekrsa`, contact the
224+
[ITS Spectrum Monitoring Team](mailto:[email protected]).
221225

222226
## Disclaimer
223227

docker/Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:20.04
1+
FROM ubuntu:22.04
22

33
# Create Tektronix.rules as described in RSA API installation notes
44
RUN mkdir -p /etc/udev/rules.d/
@@ -7,5 +7,5 @@ RUN echo "SUBSYSTEM==\"usb\", ATTR{idVendor}==\"0699\", MODE=\"0666\", GROUP=\"p
77
RUN chmod a+r /etc/udev/rules.d/Tektronix.rules
88

99
# Locale fixes
10-
ENV LC_ALL C.UTF-8
11-
ENV LANG C.UTF-8
10+
ENV LC_ALL=C.UTF-8
11+
ENV LANG=C.UTF-8

pyproject.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "scos-tekrsa"
77
dynamic = ["version"]
88
description = "Plugin for SCOS Sensor which adds support for Tektronix RSA-series spectrum analyzers"
99
readme = "README.md"
10-
requires-python = ">=3.8"
10+
requires-python = ">=3.9"
1111
license = { file = "LICENSE.md" }
1212

1313
authors = [
@@ -32,10 +32,10 @@ classifiers = [
3232
"Environment :: Plugins",
3333
"Programming Language :: Python",
3434
"Programming Language :: Python :: 3",
35-
"Programming Language :: Python :: 3.8",
3635
"Programming Language :: Python :: 3.9",
3736
"Programming Language :: Python :: 3.10",
3837
"Programming Language :: Python :: 3.11",
38+
"Programming Language :: Python :: 3.12",
3939
]
4040

4141
dependencies = [
@@ -46,14 +46,14 @@ dependencies = [
4646

4747
[project.optional-dependencies]
4848
tests = [
49-
"pytest>=7.3.1,<8.0",
50-
"pytest-cov>=4.0.0,<5.0",
49+
"pytest>=8.0,<9.0",
50+
"pytest-cov>=6.0,<7.0",
5151
"tox>=4.5.1,<5.0", # Should keep in sync with tox.ini minimum_version
5252
]
5353

5454
dev = [
5555
"hatchling>=1.14.2,<2.0",
56-
"pre-commit>=3.3.1,<4.0",
56+
"pre-commit>=4.0,<5.0",
5757
"scos-tekrsa[tests]",
5858
]
5959

src/scos_tekrsa/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
__version__ = "7.0.1"
2-
1+
__version__ = "8.0.0"

src/scos_tekrsa/hardware/tekrsa_sigan.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import logging
22
import threading
3-
from typing import Dict, Optional
3+
from typing import Optional
44

55
from its_preselector.web_relay import WebRelay
66
from scos_actions import utils
@@ -20,7 +20,7 @@
2020
class TekRSASigan(SignalAnalyzerInterface):
2121
def __init__(
2222
self,
23-
switches: Optional[Dict[str, WebRelay]] = None,
23+
switches: Optional[dict[str, WebRelay]] = None,
2424
):
2525

2626
try:

tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[tox]
22
env_list =
3-
py38
43
py39
54
py310
65
py311
6+
py312
77
min_version = 4.5.1
88
skip_missing_interpreters = true
99
no_package = false
@@ -17,7 +17,7 @@ commands = pytest --cov-report term-missing --no-cov-on-fail --cov {posargs}
1717

1818
[gh] ; GitHub Actions CI with tox-gh
1919
python =
20-
3.8 = py38
2120
3.9 = py39
2221
3.10 = py310
2322
3.11 = py311
23+
3.12 = py312

0 commit comments

Comments
 (0)