From 85319c135421ee2cc39c3fd964178c871ee4042f Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Mon, 9 Oct 2023 06:34:38 +0200 Subject: [PATCH] Add support for Python 3.12 and drop EOL 3.7 (#149) * Add support for Python 3.12 * Bump GitHub Actions * Drop support for EOL Python 3.7 --- .github/workflows/test.yml | 5 +++-- README.rst | 4 ++-- setup.cfg | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a02f461..65ea546 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.8"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.8"] exclude: - os: macos-latest python-version: 3.8 @@ -23,11 +23,12 @@ jobs: python-version: pypy3 runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - uses: actions/cache@v3 with: path: ~/.cache/pip diff --git a/README.rst b/README.rst index bdeb358..2028da8 100644 --- a/README.rst +++ b/README.rst @@ -30,8 +30,8 @@ This Python module returns a the `IANA time zone name `_ for your local time zone or a ``tzinfo`` object with the local timezone information, under Unix and Windows. -It requires Python 3.7 or later, and will use the ``backports.tzinfo`` -package, for Python 3.7 and 3.8. +It requires Python 3.8 or later, and will use the ``backports.tzinfo`` +package, for Python 3.8. This module attempts to fix a glaring hole in the ``pytz`` and ``zoneinfo`` modules, that there is no way to get the local timezone information, unless diff --git a/setup.cfg b/setup.cfg index 0a120a0..c76b1e6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -18,15 +18,15 @@ classifiers = Operating System :: MacOS :: MacOS X Programming Language :: Python :: 3 Programming Language :: Python :: 3 :: Only - Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 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.7 +python_requires = >= 3.8 zip_safe = True install_requires = backports.zoneinfo; python_version < "3.9"