Skip to content

Deprecate Python 3.6 and add support for Python 3.10. #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Feb 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
python-version: ['3.7', '3.8', '3.9']
python-version: ['3.7', '3.8', '3.9', '3.10']

steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ repos:
rev: v2.31.0
hooks:
- id: pyupgrade
args: [--py36-plus]
args: [--py37-plus]
- repo: https://github.com/asottile/reorder_python_imports
rev: v2.7.1
hooks:
- id: reorder-python-imports
args: [--py37-plus, --add-import, 'from __future__ import annotations']
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v1.20.0
hooks:
Expand Down
7 changes: 7 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ all releases are available on `PyPI <https://pypi.org/project/pytask-stata>`_ an
`Anaconda.org <https://anaconda.org/conda-forge/pytask-stata>`_.


0.1.1 - 2022-02-07
------------------

- :gh:`16` skips concurrent CI builds.
- :gh:`17` deprecates Python 3.6 and adds support for Python 3.10.


0.1.0 - 2021-07-21
------------------

Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from setuptools import setup


Expand Down
2 changes: 2 additions & 0 deletions src/pytask_stata/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

try:
from ._version import version as __version__
except ImportError:
Expand Down
2 changes: 2 additions & 0 deletions src/pytask_stata/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""Everything related to the CLI."""
from __future__ import annotations

import click
from _pytask.config import hookimpl

Expand Down
6 changes: 3 additions & 3 deletions src/pytask_stata/collect.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"""Collect tasks."""
from __future__ import annotations

import copy
import functools
import subprocess
from typing import Iterable
from typing import Optional
from typing import Sequence
from typing import Union

from _pytask.config import hookimpl
from _pytask.mark_utils import get_specific_markers_from_task
Expand All @@ -17,7 +17,7 @@
from pytask_stata.shared import get_node_from_dictionary


def stata(options: Optional[Union[str, Iterable[str]]] = None):
def stata(options: str | Iterable[str] | None = None):
"""Specify command line options for Stata.

Parameters
Expand Down
2 changes: 2 additions & 0 deletions src/pytask_stata/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""Configure pytask."""
from __future__ import annotations

import shutil
import sys

Expand Down
2 changes: 2 additions & 0 deletions src/pytask_stata/execute.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""Execute tasks."""
from __future__ import annotations

import re

from _pytask.config import hookimpl
Expand Down
2 changes: 2 additions & 0 deletions src/pytask_stata/parametrize.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""Parametrize tasks."""
from __future__ import annotations

from _pytask.config import hookimpl
from _pytask.mark import MARK_GEN as mark # noqa: N811

Expand Down
2 changes: 2 additions & 0 deletions src/pytask_stata/plugin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""Register hook specifications and implementations."""
from __future__ import annotations

from _pytask.config import hookimpl
from pytask_stata import cli
from pytask_stata import collect
Expand Down
2 changes: 2 additions & 0 deletions src/pytask_stata/shared.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""Shared functions and variables."""
from __future__ import annotations

import sys


Expand Down
2 changes: 2 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import shutil

import pytest
Expand Down
2 changes: 2 additions & 0 deletions tests/test_collect.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from contextlib import ExitStack as does_not_raise # noqa: N813
from pathlib import Path

Expand Down
2 changes: 2 additions & 0 deletions tests/test_config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import pytest
from pytask import main
from pytask_stata.config import _nonnegative_nonzero_integer
Expand Down
2 changes: 2 additions & 0 deletions tests/test_execute.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import sys
import textwrap
from contextlib import ExitStack as does_not_raise # noqa: N813
Expand Down
2 changes: 2 additions & 0 deletions tests/test_normal_execution_w_plugin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""Contains tests which do not require the plugin and ensure normal execution."""
from __future__ import annotations

import textwrap

import pytest
Expand Down
2 changes: 2 additions & 0 deletions tests/test_parallel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""Contains test which ensure that the plugin works with pytask-parallel."""
from __future__ import annotations

import textwrap
import time

Expand Down
2 changes: 2 additions & 0 deletions tests/test_parametrize.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import sys
import textwrap

Expand Down