Skip to content

Commit 8e08b05

Browse files
committed
Drop support for Python 3.8
which has reached end of life on 2024-10-07.
1 parent 8fa6dce commit 8e08b05

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+431
-526
lines changed

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
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.8', '3.13']
11+
python-version: ['3.9', '3.13']
1212
steps:
1313
- uses: actions/checkout@v4
1414
- uses: actions/setup-python@v5

.github/workflows/test.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,78 +31,78 @@ jobs:
3131
matrix:
3232
include:
3333
- os: ubuntu-latest
34-
tox_env: py38
34+
tox_env: py39
3535
galaxy_version: dev
3636
galaxy_python_version: '3.9'
3737
- os: ubuntu-latest
38-
tox_env: py38
38+
tox_env: py39
3939
galaxy_version: release_24.2
4040
galaxy_python_version: '3.8'
4141
- os: ubuntu-latest
42-
tox_env: py38
42+
tox_env: py39
4343
galaxy_version: release_24.1
4444
galaxy_python_version: '3.8'
4545
- os: ubuntu-latest
46-
tox_env: py38
46+
tox_env: py39
4747
galaxy_version: release_24.0
4848
galaxy_python_version: '3.8'
4949
# Python 3.7 is not available via setup-python on ubuntu >=24.04
5050
- os: ubuntu-22.04
51-
tox_env: py38
51+
tox_env: py39
5252
galaxy_version: release_23.2
5353
galaxy_python_version: '3.7'
5454
- os: ubuntu-22.04
55-
tox_env: py38
55+
tox_env: py39
5656
galaxy_version: release_23.1
5757
galaxy_python_version: '3.7'
5858
- os: ubuntu-22.04
59-
tox_env: py38
59+
tox_env: py39
6060
galaxy_version: release_23.0
6161
galaxy_python_version: '3.7'
6262
- os: ubuntu-22.04
63-
tox_env: py38
63+
tox_env: py39
6464
galaxy_version: release_22.05
6565
galaxy_python_version: '3.7'
6666
- os: ubuntu-22.04
67-
tox_env: py38
67+
tox_env: py39
6868
galaxy_version: release_22.01
6969
galaxy_python_version: '3.7'
7070
# The minimum Python supported version by the following releases is
7171
# 3.6, but it is EOL
7272
- os: ubuntu-22.04
73-
tox_env: py38
73+
tox_env: py39
7474
galaxy_version: release_21.09
7575
galaxy_python_version: '3.7'
7676
- os: ubuntu-22.04
77-
tox_env: py38
77+
tox_env: py39
7878
galaxy_version: release_21.05
7979
galaxy_python_version: '3.7'
8080
- os: ubuntu-22.04
81-
tox_env: py38
81+
tox_env: py39
8282
galaxy_version: release_21.01
8383
galaxy_python_version: '3.7'
8484
# The minimum Python supported version by the following releases is
8585
# 3.5, but it is EOL
8686
- os: ubuntu-22.04
87-
tox_env: py38
87+
tox_env: py39
8888
galaxy_version: release_20.09
8989
galaxy_python_version: '3.7'
9090
- os: ubuntu-22.04
91-
tox_env: py38
91+
tox_env: py39
9292
galaxy_version: release_20.05
9393
galaxy_python_version: '3.7'
9494
# The minimum Python supported version by the following releases is
9595
# 2.7, but it is EOL
9696
- os: ubuntu-22.04
97-
tox_env: py38
97+
tox_env: py39
9898
galaxy_version: release_20.01
9999
galaxy_python_version: '3.7'
100100
- os: ubuntu-22.04
101-
tox_env: py38
101+
tox_env: py39
102102
galaxy_version: release_19.09
103103
galaxy_python_version: '3.7'
104104
- os: ubuntu-22.04
105-
tox_env: py38
105+
tox_env: py39
106106
galaxy_version: release_19.05
107107
galaxy_python_version: '3.7'
108108
- os: ubuntu-latest
@@ -112,7 +112,7 @@ jobs:
112112
# Cannot test on macOS because service containers are not supported
113113
# yet: https://github.community/t/github-actions-services-available-on-others-vms/16916
114114
# - os: macos-latest
115-
# tox_env: py38
115+
# tox_env: py39
116116
# galaxy_version: dev
117117
# galaxy_python_version: '3.8'
118118
steps:

ABOUT.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ interacting with the `Galaxy`_ API.
33

44
BioBlend is supported and tested on:
55

6-
- Python 3.8 - 3.13
6+
- Python 3.9 - 3.13
77
- Galaxy release 19.05 and later.
88

99
BioBlend's goal is to make it easier to script and automate the running of

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### BioBlend v
22

3-
* Added support for Galaxy release 24.2.
3+
* Dropped support for Python 3.8. Added support for Galaxy release 24.2.
44

55
* Added ``offset`` parameter to ``InvocationClient.get_invocations()`` and
66
BioBlend.objects ``ObjInvocationClient.list()`` methods.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ How to run BioBlend tests
1313

1414
1. Clone Galaxy to a directory outside of BioBlend source directory via `git clone https://github.com/galaxyproject/galaxy.git`
1515

