Skip to content

Commit 615d544

Browse files
authored
Feature/python314 (#127)
* add support for python3.14 * fix tarfile edgecase in python3.14
1 parent bbb066b commit 615d544

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-22.04
1313
strategy:
1414
matrix:
15-
python-version: ["3.7", "3.9", "3.11", "3.13"]
15+
python-version: ["3.7", "3.9", "3.11", "3.13", "3.14"]
1616
steps:
1717
- uses: actions/checkout@v3
1818
- name: Set up Python ${{ matrix.python-version }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[![PyPI Downloads Shield](https://img.shields.io/pypi/dm/sigmf)](https://pypi.org/project/SigMF/)
88

99
The `sigmf` library makes it easy to interact with Signal Metadata Format
10-
(SigMF) recordings. This library is compatible with Python 3.7-3.13 and is distributed
10+
(SigMF) recordings. This library is compatible with Python 3.7-3.14 and is distributed
1111
freely under the terms GNU Lesser GPL v3 License.
1212

1313
This module follows the SigMF specification [html](https://sigmf.org/)/[pdf](https://sigmf.github.io/SigMF/sigmf-spec.pdf) from the [spec repository](https://github.com/sigmf/SigMF).

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ classifiers = [
1414
"Programming Language :: Python :: 3.11",
1515
"Programming Language :: Python :: 3.12",
1616
"Programming Language :: Python :: 3.13",
17+
"Programming Language :: Python :: 3.14",
1718
"Topic :: Scientific/Engineering",
1819
"Topic :: Communications :: Ham Radio",
1920
]

sigmf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# SPDX-License-Identifier: LGPL-3.0-or-later
66

77
# version of this python module
8-
__version__ = "1.6.0"
8+
__version__ = "1.6.1"
99
# matching version of the SigMF specification
1010
__specification__ = "1.2.6"
1111

tests/test_archive.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,10 @@ def test_fileobj_ignores_extension(self):
6969

7070
def test_custom_name_overrides_fileobj_name(self):
7171
"""Test that name is used in file object"""
72-
with open(self.temp_path_archive, "wb") as temp:
73-
sigmf_archive = self.sigmf_object.archive(name="testarchive", fileobj=temp)
74-
sigmf_tarfile = tarfile.open(sigmf_archive, mode="r")
72+
with open(self.temp_path_archive, "w+b") as temp:
73+
self.sigmf_object.archive(name="testarchive", fileobj=temp)
74+
temp.seek(0) # rewind to beginning of file after writing
75+
sigmf_tarfile = tarfile.open(fileobj=temp, mode="r")
7576
basedir, file1, file2 = sigmf_tarfile.getmembers()
7677
self.assertEqual(basedir.name, "testarchive")
7778
self.assertEqual(Path(file1.name).stem, "testarchive")

0 commit comments

Comments
 (0)