Skip to content

Commit dde4d8e

Browse files
authored
Merge pull request #112 from compomics/update-python-versions
Remove support for Python 3.7; test support for 3.12 and 3.13
2 parents 22c7b89 + ca1dd4d commit dde4d8e

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
runs-on: ubuntu-latest
4747
strategy:
4848
matrix:
49-
python-version: ["3.8", "3.9", "3.10", "3.11"]
49+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
5050
steps:
5151
- uses: actions/checkout@v4
5252

@@ -58,7 +58,11 @@ jobs:
5858
- name: Install package and its dependencies
5959
run: |
6060
python -m pip install --upgrade pip
61-
pip install .[dev,idxml]
61+
pip install .[dev]
62+
63+
- name: Install optional dependencies that might not be available
64+
continue-on-error: true
65+
run: pip install .[idxml]
6266

6367
- name: Test imports
6468
run: python -c "import psm_utils"

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ classifiers = [
1818
"Development Status :: 4 - Beta",
1919
]
2020
dynamic = ["version"]
21-
requires-python = ">=3.7"
21+
requires-python = ">=3.8"
2222
dependencies = [
2323
"click",
2424
"lxml",
@@ -71,8 +71,8 @@ profile = "black"
7171

7272
[tool.black]
7373
line-length = 99
74-
target-version = ['py37']
74+
target-version = ['py38']
7575

7676
[tool.ruff]
7777
line-length = 99
78-
target-version = "py37"
78+
target-version = "py38"

tests/test_io/test_idxml.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22

33
import hashlib
44

5+
import pytest
6+
57
from psm_utils.io.idxml import IdXMLReader, IdXMLWriter
68
from psm_utils.io.sage import SageTSVReader
79
from psm_utils.peptidoform import Peptidoform
810
from psm_utils.psm import PSM
911

12+
pyopenms = pytest.importorskip("pyopenms")
13+
1014

1115
class TestIdXMLReader:
1216
def test__parse_peptidoform(self):

0 commit comments

Comments
 (0)