16-
2. Change directory to your BioBlend source and run the tests via `./run_bioblend_tests.sh -g GALAXY_PATH [-r GALAXY_REV] [-e TOX_ENV]` where `GALAXY_PATH` is the directory where the galaxy repository was cloned, `GALAXY_REV` is the branch or commit of Galaxy that you would like to test against (if different from the current state of your galaxy clone), and `TOX_ENV` is used to specify the Python version to use for BioBlend, e.g. `py38` for Python 3.8.
16+
2. Change directory to your BioBlend source and run the tests via `./run_bioblend_tests.sh -g GALAXY_PATH [-r GALAXY_REV] [-e TOX_ENV]` where `GALAXY_PATH` is the directory where the galaxy repository was cloned, `GALAXY_REV` is the branch or commit of Galaxy that you would like to test against (if different from the current state of your galaxy clone), and `TOX_ENV` is used to specify the Python version to use for BioBlend, e.g. `py39` for Python 3.9.
1717

1818
You can also add `2>&1 | tee log.txt` to the command above to contemporarily view the test output and save it to the `log.txt` file.
1919

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ BioBlend is a Python library for interacting with the `Galaxy`_ API.
1515

1616
BioBlend is supported and tested on:
1717

18-
- Python 3.8 - 3.13
18+
- Python 3.9 - 3.13
1919
- Galaxy release 19.05 and later.
2020

2121
Full docs are available at https://bioblend.readthedocs.io/ with a quick library

bioblend/_tests/GalaxyTestBase.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import unittest
33
from typing import (
44
Any,
5-
Dict,
65
Literal,
76
)
87

@@ -37,7 +36,7 @@ def _wait_and_verify_dataset(
3736

3837
def _run_random_lines1(
3938
self, history_id: str, dataset_id: str, input_format: Literal["21.01", "legacy"] = "legacy"
40-
) -> Dict[str, Any]:
39+
) -> dict[str, Any]:
4140
tool_inputs = {
4241
"num_lines": "1",
4342
"input": {"src": "hda", "id": dataset_id},

bioblend/_tests/TestGalaxyDatasetCollections.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from inspect import signature
55
from typing import (
66
Any,
7-
Dict,
87
Union,
98
)
109
from zipfile import ZipFile
@@ -186,7 +185,7 @@ def test_wait_for_dataset_collection(self):
186185
for element in dataset_collection["elements"]:
187186
assert element["object"]["state"] == "ok"
188187

189-
def _create_pair_in_history(self, history_id: str) -> Dict[str, Any]:
188+
def _create_pair_in_history(self, history_id: str) -> dict[str, Any]:
190189
dataset1_id = self._test_dataset(history_id)
191190
dataset2_id = self._test_dataset(history_id)
192191
collection_response = self.gi.histories.create_dataset_collection(

bioblend/_tests/TestGalaxyFolders.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
from typing import (
2-
Dict,
3-
List,
4-
)
5-
61
from . import (
72
GalaxyTestBase,
83
test_util,
@@ -112,7 +107,7 @@ def test_update_folder(self):
112107
assert self.folder["description"] == "new-description"
113108

114109
def test_get_set_permissions(self):
115-
empty_permission: Dict[str, List] = {
110+
empty_permission: dict[str, list] = {
116111
"add_library_item_role_list": [],
117112
"modify_folder_role_list": [],
118113
"manage_folder_role_list": [],

bioblend/_tests/TestGalaxyInvocations.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import contextlib
22
import os
33
import time
4-
from typing import (
5-
Any,
6-
Dict,
7-
)
4+
from typing import Any
85

96
from . import (
107
GalaxyTestBase,
@@ -123,7 +120,7 @@ def test_workflow_scheduling(self):
123120
invocation = self._invoke_pause_workflow()
124121
invocation_id = invocation["id"]
125122

126-
def invocation_steps_by_order_index() -> Dict[int, Dict[str, Any]]:
123+
def invocation_steps_by_order_index() -> dict[int, dict[str, Any]]:
127124
invocation = self.gi.invocations.show_invocation(invocation_id)
128125
return {s["order_index"]: s for s in invocation["steps"]}
129126

@@ -147,7 +144,7 @@ def test_rerun_invocation(self):
147144
history = self.gi.histories.show_history(rerun_invocation["history_id"], contents=True)
148145
assert len(history) == 3
149146

150-
def _invoke_workflow(self) -> Dict[str, Any]:
147+
def _invoke_workflow(self) -> dict[str, Any]:
151148
dataset = {"src": "hda", "id": self.dataset_id}
152149

153150
return self.gi.workflows.invoke_workflow(
@@ -157,7 +154,7 @@ def _invoke_workflow(self) -> Dict[str, Any]:
157154
inputs_by="name",
158155
)
159156

160-
def _invoke_pause_workflow(self) -> Dict[str, Any]:
157+
def _invoke_pause_workflow(self) -> dict[str, Any]:
161158
return self.gi.workflows.invoke_workflow(
162159
self.pause_workflow_id,
163160
inputs={"0": {"src": "hda", "id": self.dataset_id}},

0 commit comments

Comments
 (0)