Skip to content

Commit 238e002

Browse files
authored
Deprecate Python 3.6 and add support for Python 3.10. (#23)
1 parent 6020380 commit 238e002

19 files changed

+45
-62
lines changed

.conda/meta.yaml

Lines changed: 0 additions & 49 deletions
This file was deleted.

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

Lines changed: 5 additions & 5 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
r-version: ['3.6.3']
2929

3030
steps:
@@ -45,7 +45,7 @@ jobs:
4545
run: tox -e pytest -- -m "unit or (not integration and not end_to_end)" --cov=./ --cov-report=xml -n auto
4646

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

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

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

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

6565
- name: Upload coverage reports of end-to-end tests.
66-
if: runner.os == 'Linux' && matrix.python-version == '3.8' && matrix.r-version == '3.6.3'
66+
if: runner.os == 'Linux' && matrix.python-version == '3.9' && matrix.r-version == '3.6.3'
6767
shell: bash -l {0}
6868
run: bash <(curl -s https://codecov.io/bash) -F end_to_end -c
6969

7070
- name: Validate codecov.yml
71-
if: runner.os == 'Linux' && matrix.python-version == '3.8' && matrix.r-version == '3.6.3'
71+
if: runner.os == 'Linux' && matrix.python-version == '3.9' && matrix.r-version == '3.6.3'
7272
shell: bash -l {0}
7373
run: cat codecov.yml | curl --data-binary @- https://codecov.io/validate

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ repos:
66
args: ['--maxkb=100']
77
- id: check-merge-conflict
88
- id: check-yaml
9-
exclude: meta.yaml
109
- id: debug-statements
1110
- id: end-of-file-fixer
1211
- repo: https://github.com/pre-commit/pygrep-hooks
@@ -25,11 +24,12 @@ repos:
2524
rev: v2.31.0
2625
hooks:
2726
- id: pyupgrade
28-
args: [--py36-plus]
27+
args: [--py37-plus]
2928
- repo: https://github.com/asottile/reorder_python_imports
3029
rev: v2.7.1
3130
hooks:
3231
- id: reorder-python-imports
32+
args: [--py37-plus, --add-import, 'from __future__ import annotations']
3333
- repo: https://github.com/asottile/setup-cfg-fmt
3434
rev: v1.20.0
3535
hooks:

CHANGES.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ all releases are available on `PyPI <https://pypi.org/project/pytask-r>`_ and
77
`Anaconda.org <https://anaconda.org/conda-forge/pytask-r>`_.
88

99

10+
0.1.1 - 2022-02-08
11+
------------------
12+
13+
- :gh:`22` skips concurrent CI builds.
14+
- :gh:`23` deprecate Python 3.6 and add support for Python 3.10.
15+
16+
1017
0.1.0 - 2021-07-22
1118
------------------
1219

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
@@ -31,8 +30,8 @@ project_urls =
3130
packages = find:
3231
install_requires =
3332
click
34-
pytask>=0.1.0
35-
python_requires = >=3.6
33+
pytask>=0.1.7
34+
python_requires = >=3.7
3635
include_package_data = True
3736
package_dir = =src
3837
zip_safe = False

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from setuptools import setup
24

35

src/pytask_r/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
try:
24
from ._version import version as __version__
35
except ImportError:

src/pytask_r/collect.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
"""Collect tasks."""
2+
from __future__ import annotations
3+
24
import copy
35
import functools
46
import subprocess
57
from typing import Iterable
6-
from typing import Optional
78
from typing import Sequence
8-
from typing import Union
99

1010
from _pytask.config import hookimpl
1111
from _pytask.mark_utils import get_specific_markers_from_task
@@ -15,7 +15,7 @@
1515
from _pytask.parametrize import _copy_func
1616

1717

18-
def r(options: Optional[Union[str, Iterable[str]]] = None):
18+
def r(options: str | Iterable[str] | None = None):
1919
"""Specify command line options for Rscript.
2020
2121
Parameters

src/pytask_r/config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
"""Configure pytask."""
2+
from __future__ import annotations
3+
24
from _pytask.config import hookimpl
35

46

src/pytask_r/execute.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
"""Execute tasks."""
2+
from __future__ import annotations
3+
24
import shutil
35

46
from _pytask.config import hookimpl

0 commit comments

Comments
 (0)