Skip to content

Commit 05ea1e6

Browse files
committed
Drop support for Python 3.9
1 parent fb1bcb3 commit 05ea1e6

5 files changed

Lines changed: 7 additions & 15 deletions

File tree

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
python-version: ['3.9', '3.14']
11+
python-version: ['3.10', '3.14']
1212
steps:
1313
- uses: actions/checkout@v5
1414
with:
@@ -27,7 +27,7 @@ jobs:
2727
strategy:
2828
fail-fast: false
2929
matrix:
30-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
30+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
3131
steps:
3232
- uses: actions/checkout@v5
3333
with:

lib/bx/misc/seekbzip2_tests.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@
66
import os
77
import random
88
from codecs import encode
9-
from typing import Optional
109

1110
from bx.misc import seekbzip2
1211

13-
F: Optional[str] = None
14-
T: Optional[str] = None
12+
F: str | None = None
13+
T: str | None = None
1514

1615
# F="/Users/james/work/seek-bzip2/test_random.dat.bz2"
1716
# T="/Users/james/cache/hg18/align/multiz28way/chr10.maf.bz2"

pyproject.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ classifiers = [
2929
"Intended Audience :: Science/Research",
3030
"Operating System :: POSIX",
3131
"Programming Language :: Python :: 3",
32-
"Programming Language :: Python :: 3.9",
3332
"Programming Language :: Python :: 3.10",
3433
"Programming Language :: Python :: 3.11",
3534
"Programming Language :: Python :: 3.12",
@@ -38,7 +37,7 @@ classifiers = [
3837
"Topic :: Scientific/Engineering :: Bio-Informatics",
3938
"Topic :: Software Development :: Libraries :: Python Modules",
4039
]
41-
requires-python = ">=3.9"
40+
requires-python = ">=3.10"
4241
dependencies = [
4342
"numpy",
4443
"pyparsing",
@@ -52,7 +51,6 @@ Homepage = "https://github.com/bxlab/bx-python"
5251
[tool.black]
5352
include = '\.pyi?$'
5453
line-length = 120
55-
target-version = ['py39']
5654

5755
[tool.cibuildwheel]
5856
test-command = """
@@ -116,9 +114,6 @@ EOF
116114
[tool.darker]
117115
isort = true
118116

119-
[tool.ruff]
120-
target-version = "py39"
121-
122117
[tool.ruff.lint]
123118
# Enable: pycodestyle errors (E), Pyflakes (F), flake8-bugbear (B),
124119
# flake8-comprehensions (C4), flake8-logging-format (G),

scripts/bed_coverage.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@
1212
import sys
1313
from typing import (
1414
TextIO,
15-
Union,
1615
)
1716

1817
from bx.bitset_builders import binned_bitsets_from_file
1918

2019
bed_filenames = sys.argv[1:]
2120
if bed_filenames:
22-
input: Union[fileinput.FileInput, TextIO] = fileinput.input(bed_filenames)
21+
input: fileinput.FileInput | TextIO = fileinput.input(bed_filenames)
2322
else:
2423
input = sys.stdin
2524

scripts/bed_merge_overlapping.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@
1212
import sys
1313
from typing import (
1414
TextIO,
15-
Union,
1615
)
1716

1817
from bx.bitset_builders import binned_bitsets_from_bed_file
1918

2019
bed_filenames = sys.argv[1:]
2120
if bed_filenames:
22-
input: Union[fileinput.FileInput, TextIO] = fileinput.input(bed_filenames)
21+
input: fileinput.FileInput | TextIO = fileinput.input(bed_filenames)
2322
else:
2423
input = sys.stdin
2524

0 commit comments

Comments
 (0)