Skip to content

Commit 8357e4d

Browse files
authored
Merge pull request #79 from phargogh/task/78-test-against-python-3.10
Test taskgraph against Python 3.10
2 parents a1c2b4d + d419e00 commit 8357e4d

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

.github/workflows/pythonapp.yml

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

1818
steps:
@@ -40,4 +40,4 @@ jobs:
4040
4141
- name: Run tests
4242
run: |
43-
tox
43+
tox

HISTORY.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ TaskGraph Release History
66

77
Unreleased Changes
88
------------------
9+
* Testing against python 3.10 in github actions and officially noting support
10+
for 3.10 in ``setup.py``.
911
* Testing against python 3.9 in github actions and noting support in
1012
``setup.py``.
1113
* Fixed an issue where exceptions raised during execution where the task

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@
3939
'Programming Language :: Python :: 3.7',
4040
'Programming Language :: Python :: 3.8',
4141
'Programming Language :: Python :: 3.9',
42+
'Programming Language :: Python :: 3.10',
4243
'License :: OSI Approved :: BSD License'
4344
])

taskgraph/Task.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ def _task_executor(self):
416416
if self._terminated:
417417
LOGGER.debug(
418418
"taskgraph is terminated, ending %s",
419-
threading.currentThread())
419+
threading.current_thread())
420420
break
421421
task = None
422422
try:
@@ -449,7 +449,7 @@ def _task_executor(self):
449449
LOGGER.warning('worker pool was already closed')
450450
LOGGER.debug(
451451
"no tasks are pending and taskgraph closed, normally "
452-
"terminating executor %s." % threading.currentThread())
452+
"terminating executor %s." % threading.current_thread())
453453
break
454454
else:
455455
# there's still the possibility for work to be added or

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = {py36,py37,py38,py39}-{base,psutil}
2+
envlist = {py36,py37,py38,py39,py310}-{base,psutil}
33

44
[gh-actions]
55
# Allows us to use tox configuration to manage our tests, but still run on
@@ -10,6 +10,7 @@ python =
1010
3.7: py37
1111
3.8: py38
1212
3.9: py39
13+
3.10: py310
1314

1415
[testenv]
1516
commands =

0 commit comments

Comments
 (0)