Skip to content
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

tox4: Drop Python 3.6 support #108

Merged
merged 1 commit into from Dec 29, 2021
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 1 addition & 5 deletions .github/workflows/tests.yml
Expand Up @@ -18,11 +18,7 @@ jobs:
- macos-latest # macOS-10.15
- windows-2016
- windows-latest # windows-2019
python-version: [3.6, 3.7, 3.8, 3.9, '3.10', pypy-3.6, pypy-3.7]
exclude:
# https://github.com/actions/setup-python/issues/311
- platform: macos-latest
python-version: pypy-3.6
python-version: [3.7, 3.8, 3.9, '3.10', pypy-3.7]

steps:
- uses: actions/checkout@v1
Expand Down
12 changes: 6 additions & 6 deletions README.md
Expand Up @@ -231,8 +231,8 @@ _Changed in 3.0_: `pypy3` is not supported in the configuration anymore. Please
You can also use environment variable to decide which environment to run.
The following is an example to install different dependency based on platform.
It will create 9 jobs when running the workflow on GitHub Actions.
- On Python 3.6/ubuntu-latest job, tox runs `py36-linux` environment
- On Python 3.7/ubuntu-latest job, tox runs `py37-linux` environment
- On Python 3.8/ubuntu-latest job, tox runs `py38-linux` environment
- On Python 3.9/ubuntu-latest job, tox runs `py39-linux` environment
- and so on.

`.github/workflows/<workflow>.yml`:
Expand All @@ -249,7 +249,7 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.6, 3.7, 3.8]
python-version: ['3.8', '3.9', '3.10']

steps:
- uses: actions/checkout@v1
Expand All @@ -270,13 +270,13 @@ jobs:
`tox.ini`:
```ini
[tox]
envlist = py{36,37,38}-{linux,macos,windows}
envlist = py{38,39,310}-{linux,macos,windows}

[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310

[gh-actions:env]
PLATFORM =
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -10,7 +10,7 @@ requires = [
build-backend = 'setuptools.build_meta'

[tool.black]
target-version = ["py36", "py37", "py38", "py39"]
target-version = ["py37", "py38", "py39"]

[tool.coverage.paths]
# For combining source file paths correctly
Expand Down
6 changes: 2 additions & 4 deletions setup.cfg
Expand Up @@ -23,7 +23,6 @@ classifiers =
Operating System :: OS Independent
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Expand All @@ -40,7 +39,7 @@ packages = find:
package_dir =
=src
zip_safe = True
python_requires = >=3.6
python_requires = >=3.7
install_requires =
tox >= 4.0.0a9, <5
setup_requires =
Expand Down Expand Up @@ -79,11 +78,10 @@ envlist =
black
flake8
mypy
{py36,py37,py38,py39,py310,pypy2,pypy3}-toxlatest
{py37,py38,py39,py310,pypy2,pypy3}-toxlatest

[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38, black, flake8
3.9: py39, mypy
Expand Down