Skip to content

Commit 5ffb12e

Browse files
committed
Merge remote-tracking branch 'origin/topic/timw/python-upgrade'
* origin/topic/timw/python-upgrade: Fix ruff UP check findings Upgrade python requirement to 3.9
2 parents 8e8a51a + ee691ac commit 5ffb12e

File tree

8 files changed

+17
-12
lines changed

8 files changed

+17
-12
lines changed

.github/workflows/btest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
Run-BTest:
1313
strategy:
1414
matrix:
15-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
15+
python-version: ["3.9", "3.10", "3.11", "3.12"]
1616
os: [macos-latest, ubuntu-latest, windows-latest]
1717

1818
runs-on: ${{ matrix.os }}
@@ -53,7 +53,7 @@ jobs:
5353
Test-SetupPY:
5454
strategy:
5555
matrix:
56-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
56+
python-version: ["3.9", "3.10", "3.11", "3.12"]
5757
os: [ubuntu-latest]
5858

5959
runs-on: ${{ matrix.os }}

CHANGES

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
1.1-20 | 2024-12-04 08:46:27 -0700
2+
3+
* Fix ruff UP check findings (Tim Wojtulewicz, Corelight)
4+
5+
* Upgrade python requirement to 3.9 (Tim Wojtulewicz, Corelight)
6+
17
1.1-17 | 2024-07-31 14:15:38 +0200
28

39
* ci: Drop python-3.7, add python-3.12 (Benjamin Bannier, Corelight)

README

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
..
33
.. Version number is filled in automatically.
44

5-
.. |version| replace:: 1.1-17
5+
.. |version| replace:: 1.1-20
66

77
==================================================
88
BTest - A Generic Driver for Powerful System Tests
@@ -27,8 +27,7 @@ Prerequisites
2727

2828
BTest has the following prerequisites:
2929

30-
- Python version >= 3.7 (older versions may work, but are not
31-
well-tested).
30+
- Python version >= 3.9 (older versions may work, but are not well-tested).
3231

3332
- Bash. Note that on FreeBSD and Alpine Linux, bash is not installed by
3433
default. This is also required on Windows, in the form of Git's msys2, Cygwin,

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1-17
1+
1.1-20

btest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ else:
5656
import multiprocessing.managers as mp_managers
5757
import multiprocessing.sharedctypes as mp_sharedctypes
5858

59-
VERSION = "1.1-17" # Automatically filled in.
59+
VERSION = "1.1-20" # Automatically filled in.
6060

6161
Name = "btest"
6262
Config = None

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dynamic = ["version"]
99

1010
license = { text = "3-clause BSD License" }
1111

12-
requires-python = ">=3.7"
12+
requires-python = ">=3.9"
1313

1414
keywords=[
1515
"system",

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
py_modules = ["btest-sphinx"]
66

77
setup(
8-
version="1.1.dev17", # Filled in automatically.
8+
version="1.1.dev20", # Filled in automatically.
99
py_modules=py_modules,
1010
)

sphinx/btest-sphinx.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def apply(self):
109109
BTestTransform._run.add(test.tag)
110110

111111
try:
112-
rawtext = open("%s#%d" % (test.rst_output, part)).read()
112+
rawtext = open(f"{test.rst_output}#{part}").read()
113113
except OSError:
114114
rawtext = ""
115115

@@ -162,7 +162,7 @@ def run(self):
162162
if part == 1:
163163
file = test.path
164164
else:
165-
file = test.path + "#%d" % part
165+
file = f"{test.path}#{part}"
166166

167167
out = open(file, "w")
168168
for line in self.content:
@@ -247,7 +247,7 @@ def run(self):
247247
while test_path in Includes:
248248
i += 1
249249

250-
test_path = "%s@%d" % (base, i)
250+
test_path = f"{base}@{i}"
251251
if ext:
252252
test_path += ext
253253

0 commit comments

Comments
 (0)