Skip to content

Commit 19ec45c

Browse files
committed
fix.
1 parent d6a09f8 commit 19ec45c

File tree

4 files changed

+10
-16
lines changed

4 files changed

+10
-16
lines changed

.github/workflows/continuous-integration-workflow.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
fail-fast: false
2525
matrix:
2626
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
27-
python-version: ['3.7', '3.8', '3.9']
27+
python-version: ['3.7', '3.8', '3.9', '3.10']
2828

2929
steps:
3030
- uses: actions/checkout@v2
@@ -44,7 +44,7 @@ jobs:
4444
run: tox -e pytest -- -m "unit or (not integration and not end_to_end)" --cov=./ --cov-report=xml -n auto
4545

4646
- name: Upload coverage report for unit tests and doctests.
47-
if: runner.os == 'Linux' && matrix.python-version == '3.8'
47+
if: runner.os == 'Linux' && matrix.python-version == '3.9'
4848
shell: bash -l {0}
4949
run: bash <(curl -s https://codecov.io/bash) -F unit -c
5050

@@ -53,7 +53,7 @@ jobs:
5353
run: tox -e pytest -- -m integration --cov=./ --cov-report=xml -n auto
5454

5555
- name: Upload coverage reports of integration tests.
56-
if: runner.os == 'Linux' && matrix.python-version == '3.8'
56+
if: runner.os == 'Linux' && matrix.python-version == '3.9'
5757
shell: bash -l {0}
5858
run: bash <(curl -s https://codecov.io/bash) -F integration -c
5959

@@ -62,11 +62,6 @@ jobs:
6262
run: tox -e pytest -- -m end_to_end --cov=./ --cov-report=xml -n auto
6363

6464
- name: Upload coverage reports of end-to-end tests.
65-
if: runner.os == 'Linux' && matrix.python-version == '3.8'
65+
if: runner.os == 'Linux' && matrix.python-version == '3.9'
6666
shell: bash -l {0}
6767
run: bash <(curl -s https://codecov.io/bash) -F end_to_end -c
68-
69-
- name: Validate codecov.yml
70-
if: runner.os == 'Linux' && matrix.python-version == '3.7'
71-
shell: bash -l {0}
72-
run: cat codecov.yml | curl --data-binary @- https://codecov.io/validate

CHANGES.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ all releases are available on `PyPI <https://pypi.org/project/pytask-parallel>`_
77
`Anaconda.org <https://anaconda.org/conda-forge/pytask-parallel>`_.
88

99

10-
0.1.1 - 2022-xx-xx
10+
0.1.1 - 2022-02-08
1111
------------------
1212

1313
- :gh:`30` removes unnecessary content from ``tox.ini``.
14+
- :gh:`34` deprecates Python 3.6 and adds support for Python 3.10.
1415

1516

1617
0.1.0 - 2021-07-20

setup.cfg

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ classifiers =
1515
Operating System :: OS Independent
1616
Programming Language :: Python :: 3
1717
Programming Language :: Python :: 3 :: Only
18-
Programming Language :: Python :: 3.6
1918
Programming Language :: Python :: 3.7
2019
Programming Language :: Python :: 3.8
2120
Programming Language :: Python :: 3.9
@@ -32,8 +31,8 @@ install_requires =
3231
click
3332
cloudpickle
3433
loky
35-
pytask>=0.1.0
36-
python_requires = >=3.6
34+
pytask>=0.1.7
35+
python_requires = >=3.7
3736
include_package_data = True
3837
package_dir = =src
3938
zip_safe = False

src/pytask_parallel/execute.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import sys
55
import time
66
from typing import Any
7-
from typing import Tuple
87

98
import cloudpickle
109
from _pytask.config import hookimpl
@@ -178,8 +177,8 @@ def _unserialize_and_execute_task(bytes_, show_locals, console_options):
178177

179178

180179
def _process_exception(
181-
exc_info: Tuple[Any], show_locals: bool, console_options: ConsoleOptions
182-
) -> Tuple[Any]:
180+
exc_info: tuple[Any], show_locals: bool, console_options: ConsoleOptions
181+
) -> tuple[Any]:
183182
exc_info = remove_internal_traceback_frames_from_exc_info(exc_info)
184183
traceback = Traceback.from_exception(*exc_info, show_locals=show_locals)
185184
segments = console.render(traceback, options=console_options)

0 commit comments

Comments
 (0)