Skip to content
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.

Commit

Permalink
Require python 3.9 or newer
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Jan 6, 2023
1 parent 14e003b commit 3498aca
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 24 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
TOX_PARALLEL_NO_SPINNER: 1

steps:
- name: Switch to using Python 3.8 by default
- name: Switch to using Python 3.9 by default
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9
- name: Install tox
run: >-
python3 -m
Expand Down
21 changes: 11 additions & 10 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,27 @@ jobs:
matrix:
include:
- tox_env: lint
python-version: 3.8
python-version: 3.9
# - tox_env: docs
- tox_env: packaging
python-version: 3.8
- name: py38
tox_env: py38,py38-devel
PREFIX: PYTEST_REQPASS=5
python-version: 3.8
- tox_env: pkg
python-version: 3.9
- name: py39
tox_env: py39,py39-devel
tox_env: py39
PREFIX: PYTEST_REQPASS=5
python-version: 3.9
- name: py310
tox_env: py310,py310-devel
tox_env: py310
PREFIX: PYTEST_REQPASS=5
python-version: "3.10"
- name: py311
tox_env: py311,py311-devel
PREFIX: PYTEST_REQPASS=5
python-version: "~3.11.0-0"
python-version: "3.11"
- name: py311
tox_env: py-devel
PREFIX: PYTEST_REQPASS=5
python-version: "3.11"


steps:

Expand Down
2 changes: 1 addition & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[mypy]
python_version = 3.8
python_version = 3.9
color_output = True
error_summary = True
disallow_untyped_calls=True
Expand Down
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ classifiers =
Operating System :: OS Independent

Programming Language :: Python :: 3
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Expand All @@ -52,7 +51,7 @@ keywords =

[options]
use_scm_version = True
python_requires = >=3.8
python_requires = >=3.9
package_dir =
= src
packages = find:
Expand Down
15 changes: 6 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ minversion = 3.9.0
envlist =
lint
docs
packaging
pkg
py
py-devel

Expand Down Expand Up @@ -40,7 +40,7 @@ setenv =
MOLECULE_NO_LOG=0
deps =
!devel: molecule[test]>=3.5.0
devel: git+https://github.com/ansible-community/molecule.git@main#egg=molecule[test]
devel: git+https://github.com/ansible-community/molecule.git@main\#egg=molecule[test]
selinux
commands_pre =
# No need to bother starting tests if these are now working
Expand All @@ -54,10 +54,10 @@ commands =
# failsafe as pip may install incompatible dependencies
pip check
# failsafe for preventing changes that may break pytest collection
sh -c "PYTEST_ADDOPTS= python -m pytest -p no:cov --collect-only 2>&1 >{envlogdir}/collect.log"
sh -c "PYTEST_ADDOPTS= python -m pytest -p no:cov --collect-only >{envlogdir}/collect.log"
python -m pytest {posargs:-l}

whitelist_externals =
allowlist_externals =
ansible-galaxy
find
podman
Expand Down Expand Up @@ -109,7 +109,7 @@ deps =
extras =
docs

[testenv:packaging]
[testenv:pkg]
description =
Do packaging/distribution. If tag is not present or PEP440 compliant upload to
PYPI could fail
Expand All @@ -118,10 +118,7 @@ usedevelop = false
# don't install molecule itself in this env
skip_install = true
deps =
collective.checkdocs >= 0.2
build >= 0.7.0
pip >= 20.2.2
toml >= 0.10.1
build >= 0.9.0
twine >= 3.2.0 # pyup: ignore
setenv =
commands_pre =
Expand Down

0 comments on commit 3498aca

Please sign in to comment.