From 04610220d7beada8d48ae1b06b0f7ebdbb71ea1a Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Wed, 16 Aug 2023 23:15:09 +0300 Subject: [PATCH 1/4] Drop support for EOL Python 3.7 --- .pre-commit-config.yaml | 2 +- README.rst | 2 +- setup.py | 2 +- tests/conftest.py | 6 ------ 4 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 40c7744e..f11d292a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: hooks: - id: pyupgrade args: - - '--py37-plus' + - '--py38-plus' - repo: 'https://github.com/psf/black' rev: 22.8.0 hooks: diff --git a/README.rst b/README.rst index 10e44deb..223375dc 100644 --- a/README.rst +++ b/README.rst @@ -215,7 +215,7 @@ https://groups.google.com/forum/#!forum/aio-libs Requirements ------------ -* Python_ 3.7+ +* Python_ 3.8+ * aiohttp_ * botocore_ diff --git a/setup.py b/setup.py index 3e1d375c..63afc7b4 100644 --- a/setup.py +++ b/setup.py @@ -62,7 +62,7 @@ def read_version(): download_url='https://pypi.python.org/pypi/aiobotocore', license='Apache License 2.0', packages=find_packages(include=['aiobotocore']), - python_requires='>=3.7', + python_requires='>=3.8', install_requires=install_requires, extras_require=extras_require, include_package_data=True, diff --git a/tests/conftest.py b/tests/conftest.py index 62581876..3a497158 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -2,7 +2,6 @@ import os import random import string -import sys import tempfile from contextlib import ExitStack from itertools import chain @@ -22,11 +21,6 @@ _PYCHARM_HOSTED = os.environ.get('PYCHARM_HOSTED') == '1' -def pytest_cmdline_preparse(args): - if sys.version_info[:2] < (3, 8): - args[:] = ["--ignore", 'tests/python3.8'] + args - - @pytest.fixture( scope="session", params=[True, False], ids=['debug[true]', 'debug[false]'] ) From 57cb84bfb67fdfaa50d7e9d9e6de9df1ef019e33 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Wed, 16 Aug 2023 23:30:53 +0300 Subject: [PATCH 2/4] Add support for Python 3.12 --- .github/workflows/python-package.yml | 10 +++++++--- CHANGES.rst | 1 + setup.py | 1 + 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 9805b597..1dbafd40 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -10,18 +10,21 @@ on: - 'master' - '[0-9].[0-9]+.[0-9]+' +env: + FORCE_COLOR: 1 + jobs: test: name: Test Python ${{ matrix.python-version }} runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.8', '3.9', '3.10', '3.11'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] include: - aiohttp-version: '==3.7.4.post0' - aiohttp-version: '<4.0.0' python-version: '3.11' - fail-fast: true + fail-fast: false timeout-minutes: 15 steps: - name: Checkout @@ -32,6 +35,7 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Lock and sync dependencies env: AIOHTTP_VERSION: ${{ matrix.aiohttp-version }} @@ -51,7 +55,7 @@ jobs: make mototest - name: Upload coverage to Codecov if: matrix.python-version == '3.11' - uses: codecov/codecov-action@v3.1.1 + uses: codecov/codecov-action@v3.1.4 with: token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos files: ./coverage.xml diff --git a/CHANGES.rst b/CHANGES.rst index 7cb9ed10..7a8dd73c 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,5 +1,6 @@ Changes ------- + 2.6.0 (2023-08-11) ^^^^^^^^^^^^^^^^^^ * bump aiohttp minimum version to 3.7.4.post0 diff --git a/setup.py b/setup.py index 63afc7b4..e18f7711 100644 --- a/setup.py +++ b/setup.py @@ -53,6 +53,7 @@ def read_version(): 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', 'Environment :: Web Environment', 'Framework :: AsyncIO', ], From 8baf1bb992c27353404485c1cf60301caf180cbe Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Thu, 17 Aug 2023 12:52:48 +0300 Subject: [PATCH 3/4] Add to changelog --- CHANGES.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index 7a8dd73c..caa1fd9d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,11 @@ Changes ------- +2.7.0 (unreleased) +^^^^^^^^^^^^^^^^^^ +* add support for Python 3.12 +* drop more Python 3.7 support (EOL) + 2.6.0 (2023-08-11) ^^^^^^^^^^^^^^^^^^ * bump aiohttp minimum version to 3.7.4.post0 From 2497d3c209341ab192d93aa3bb00fb3e08803cdc Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Thu, 17 Aug 2023 12:59:07 +0300 Subject: [PATCH 4/4] Update version and add an arbitrary date --- CHANGES.rst | 2 +- aiobotocore/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index caa1fd9d..826f03b3 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,7 +1,7 @@ Changes ------- -2.7.0 (unreleased) +2.7.0 (2023-08-17) ^^^^^^^^^^^^^^^^^^ * add support for Python 3.12 * drop more Python 3.7 support (EOL) diff --git a/aiobotocore/__init__.py b/aiobotocore/__init__.py index f0e5e1ea..766ce2d0 100644 --- a/aiobotocore/__init__.py +++ b/aiobotocore/__init__.py @@ -1 +1 @@ -__version__ = '2.6.0' +__version__ = '2.7.0'