Skip to content

Commit cb04c9f

Browse files
committed
Support Python 3.10
Do not use deprecated Thread.setDaemon() method.
1 parent fad7f38 commit cb04c9f

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

.github/workflows/test-package.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
max-parallel: 4
1111
matrix:
12-
python-version: [3.6, 3.7, 3.8, 3.9, pypy3]
12+
python-version: [3.6, 3.7, 3.8, 3.9, 3.10, pypy3]
1313

1414
steps:
1515
- uses: actions/checkout@v2
@@ -22,11 +22,11 @@ jobs:
2222
python -m pip install --upgrade pip
2323
pip install .[tests]
2424
- name: Lint with flake8
25-
if: matrix.python-version == 3.8
25+
if: matrix.python-version == 3.9
2626
run: |
2727
flake8 webware setup.py --count --exit-zero --statistics
2828
- name: Lint with pylint
29-
if: matrix.python-version == 3.8
29+
if: matrix.python-version == 3.9
3030
run: |
3131
pylint webware
3232
- name: Run all unit tests

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
'Programming Language :: Python :: 3.7',
5858
'Programming Language :: Python :: 3.8',
5959
'Programming Language :: Python :: 3.9',
60+
'Programming Language :: Python :: 3.10',
6061
'Programming Language :: Python :: Implementation :: CPython',
6162
'Programming Language :: Python :: Implementation :: PyPy',
6263
'Operating System :: OS Independent',

tox.ini

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
[tox]
2-
envlist = py{36,37,38,39}, pypy3, flake8, pylint, docs, manifest
2+
envlist = py{36,37,38,39,310}, pypy3, flake8, pylint, docs, manifest
33

44
[testenv:flake8]
5-
basepython = python3.8
5+
basepython = python3.9
66
deps = flake8>=3.9,<4
77
commands =
88
flake8 webware setup.py
99

1010
[testenv:pylint]
11-
basepython = python3.8
11+
basepython = python3.9
1212
deps = pylint>=2.8,<3
1313
commands =
1414
pylint webware
1515

1616
[testenv:docs]
17-
basepython = python3.8
17+
basepython = python3.9
1818
extras =
1919
docs
2020
commands =
2121
sphinx-build -b html -nEW docs docs/_build/html
2222

2323
[testenv:manifest]
24-
basepython = python3.8
24+
basepython = python3.9
2525
deps = check-manifest>=0.46
2626
commands =
2727
check-manifest -v

webware/TaskKit/Scheduler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def __init__(self, daemon=True, exceptionHandler=None):
4141
self._isRunning = False
4242
self._exceptionHandler = exceptionHandler
4343
if daemon:
44-
self.setDaemon(True)
44+
self.daemon = True
4545

4646
# endregion Init
4747

0 commit comments

Comments
 (0)