From ac293c80bbffcb62b236d9fb66102a4c156d3ea2 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Thu, 29 Aug 2024 11:03:03 +0100 Subject: [PATCH] Add support for py312 --- .github/workflows/main.yml | 2 +- setup.cfg | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 17f84c03..beaa1945 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,7 +17,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.9', '3.10', '3.11'] + python-version: ['3.9', '3.10', '3.11', '3.12'] steps: - name: Checkout pull request HEAD commit instead of merge commit diff --git a/setup.cfg b/setup.cfg index 89e9064e..ddb48480 100644 --- a/setup.cfg +++ b/setup.cfg @@ -12,9 +12,14 @@ classifiers = License :: OSI Approved :: Apache Software License Operating System :: OS Independent Programming Language :: Python :: 3 + Programming Language :: Python :: 3.9 + Programming Language :: Python :: 3.10 + Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 [options] packages = find: +python_requires = >=3.9 install_requires = ansible-core @@ -23,17 +28,19 @@ install_requires = attrs>=21.4.0,<23 bleach>=3.3.0,<4 bleach-allowlist>=1.0.3,<2 - flake8>=5.0.0,<7 + flake8>=5.0.0,<8 markdown>=3.3.4,<4 pyyaml>=5.4.1,<7 requests>=2.28.0,<3 semantic-version>=2.9.0,<3 + setuptools # needed for pkg_resources import [options.extras_require] dev = black>=21.7b0 GitPython>=3.1.20 - pyfakefs>=4.4.0,<5 + pyfakefs>=4.4.0,<5; python_version < "3.12" + pyfakefs>=5.3.0; python_version >= "3.12" pytest>=7.0.0,<8 pytest-cov>=3.0.0,<5 pytest_mock>=3.8.0,<4