Skip to content

Commit 59170aa

Browse files
authored
Deprecate Python 3.6 and add support for Python 3.10. (#13)
1 parent f64149d commit 59170aa

12 files changed

+36
-11
lines changed

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

+2-7
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
fail-fast: false
2323
matrix:
2424
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
25-
python-version: ['3.7', '3.8', '3.9']
25+
python-version: ['3.7', '3.8', '3.9', '3.10']
2626

2727
steps:
2828
- uses: actions/checkout@v2
@@ -41,11 +41,6 @@ jobs:
4141
run: tox -e pytest -- -m end_to_end --cov=./ --cov-report=xml
4242

4343
- name: Upload coverage reports of end-to-end tests.
44-
if: runner.os == 'Linux' && matrix.python-version == '3.8'
44+
if: runner.os == 'Linux' && matrix.python-version == '3.9'
4545
shell: bash -l {0}
4646
run: bash <(curl -s https://codecov.io/bash) -F end_to_end -c
47-
48-
- name: Validate codecov.yml
49-
if: runner.os == 'Linux' && matrix.python-version == '3.8'
50-
shell: bash -l {0}
51-
run: cat codecov.yml | curl --data-binary @- https://codecov.io/validate

.pre-commit-config.yaml

+10-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ repos:
88
- id: check-yaml
99
- id: debug-statements
1010
- id: end-of-file-fixer
11+
- id: check-case-conflict
12+
- id: check-vcs-permalinks
13+
- id: check-yaml
14+
- id: fix-byte-order-marker
15+
- id: mixed-line-ending
16+
- id: no-commit-to-branch
17+
args: [--branch, main]
18+
- id: trailing-whitespace
1119
- repo: https://github.com/pre-commit/pygrep-hooks
1220
rev: v1.9.0 # Use the ref you want to point at
1321
hooks:
@@ -24,11 +32,12 @@ repos:
2432
rev: v2.31.0
2533
hooks:
2634
- id: pyupgrade
27-
args: [--py36-plus]
35+
args: [--py37-plus]
2836
- repo: https://github.com/asottile/reorder_python_imports
2937
rev: v2.7.1
3038
hooks:
3139
- id: reorder-python-imports
40+
args: [--py37-plus, --add-import, 'from __future__ import annotations']
3241
- repo: https://github.com/psf/black
3342
rev: 22.1.0
3443
hooks:

CHANGES.rst

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ reverse chronological order. Releases follow `semantic versioning
77
<https://anaconda.org/conda-forge/pytask-environment>`_.
88

99

10+
0.1.1 - 2022-02-08
11+
------------------
12+
13+
- :gh:`13` deprecates Python 3.6 and adds support for Python 3.10.
14+
15+
1016
0.1.0 - 2022-01-25
1117
------------------
1218

setup.cfg

+2-3
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 @@ packages = find:
3130
install_requires =
3231
click
3332
pony
34-
pytask>=0.0.7
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

+2
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_environment/__init__.py

+2
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_environment/config.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import click
24
from _pytask.config import hookimpl
35
from _pytask.shared import convert_truthy_or_falsy_to_bool

src/pytask_environment/database.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from _pytask.database import db
24
from pony import orm
35

src/pytask_environment/logging.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import sys
24

35
from _pytask.config import hookimpl

src/pytask_environment/plugin.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
"""Entry-point for the plugin."""
2+
from __future__ import annotations
3+
24
from _pytask.config import hookimpl
35
from pytask_environment import config
46
from pytask_environment import database

tests/conftest.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import pytest
24
from click.testing import CliRunner
35

tests/test_logging.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import sys
24
import textwrap
35

0 commit comments

Comments
 (0)